RefLib

Reference library for AI

Back

postgresql_16:4.5.6 Replication

PostgreSQL 16 > Server Administration > Server Configuration > Replication

These settings control the behavior of the built-in *streaming replication* feature (see (see postgresql_16:4.12.2.5)), and the built-in *logical replication* feature (see (see postgresql_16:4.16)).

For *streaming replication*, servers will be either a primary or a standby server. Primaries can send data, while standbys are always receivers of replicated data. When cascading replication (see (see postgresql_16:4.12.2.7)) is used, standby servers can also be senders, as well as receivers. Parameters are mainly for sending and standby servers, though some parameters have meaning only on the primary server. Settings may vary across the cluster without problems if that is required.

For *logical replication*, *publishers* (servers that do CREATE PUBLICATION (see postgresql_16:7.1.75)) replicate data to *subscribers* (servers that do CREATE SUBSCRIPTION (see postgresql_16:7.1.82)). Servers can also be publishers and subscribers at the same time. Note, the following sections refer to publishers as "senders". For more details about logical replication configuration settings refer to (see postgresql_16:4.16.10).

Subsections

Back