Scroll to navigation

PGPP(1) User Commands PGPP(1)

NAME

pgpp - PostgreSQL language prettifier

DESCRIPTION

usage: pgpp [-h] [-v] [-p] [-t] [-m COMPACT_LISTS_MARGIN]

[-s SPLIT_STRING_LITERALS] [-f] [-F] [-c] [-e] [-C] [-S STATEMENT] [infile] [outfile]

PostgreSQL language prettifier

positional arguments:

a file containing the SQL statement to be prettyprinted, by default stdin, when not specified with --statement option
where the result will be written, by default stdout

options:

show this help message and exit
show program's version number and exit
use the plpgsql parser (and print just the resulting tree)
show just the parse tree of the statement
use compact form for lists not exceeding the given margin
split string literals longer than given value
activate special functions handling
omit explicit "pg_catalog" schema from function names, when possible
use alternative style to print lists, putting the comma right after each item
end the last statement with a semicolon
preserve comments in the statement
the SQL statement
February 2024 pgpp with PostgreSQL 16.1 parser