pg_recvlogical
Control PostgreSQL logical decoding streams. tldr-pages
On several platforms
Several platforms
Create a new logical replication slot
pg_recvlogical --dbname dbname --slot slot_name --create-slotIdentifyStart streaming changes from a logical replication slot to a file
pg_recvlogical --dbname dbname --slot slot_name --start --file filenameIdentifyDrop a logical replication slot
pg_recvlogical --dbname dbname --slot slot_name --drop-slotIdentifyCreate a slot with two-phase commit enabled
pg_recvlogical --dbname dbname --slot slot_name --create-slot --enable-two-phaseIdentifyDisplay help
pg_recvlogical --helpIdentify