Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index802
pg_ctl --pgdata=datadir-D datadir--pgdata=datadir
Specifies the file system location of the database configuration files. If this option is omitted, the environment variable PGDATA is used.pg_ctl › Options
pg_ctl --silent-s--silent
Print only errors, no informational messages.pg_ctl › Options
pg_ctl --timeout=seconds-t seconds--timeout=seconds
Specifies the maximum number of seconds to wait when waiting for an operation to complete (see option -w). Defaults to the value of the PGCTLTIMEOUT environment v…pg_ctl › Options
pg_ctl --version-V--version
Print the pg_ctl version and exit.pg_ctl › Options
pg_ctl --wait-w--wait
Wait for the operation to complete. This is supported for the modes start, stop, restart, promote, and register, and is the default for those modes. When waiting, pg_ctl repeatedly …pg_ctl › Options
pg_ctl -e source-e source
Name of the event source for pg_ctl to use for logging to the event log when running as a Windows service. The default is PostgreSQL. Note that this only controls messages sent fro…pg_ctl › Options › Options for Windows
pg_ctl -N servicename-N servicename
Name of the system service to register. This name will be used as both the service name and the display name. The default is PostgreSQL.pg_ctl › Options › Options for Windows
pg_ctl -P password-P password
Password for the user to run the service as.pg_ctl › Options › Options for Windows
pg_ctl -p path-p path
Specifies the location of the postgres executable. By default the postgres executable is taken from the same directory as pg_ctl, or failing that, the hard-wired installation directo…pg_ctl › Options
pg_ctl -S start-type-S start-type
Start type of the system service. start-type can be auto, or demand, or the first letter of one of these two. If this option is omitted, auto is the default.pg_ctl › Options › Options for Windows
pg_ctl -U username-U username
User name for the user to run the service as. For domain users, use the format DOMAIN\username.pg_ctl › Options › Options for Windows
pg_dump --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_dump › Options
pg_dump --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_dump › Options
pg_dump --blobs-b--large-objects--blobs (deprecated)
Include large objects in the dump. This is the default behavior except when --schema, --table, --schema-only, --statistics-only, or --no-data is specifi…pg_dump › Options
pg_dump --clean-c--clean
Output commands to DROP all the dumped database objects prior to outputting the commands for creating them. This option is useful when the restore is to overwrite an existing datab…pg_dump › Options
pg_dump --compress=method-Z level-Z method[:detail]--compress=level--compress=method[:detail]
Specify the compression method and/or the compression level to use. The compression method can be set to gzip, lz4, zstd,…pg_dump › Options
pg_dump --create-C--create
Begin the output with a command to create the database itself and reconnect to the created database. (With a script of this form, it doesn't matter which database in the destinati…pg_dump › Options
pg_dump --data-only-a--data-only
Dump only the data, not the schema (data definitions) or statistics. Table data, large objects, and sequence values are dumped. This option is similar to, but for historical re…pg_dump › Options
pg_dump --dbname=dbname-d dbname--dbname=dbname
Specifies the name of the database to connect to. This is equivalent to specifying dbname as the first non-option argument on the command line. The dbname can be a c…pg_dump › Options
pg_dump --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_dump › Options
pg_dump --disable-triggers--disable-triggers
This option is relevant only when creating a dump that includes data but does not include schema. It instructs pg_dump to include commands to temporarily disable triggers …pg_dump › Options
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
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open