PostgreSQL · Concept
Streaming replication
PostgreSQL streaming replication uses a special startup parameter and simple-query commands to send physical WAL or logical changes. Physical mode streams WAL; logical mode streams decoded transactions through an output plugin.
Last updated
Syntax
Startup parameter: replication = true | on | yes | 1 | database
Logical start: START_REPLICATION SLOT slot_name LOGICAL
Physical start: START_REPLICATION [SLOT slot_name] PHYSICALIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
IDENTIFY_SYSTEMSTART_REPLICATIONCREATE_REPLICATION_SLOTpg_receivewalpg_recvlogicalpg_stat_replicationpg_replication_slotspg_stat_wal_receiver