Options (5)
-d, --dbnamebooleanCreate a new logical replication slot
Example:
pg_recvlogical {{[-d|--dbname]}} {{dbname}} {{[-S|--slot]}} {{slot_name}} --create-slot-S, --slotbooleanCreate a new logical replication slot
Example:
pg_recvlogical {{[-d|--dbname]}} {{dbname}} {{[-S|--slot]}} {{slot_name}} --create-slot-f, --filebooleanStart streaming changes from a logical replication slot to a file
Example:
pg_recvlogical {{[-d|--dbname]}} {{dbname}} {{[-S|--slot]}} {{slot_name}} --start {{[-f|--file]}} {{filename}}-t, --enable-two-phasebooleanCreate a slot with two-phase commit enabled
Example:
pg_recvlogical {{[-d|--dbname]}} {{dbname}} {{[-S|--slot]}} {{slot_name}} --create-slot {{[-t|--enable-two-phase]}}--helpbooleanDisplay help
Example:
pg_recvlogical {{[-?|--help]}}Examples (5)
Create a new logical replication slot
pg_recvlogical [-d|--dbname] dbname [-S|--slot] slot_name --create-slotStart streaming changes from a logical replication slot to a file
pg_recvlogical [-d|--dbname] dbname [-S|--slot] slot_name --start [-f|--file] filenameDrop a logical replication slot
pg_recvlogical [-d|--dbname] dbname [-S|--slot] slot_name --drop-slotCreate a slot with two-phase commit enabled
pg_recvlogical [-d|--dbname] dbname [-S|--slot] slot_name --create-slot [-t|--enable-two-phase]Display help
pg_recvlogical [-?|--help]made by @shridhargupta | data from tldr-pages