Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Popular entries9783
pg_dump --enable-row-security--enable-row-security
This option is relevant only when dumping the contents of a table which has row security. By default, pg_dump will set row_security to off, to ensure that all data is d…pg_dump › Options
pg_dump --encoding=encoding-E encoding--encoding=encoding
Create the dump in the specified character set encoding. By default, the dump is created in the database encoding. (Another way to get the same result is to se…pg_dump › Options
pg_dump --exclude-extension=pattern--exclude-extension=pattern
Do not dump any extensions matching pattern. The pattern is interpreted according to the same rules as for -e. --exclude-extension can be given more than once to …pg_dump › Options
pg_dump --exclude-schema=pattern-N pattern--exclude-schema=pattern
Do not dump any schemas matching pattern. The pattern is interpreted according to the same rules as for -n. -N can be given more than once to exclude schem…pg_dump › Options
pg_dump --exclude-table-and-children=pattern--exclude-table-and-children=pattern
This is the same as the -T/--exclude-table option, except that it also excludes any partitions or inheritance child tables of the table(s) matching the p…pg_dump › Options
pg_dump --exclude-table-data-and-children=pattern--exclude-table-data-and-children=pattern
This is the same as the --exclude-table-data option, except that it also excludes data of any partitions or inheritance child tables of the table(s)…pg_dump › Options
pg_dump --exclude-table-data=pattern--exclude-table-data=pattern
Do not dump data for any tables matching pattern. The pattern is interpreted according to the same rules as for -t. --exclude-table-data can be given more than o…pg_dump › Options
pg_dump --exclude-table=pattern-T pattern--exclude-table=pattern
Do not dump any tables matching pattern. The pattern is interpreted according to the same rules as for -t. -T can be given more than once to exclude tables …pg_dump › Options
pg_dump --extension=pattern-e pattern--extension=pattern
Dump only extensions matching pattern. When this option is not specified, all non-system extensions in the target database will be dumped. Multiple extensions c…pg_dump › Options
pg_dump --extra-float-digits=ndigits--extra-float-digits=ndigits
Use the specified value of extra_float_digits when dumping floating-point data, instead of the maximum available precision. Routine dumps made for backup purpose…pg_dump › Options
pg_dump --file=file-f file--file=file
Send output to the specified file. This parameter can be omitted for file based output formats, in which case the standard output is used. It must be given for the directo…pg_dump › Options
pg_dump --filter=filename--filter=filename
Specify a filename from which to read patterns for objects to include or exclude from the dump. The patterns are interpreted according to the same rules as the correspondin…pg_dump › Options
pg_dump --format=format-F format--format=format
Selects the format of the output. format can be one of the following: pplain Output a plain-text SQL script file (the default). ccustom Output a custom-format archiv…pg_dump › Options
pg_dump --help-?--help
Show help about pg_dump command line arguments, and exit.pg_dump › Options
pg_dump --host=host-h host--host=host
Specifies the host name of the machine on which the server is running. If the value begins with a slash, it is used as the directory for the Unix domain socket. The defaul…pg_dump › Options
pg_dump --if-exists--if-exists
Use DROP ... IF EXISTS commands to drop objects in --clean mode. This suppresses “does not exist” errors that might otherwise be reported. This option is not valid unless --clean…pg_dump › Options
pg_dump --include-foreign-data=foreignserver--include-foreign-data=foreignserver
Dump the data for any foreign table with a foreign server matching foreignserver pattern. Multiple foreign servers can be selected by writing multiple --…pg_dump › Options
pg_dump --inserts--inserts
Dump data as INSERT commands (rather than COPY). This will make restoration very slow; it is mainly useful for making dumps that can be loaded into non-PostgreSQL databases. Any er…pg_dump › Options
pg_dump --jobs=njobs-j njobs--jobs=njobs
Run the dump in parallel by dumping njobs tables simultaneously. This option may reduce the time needed to perform the dump but it also increases the load on the databas…pg_dump › Options
pg_dump --load-via-partition-root--load-via-partition-root
When dumping data for a table partition, make the COPY or INSERT statements target the root of the partitioning hierarchy that contains it, rather than the partitio…pg_dump › Options
pg_dump --lock-wait-timeout=timeout--lock-wait-timeout=timeout
Do not wait forever to acquire shared table locks at the beginning of the dump. Instead fail if unable to lock a table within the specified timeout. The timeout m…pg_dump › Options
pg_dump --no-acl-x--no-privileges--no-acl
Prevent dumping of access privileges (grant/revoke commands).pg_dump › Options
pg_dump --no-blobs-B--no-large-objects--no-blobs (deprecated)
Exclude large objects in the dump. When both -b and -B are given, the behavior is to output large objects, when data is being dumped, see the -b d…pg_dump › Options
pg_dump --no-comments--no-comments
Do not dump COMMENT commands.pg_dump › Options
pg_dump --no-data--no-data
Do not dump data.pg_dump › Options
pg_dump --no-owner-O--no-owner
Do not output commands to set ownership of objects to match the original database. By default, pg_dump issues ALTER OWNER or SET SESSION AUTHORIZATION statements to set ownershi…pg_dump › Options
pg_dump --no-password-w--no-password
Never issue a password prompt. If the server requires password authentication and a password is not available by other means such as a .pgpass file, the connection attempt wi…pg_dump › Options
pg_dump --no-policies--no-policies
Do not dump row security policies.pg_dump › Options
pg_dump --no-publications--no-publications
Do not dump publications.pg_dump › Options
pg_dump --no-reconnect-R--no-reconnect
This option is obsolete but still accepted for backwards compatibility.pg_dump › Options
pg_dump --no-schema--no-schema
Do not dump schema (data definitions).pg_dump › Options
pg_dump --no-security-labels--no-security-labels
Do not dump security labels.pg_dump › Options
pg_dump --no-statistics--no-statistics
Do not dump statistics. This is the default.pg_dump › Options
pg_dump --no-subscriptions--no-subscriptions
Do not dump subscriptions.pg_dump › Options
pg_dump --no-sync--no-sync
By default, pg_dump will wait for all files to be written safely to disk. This option causes pg_dump to return without waiting, which is faster, but means that a subsequent operati…pg_dump › Options
pg_dump --no-table-access-method--no-table-access-method
Do not output commands to select table access methods. With this option, all objects will be created with whichever table access method is the default during restore…pg_dump › Options
pg_dump --no-tablespaces--no-tablespaces
Do not output commands to select tablespaces. With this option, all objects will be created in whichever tablespace is the default during restore. This option is ignored whe…pg_dump › Options
pg_dump --no-toast-compression--no-toast-compression
Do not output commands to set TOAST compression methods. With this option, all columns will be restored with the default compression setting.pg_dump › Options
pg_dump --no-unlogged-table-data--no-unlogged-table-data
Do not dump the contents of unlogged tables and sequences. This option has no effect on whether or not the table and sequence definitions (schema) are dumped; it onl…pg_dump › Options
pg_dump --on-conflict-do-nothing--on-conflict-do-nothing
Add ON CONFLICT DO NOTHING to INSERT commands. This option is not valid unless --inserts, --column-inserts or --rows-per-insert is also specified.pg_dump › Options
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open