commands.sh

pg_createsubscriber

all

Convert a physical replica into a new logical replica.

More info →

Options (7)

-d, --databaseboolean

Convert a physical replica to a logical replica for a specific database

Example: pg_createsubscriber {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}
-D, --pgdataboolean

Convert a physical replica to a logical replica for a specific database

Example: pg_createsubscriber {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}
-P, --publisher-serverboolean

Convert a physical replica to a logical replica for a specific database

Example: pg_createsubscriber {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}
-n, --dry-runboolean

Perform a dry run without modifying the target directory

Example: pg_createsubscriber {{[-n|--dry-run]}} {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}
-T, --enable-two-phaseboolean

Enable two-phase commit for the subscription

Example: pg_createsubscriber {{[-T|--enable-two-phase]}} {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}
-v, --verboseboolean

Convert with verbose output

Example: pg_createsubscriber {{[-v|--verbose]}} {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}
--helpboolean

Display help

Example: pg_createsubscriber {{[-?|--help]}}

Examples (5)

Convert a physical replica to a logical replica for a specific database

pg_createsubscriber [-d|--database] dbname [-D|--pgdata] path/to/data [-P|--publisher-server] connstr

Perform a dry run without modifying the target directory

pg_createsubscriber [-n|--dry-run] [-d|--database] dbname [-D|--pgdata] path/to/data [-P|--publisher-server] connstr

Enable two-phase commit for the subscription

pg_createsubscriber [-T|--enable-two-phase] [-d|--database] dbname [-D|--pgdata] path/to/data [-P|--publisher-server] connstr

Convert with verbose output

pg_createsubscriber [-v|--verbose] [-d|--database] dbname [-D|--pgdata] path/to/data [-P|--publisher-server] connstr

Display help

made by @shridhargupta | data from tldr-pages