+
+ replication
+
+ This option determines whether the connection should use the
+ replication protocol instead of the normal protocol. This is what
+ PostgreSQL replication connections as well as tools such as
+
pg_basebackup use internally, but it can
+ also be used by third-party applications. For a description of the
+ replication protocol, consult .
+
+
+ The following values, which are case-insensitive, are supported:
+
+
+
+ true, on,
+ yes, 1
+
+
+ The connection goes into physical replication mode.
+
+
+
+
+
+ database
+
+ The connection goes into logical replication mode, connecting to
+ the database specified in the dbname parameter.
+
+
+
+
+
+
+ false, off,
+ no, 0
+
+
+ The connection is a regular one, which is the default behavior.
+
+
+
+
+
+
+ In physical or logical replication mode, only the simple query protocol
+ can be used.
+
+
+
+
sslmode
To initiate streaming replication, the frontend sends the
-replication parameter in the startup message. A Boolean value
-of true tells the backend to go into walsender mode, wherein a
-small set of replication commands can be issued instead of SQL statements. Only
-the simple query protocol can be used in walsender mode.
-Replication commands are logged in the server log when
- is enabled.
-Passing database as the value instructs walsender to connect to
-the database specified in the dbname parameter, which will allow
-the connection to be used for logical replication from that database.
+replication parameter in the startup message. A Boolean
+value of true (or on,
+yes, 1) tells the backend to go into
+physical replication walsender mode, wherein a small set of replication
+commands, shown below, can be issued instead of SQL statements.
+
+
+Passing database as the value for the
+replication parameter instructs the backend to go into
+logical replication walsender mode, connecting to the database specified in
+the dbname parameter. In logical replication walsender
+mode, the replication commands shown below as well as normal SQL commands can
+be issued.
+
+
+In either physical replication or logical replication walsender mode, only the
+simple query protocol can be used.
+
For the purpose of testing replication commands, you can make a replication
connection via
psql or any other
libpq-using
-The commands accepted in walsender mode are:
+Replication commands are logged in the server log when
+ is enabled.
+
+
+The commands accepted in replication mode are:
IDENTIFY_SYSTEM