-a | --anonymize | Obscure all literals in queries (useful for hiding confidential data). |
-b | --comma-start | In a parameters list, start with the comma. |
-B | --comma-break | In an INSERT statement, add a newline after each comma. |
-c | --config FILE | Use a specific configuration file. |
-C | --wrap-comment | With --wrap-limit, apply reformatting to comments. |
-d | --debug | Enable debug mode. |
-e | --comma-end | In a parameters list, end with the comma (default). |
-f | --function-case N | Change case of PostgreSQL functions: 0=unchanged, 1=lowercase, 2=uppercase, 3=capitalize. |
-F | --format STR | Output format: text or html. Default: text. |
-g | --nogrouping | Add a newline between statements in transaction regroupement. |
-h | --help | Show help message and exit. |
-i | --inplace | Override input files with formatted content. |
-k | --keep-newline | Preserve empty lines in PL/pgSQL code. |
-L | --no-extra-line | Do not add an extra empty line at the end of output. |
-m | --maxlength SIZE | Maximum length of a query; queries exceeding this will be truncated. |
-M | --multiline | Enable multi-line search for --placeholder. |
-n | --nocomment | Remove any comments from SQL code. |
-N | --numbering | Add statement numbering as a comment before each query. |
-o | --output file | Define the filename for the output. Default: stdout. |
-p | --placeholder RE | Set a regex to find code that must not be changed. |
-r | --redshift | Add Redshift keywords (Obsolete: use --extra-keyword 'redshift'). |
-s | --spaces size | Change space indent (default: 4). |
-S | --separator STR | Dynamic code separator (default: single quote). |
-t | --format-type | Try another formatting type for some statements. |
-T | --tabs | Use tabs instead of spaces (sets --spaces to 1). |
-u | --keyword-case N | Change case of reserved keywords: 0=unchanged, 1=lowercase, 2=uppercase, 3=capitalize. |
-U | --type-case N | Change case of data type names: 0=unchanged, 1=lowercase, 2=uppercase, 3=capitalize. |
-v | --version | Show version and exit. |
-w | --wrap-limit N | Wrap queries at a certain length. |
-W | --wrap-after N | Number of columns after which lists must be wrapped. |
-X | --no-rcfile | Do not read automatic RC files. |
--extra-function FILE | File containing a list of functions to format like PostgreSQL internals. | |
--extra-keyword FILE | File containing a list of keywords to format like PostgreSQL internals. Use 'redshift' for Redshift support. | |
--no-space-function | Remove space between function call and the open parenthesis. | |
--redundant-parenthesis | Do not remove redundant parenthesis in DML. | |