OS Manuals

/usr/bin/pg_createsubscriber

A sophisticated object-relational DBMS

From postgresql-17 17.11-r5 (enterprise-packages), captured 2026-11-08 by running pg_createsubscriber --help (exit 0). permalink

pg_createsubscriber creates a new logical replica from a standby server.

Usage:
  pg_createsubscriber [OPTION]...

Options:
  -d, --database=DBNAME           database in which to create a subscription
  -D, --pgdata=DATADIR            location for the subscriber data directory
  -n, --dry-run                   dry run, just show what would be done
  -p, --subscriber-port=PORT      subscriber port number (default 50432)
  -P, --publisher-server=CONNSTR  publisher connection string
  -s, --socketdir=DIR             socket directory to use (default current dir.)
  -t, --recovery-timeout=SECS     seconds to wait for recovery to end
  -U, --subscriber-username=NAME  user name for subscriber connection
  -v, --verbose                   output verbose messages
      --config-file=FILENAME      use specified main server configuration
                                  file when running target cluster
      --publication=NAME          publication name
      --replication-slot=NAME     replication slot name
      --subscription=NAME         subscription name
  -V, --version                   output version information, then exit
  -?, --help                      show this help, then exit

Report bugs to <pgsql-bugs@lists.postgresql.org>.
PostgreSQL home page: <https://www.postgresql.org/>
Options (15)
OptionDescriptionSource
-d, --database DBNAMEdatabase in which to create a subscriptionhelp
-D, --pgdata DATADIRlocation for the subscriber data directoryhelp
-n, --dry-rundry run, just show what would be donehelp
-p, --subscriber-port PORTsubscriber port number (default 50432)help
-P, --publisher-server CONNSTRpublisher connection stringhelp
-s, --socketdir DIRsocket directory to use (default current dir.)help
-t, --recovery-timeout SECSseconds to wait for recovery to endhelp
-U, --subscriber-username NAMEuser name for subscriber connectionhelp
-v, --verboseoutput verbose messageshelp
--config-file FILENAMEuse specified main server configuration file when running target clusterhelp
--publication NAMEpublication namehelp
--replication-slot NAMEreplication slot namehelp
--subscription NAMEsubscription namehelp
-V, --versionoutput version information, then exithelp
-?, --helpshow this help, then exithelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.