remote replication slot was not created automatically, the user must create
it manually before the subscription can be activated. The steps to create
the slot and activate the subscription are shown in the following examples.
- These examples specify the standard logical decoding plugin
+ These examples specify the standard logical decoding output plugin
(pgoutput), which is what the built-in logical
replication uses.
implemented by walsender and apply
processes. The walsender process starts logical decoding (described
in ) of the WAL and loads the standard
- logical decoding plugin (pgoutput). The plugin transforms the changes read
+ logical decoding output plugin (pgoutput). The plugin
+ transforms the changes read
from WAL to the logical replication protocol
(see ) and filters the data
according to the publication specification. The data is then continuously
option_name
- The name of an option passed to the slot's logical decoding plugin.
+ The name of an option passed to the slot's logical decoding output
+ plugin. See for
+ options that are accepted by the standard (pgoutput)
+ plugin.
the physical streaming replication protocol.
+
PostgreSQL logical decoding supports output
+ plugins. pgoutput is the standard one used for
+ the built-in logical replication.
+
+
Logical Streaming Replication Parameters
- The logical replication START_REPLICATION command
- accepts following parameters:
+ Using the START_REPLICATION command,
+ pgoutput accepts the following options:
Protocol version. Currently versions 1, 2,
- 3, and 4 are supported.
+ 3, and 4 are supported. A valid
+ version is required.
Version 2 is supported only for server version 14
Comma separated list of publication names for which to subscribe
(receive changes). The individual publication names are treated
as standard objects names and can be quoted the same as needed.
+ At least one publication name is required.
+
+
+
+
+
+
+ binary
+
+
+ Boolean option to use binary transfer mode. Binary mode is faster
+ than the text mode but slightly less robust.
+
+
+
+
+
+
+ messages
+
+
+ Boolean option to enable sending the messages that are written
+ by pg_logical_emit_message.
+
+
+
+
+
+
+ streaming
+
+
+ Boolean option to enable streaming of in-progress transactions.
+ It accepts an additional value "parallel" to enable sending extra
+ information with some messages to be used for parallelisation.
+ Minimum protocol version 2 is required to turn it on. Minimum protocol
+ version 4 is required for the "parallel" option.
+
+
+
+
+
+
+ two_phase
+
+
+ Boolean option to enable two-phase transactions. Minimum protocol
+ version 3 is required to turn it on.
+
+
+
+
+
+
+ origin
+
+
+ Option to send changes by their origin. Possible values are "none"
+ to only send the changes that have no origin associated, or "any"
+ to send the changes regardless of their origin. This can be used
+ to avoid loops (infinite replication of the same data) among
+ replication nodes.