-
CREATE_REPLICATION_SLOT slotname> PHYSICALCREATE_REPLICATION_SLOT
+
CREATE_REPLICATION_SLOT slotname> { PHYSICAL> | LOGICAL> output_plugin> } CREATE_REPLICATION_SLOT
- Create a physical replication
+ Create a physical or logical replication
slot. See for more about
replication slots.
+
+
+ output_plugin>
+
+ The name of the output plugin used for logical decoding
+ (see ).
+
+
+
- START_REPLICATION [SLOT slotname>] [PHYSICAL] XXX/XXX> [TIMELINE tli>]
+ START_REPLICATION [SLOT slotname>] [PHYSICAL] XXX/XXX> [TIMELINE tli>]
Instructs server to start streaming WAL, starting at
- START_REPLICATION SLOT slotname> LOGICAL XXX/XXX>
+ START_REPLICATION SLOT slotname> LOGICAL XXX/XXX> [ ( option_name [option_value] [, ... ] ) ]
Instructs server to start streaming WAL for logical replication, starting
been recycled. On success, server responds with a CopyBothResponse
message, and then starts to stream WAL to the frontend.
+
+ The messages inside the CopyBothResponse messages are of the same format
+ documented for START_REPLICATION ... PHYSICAL.
+
+
The output plugin associated with the selected slot is used
to process the output for streaming.
+
SLOT slotname>
+
+ option_name>
+
+ The name of an option passed to the slot's logical decoding plugin.
+
+
+
+
+ option_value>
+
+ Optional value, in the form of a string constant, associated with the
+ specified option.
+
+
+
- DROP_REPLICATION_SLOT slotname>
+ DROP_REPLICATION_SLOT slotname>
Drops a replication slot, freeing any reserved server-side resources. If