<<back
pg_dump
General options
file:
-f, --file=FILENAME output file name
format:
-F, --format=c|t|p output file format (custom, tar, plain text)
ignore-version:
-i, --ignore-version proceed even when server version mismatches pg_dump version
verbose
-v, --verbose verbose mode
compress:
-Z, --compress=0-9 compression level for compressed formats
help
--help show this help, then exit
version
--version output version information, then exit
Options controlling the output content
data-only
-a, --data-only dump only the data, not the schema
blobs
-b, --blobs include large objects in dump
clean
-c, --clean clean (drop) schema prior to create
create
-C, --create include commands to create database in dump
inserts
-d, --inserts dump data as INSERT commands, rather than COPY
column-inserts
-D, --column-inserts dump data as INSERT commands with column names
encoding:
-E, --encoding=ENCODING dump the data in encoding ENCODING
schema:
-n, --schema=SCHEMA dump the named schema(s) only
exclude-schema:
-N, --exclude-schema=SCHEMA do NOT dump the named schema(s)
oids
-o, --oids include OIDs in dump
no-owner
-O, --no-owner skip restoration of object ownership in plain text format
schema-only
-s, --schema-only dump only the schema, no data
superuser:
-S, --superuser=NAME specify the superuser user name to use in plain text format
table:
-t, --table=TABLE dump the named table(s) only
exclude-table:
-T, --exclude-table=TABLE do NOT dump the named table(s)
no-privileges
-x, --no-privileges do not dump privileges (grant/revoke)
disable-dollar-quoting
--disable-dollar-quoting disable dollar quoting, use SQL standard quoting
disable-triggers
--disable-triggers disable triggers during data-only restore
use-set-session-authorization
--use-set-session-authorization use SESSION AUTHORIZATION commands instead of ALTER OWNER commands to set ownership
Connection options
host:
-h, --host=HOSTNAME database server host or socket directory
port:
-p, --port=PORT database server port number
username:
-U, --username=NAME connect as specified database user
password
-W, --password force password prompt (should happen automatically)
Create Command
Reset