Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Popular entries9997
pg_restore --passwordW--password
Force pg_restore to prompt for a password before connecting to a database. This option is never essential, since pg_restore will automatically prompt for a password if the server…
pg_restore --port=portp port--port=port
Specifies the TCP port or local Unix domain socket file extension on which the server is listening for connections. Defaults to the PGPORT environment variable, if set, or …
pg_restore --restrict-key=restrict_keyrestrict-key=restrict_key
Use the provided string as the psql \restrict key in the dump output. This can only be specified for SQL script output, i.e., when the --file option is used. If no …
pg_restore --role=rolenamerole=rolename
Specifies a role name to be used to perform the restore. This option causes pg_restore to issue a SET ROLE rolename command after connecting to the database. It is useful when …
pg_restore --schema-onlys--schema-only
Restore only the schema (data definitions), not data, to the extent that schema entries are present in the archive. This option cannot be used with --data-only or --statistics…
pg_restore --schema=scheman schema--schema=schema
Restore only objects that are in the named schema. Multiple schemas may be specified with multiple -n switches. This can be combined with the -t option to restore jus…
pg_restore --section=sectionnamesection=sectionname
Only restore the named section. The section name can be pre-data, data, or post-data. This option can be specified more than once to select multiple sections. The default…
pg_restore --single-transaction1--single-transaction
Execute the restore as a single transaction (that is, wrap the emitted commands in BEGIN/COMMIT). This ensures that either all the commands complete successfully, or no…
pg_restore --statisticsstatistics
Output commands to restore statistics, if the archive contains them. This is the default.
pg_restore --statistics-onlystatistics-only
Restore only the statistics, not schema (data definitions) or data.
pg_restore --strict-namesstrict-names
Require that each schema (-n/--schema) and table (-t/--table) qualifier match at least one schema/table in the file to be restored.
pg_restore --superuser=usernameS username--superuser=username
Specify the superuser user name to use when disabling triggers. This is relevant only if --disable-triggers is used.
pg_restore --table=tablet table--table=table
Restore definition and/or data of only the named table. For this purpose, “table” includes views, materialized views, sequences, and foreign tables. Multiple tables can …
pg_restore --transaction-size=Ntransaction-size=N
Execute the restore as a series of transactions, each processing up to N database objects. This option implies --exit-on-error. --transaction-size offers an intermediate c…
pg_restore --trigger=triggerT trigger--trigger=trigger
Restore named trigger only. Multiple triggers may be specified with multiple -T switches.
pg_restore --use-list=list-fileL list-file--use-list=list-file
Restore only those archive elements that are listed in list-file, and restore them in the order they appear in the file. Note that if filtering switches such …
pg_restore --use-set-session-authorizationuse-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-compati…
pg_restore --username=usernameU username--username=username
User name to connect as.
pg_restore --verbosev--verbose
Specifies verbose mode. This will cause pg_restore to output detailed object comments and start/stop times to the output file, and progress messages to standard error. Repeating t…
pg_restore --versionV--version
Print the pg_restore version and exit.
pg_restore_pointsCreate, catalog, list, and remove named PostgreSQL restore points.
restore-point wal backup recovery
pg_restore_points
Administration
pg_retryRetry SQL statements on transient errors with exponential backoff
pg_retry
Utilities
pg_reversiReversi game implemented as a PostgreSQL extension.
game reversi
pg_reversi
Features
pg_rewindsynchronize a PostgreSQL data directory with another data directory that was forked from it
Synopsis pg_rewind [option...] { -D | --target-pgdata } directory { --source-pgdata=directory | --…
pg_rewindsynchronize a PostgreSQL data directory with another data directory that was forked from it
Synopsis pg_rewind [option...] { -D | --target-pgdata } directory { --source-pgdata=directory | --…
pg_rewind --config-file=filenameconfig-file=filename
Use the specified main server configuration file for the target cluster. This affects pg_rewind when it uses internally the postgres command for the rewind operation on …
pg_rewind --debugdebug
Print verbose debugging output that is mostly useful for developers debugging pg_rewind.
pg_rewind --dry-runn--dry-run
Do everything except actually modifying the target directory.
pg_rewind --help?--help
Show help, then exit.
pg_rewind --no-ensure-shutdownno-ensure-shutdown
pg_rewind requires that the target server is cleanly shut down before rewinding. By default, if the target server is not shut down cleanly, pg_rewind starts the target ser…
pg_rewind --no-syncN--no-sync
By default, pg_rewind will wait for all files to be written safely to disk. This option causes pg_rewind to return without waiting, which is faster, but means that a subsequent op…
pg_rewind --progressP--progress
Enables progress reporting. Turning this on will deliver an approximate progress report while copying data from the source cluster.
pg_rewind --restore-target-walc--restore-target-wal
Use restore_command defined in the target cluster configuration to retrieve WAL files from the WAL archive if these files are no longer available in the pg_wal director…
pg_rewind --source-pgdata=directorysource-pgdata=directory
Specifies the file system path to the data directory of the source server to synchronize the target with. This option requires the source server to be cleanly shut do…
pg_rewind --source-server=connstrsource-server=connstr
Specifies a libpq connection string to connect to the source PostgreSQL server to synchronize the target with. The connection must be a normal (non-replication) connect…
pg_rewind --sync-method=methodsync-method=method
When set to fsync, which is the default, pg_rewind will recursively open and synchronize all files in the data directory. The search for files will follow symbolic links f…
pg_rewind --target-pgdata=directoryD directory--target-pgdata=directory
This option specifies the target data directory that is synchronized with the source. The target server must be shut down cleanly before running pg_rewin…
pg_rewind --versionV--version
Display version information, then exit.
pg_rewind --write-recovery-confR--write-recovery-conf
Create standby.signal and append connection settings to postgresql.auto.conf in the output directory. The dbname will be recorded only if the dbname was specified expl…
pg_rewriteThe catalog pg_rewrite stores rewrite rules for tables and views.
Table 52.45. pg_rewrite Columns Column Type Description oid oid Row identifier rulename name Rule name ev_class oid (referen…
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
Searching every version by default. Manual pages are indexed for PostgreSQL 10–20; the reference library and extension catalogue are not version-bound.
all: every version pg17: one version ex: extensions only ↑↓ select ↵ open