LinuxCommandLibrary

pg_createsubscriber

converts a physical standby to logical replication subscriber

TLDR

Create subscriber from standby

$ pg_createsubscriber -d [dbname] -D [data_dir] -P [conninfo]
copy

SYNOPSIS

pg_createsubscriber [options]

DESCRIPTION

pg_createsubscriber converts a physical standby to logical replication subscriber. Transforms streaming replication to logical replication. Part of PostgreSQL 17+.

PARAMETERS

-d, --database name

Database name.
-D, --pgdata dir
Data directory.
-P, --publisher-server conninfo
Publisher connection string.
-n, --dry-run
Show what would be done.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community