Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index802
pg_dump --use-set-session-authorization--use-set-session-authorization
Output SQL-standard SET SESSION AUTHORIZATION commands instead of ALTER OWNER commands to determine object ownership. This makes the dump more standards-compa…pg_dump › Options
pg_dump --username=username-U username--username=username
User name to connect as.pg_dump › Options
pg_dump --verbose-v--verbose
Specifies verbose mode. This will cause pg_dump to output detailed object comments and start/stop times to the dump file, and progress messages to standard error. Repeating the o…pg_dump › Options
pg_dump --version-V--version
Print the pg_dump version and exit.pg_dump › Options
pg_dumpallpg_dumpall pg_dumpall — extract a PostgreSQL database cluster into a script file
Synopsis pg_dumpall [connection-option...] [option...]pg_dumpall
pg_dumpall --attribute-inserts--column-inserts--attribute-inserts
Dump data as INSERT commands with explicit column names (INSERT INTO table (column, ...) VALUES ...). This will make restoration very slow; it is mainly u…pg_dumpall › Options
pg_dumpall --binary-upgrade--binary-upgrade
This option is for use by in-place upgrade utilities. Its use for other purposes is not recommended or supported. The behavior of the option may change in future releases wi…pg_dumpall › Options
pg_dumpall --clean-c--clean
Emit SQL commands to DROP all the dumped databases, roles, and tablespaces before recreating them. This option is useful when the restore is to overwrite an existing cluster. If an…pg_dumpall › Options
pg_dumpall --data-only-a--data-only
Dump only the data, not the schema (data definitions) or statistics.pg_dumpall › Options
pg_dumpall --database=dbname-l dbname--database=dbname
Specifies the name of the database to connect to for dumping global objects and discovering what other databases should be dumped. If not specified, the postgres d…pg_dumpall › Options
pg_dumpall --dbname=connstr-d connstr--dbname=connstr
Specifies parameters used to connect to the server, as a connection string; these will override any conflicting command line options. The option is called --dbname…pg_dumpall › Options
pg_dumpall --disable-dollar-quoting--disable-dollar-quoting
This option disables the use of dollar quoting for function bodies, and forces them to be quoted using SQL standard string syntax.pg_dumpall › Options
pg_dumpall --disable-triggers--disable-triggers
This option is relevant only when creating a dump with data and without schema. It instructs pg_dumpall to include commands to temporarily disable triggers on the target t…pg_dumpall › Options
pg_dumpall --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_dumpall › Options
pg_dumpall --exclude-database=pattern--exclude-database=pattern
Do not dump databases whose name matches pattern. Multiple patterns can be excluded by writing multiple --exclude-database switches. The pattern parameter is inter…pg_dumpall › Options
pg_dumpall --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_dumpall › Options
pg_dumpall --file=filename-f filename--file=filename
Send output to the specified file. If this is omitted, the standard output is used.pg_dumpall › Options
pg_dumpall --filter=filename--filter=filename
Specify a filename from which to read patterns for databases excluded from the dump. The patterns are interpreted according to the same rules as --exclude-database. To read…pg_dumpall › Options
pg_dumpall --globals-only-g--globals-only
Dump only global objects (roles and tablespaces), no databases.pg_dumpall › Options
pg_dumpall --help-?--help
Show help about pg_dumpall command line arguments, and exit.pg_dumpall › Options
pg_dumpall --host=host-h host--host=host
Specifies the host name of the machine on which the database server is running. If the value begins with a slash, it is used as the directory for the Unix domain socket. T…pg_dumpall › Options
pg_dumpall --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_dumpall › Options
pg_dumpall --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. Note t…pg_dumpall › Options
pg_dumpall --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_dumpall › Options
pg_dumpall --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 …pg_dumpall › Options
pg_dumpall --no-acl-x--no-privileges--no-acl
Prevent dumping of access privileges (grant/revoke commands).pg_dumpall › Options
pg_dumpall --no-comments--no-comments
Do not dump COMMENT commands.pg_dumpall › Options
pg_dumpall --no-data--no-data
Do not dump data.pg_dumpall › Options
pg_dumpall --no-owner-O--no-owner
Do not output commands to set ownership of objects to match the original database. By default, pg_dumpall issues ALTER OWNER or SET SESSION AUTHORIZATION statements to set owner…pg_dumpall › Options
pg_dumpall --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_dumpall › Options
pg_dumpall --no-policies--no-policies
Do not dump row security policies.pg_dumpall › Options
pg_dumpall --no-publications--no-publications
Do not dump publications.pg_dumpall › Options
pg_dumpall --no-role-passwords--no-role-passwords
Do not dump passwords for roles. When restored, roles will have a null password, and password authentication will always fail until the password is set. Since password va…pg_dumpall › Options
pg_dumpall --no-schema--no-schema
Do not dump schema (data definitions).pg_dumpall › Options
pg_dumpall --no-security-labels--no-security-labels
Do not dump security labels.pg_dumpall › Options
pg_dumpall --no-statistics--no-statistics
Do not dump statistics. This is the default.pg_dumpall › Options
pg_dumpall --no-subscriptions--no-subscriptions
Do not dump subscriptions.pg_dumpall › Options
pg_dumpall --no-sync--no-sync
By default, pg_dumpall will wait for all files to be written safely to disk. This option causes pg_dumpall to return without waiting, which is faster, but means that a subsequent o…pg_dumpall › Options
pg_dumpall --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_dumpall › Options
pg_dumpall --no-tablespaces--no-tablespaces
Do not output commands to create tablespaces nor select tablespaces for objects. With this option, all objects will be created in whichever tablespace is the default during …pg_dumpall › Options
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open