Streaming Replication Protocol Interface
Streaming Replication Protocol Interface
The commands
CREATE_REPLICATION_SLOTslot_nameLOGICALoutput_pluginDROP_REPLICATION_SLOTslot_name [WAIT]START_REPLICATION SLOTslot_nameLOGICAL ...are used to create, drop, and stream changes from a replication slot, respectively. These commands are only available over a replication connection; they cannot be used via SQL. See Streaming Replication Protocol for details on these commands.
The command app-pgrecvlogical can be used to control logical decoding over a streaming replication connection. (It uses these commands internally.)