@@ -2410,10 +2410,22 @@ The commands accepted in replication mode are:
2410
2410
<term><literal>START_REPLICATION</literal> <literal>SLOT</literal> <replaceable class="parameter">slot_name</replaceable> <literal>LOGICAL</literal> <replaceable class="parameter">XXX/XXX</replaceable> [ ( <replaceable>option_name</replaceable> [ <replaceable>option_value</replaceable> ] [, ...] ) ]</term>
2411
2411
<listitem>
2412
2412
<para>
2413
- Instructs server to start streaming WAL for logical replication, starting
2414
- at WAL location <replaceable class="parameter">XXX/XXX</replaceable>. The server can
2415
- reply with an error, for example if the requested section of WAL has already
2416
- been recycled. On success, server responds with a CopyBothResponse
2413
+ Instructs server to start streaming WAL for logical replication,
2414
+ starting at either WAL location <replaceable
2415
+ class="parameter">XXX/XXX</replaceable> or the slot's
2416
+ <literal>confirmed_flush_lsn</literal> (see <xref
2417
+ linkend="view-pg-replication-slots"/>), whichever is greater. This
2418
+ behavior makes it easier for clients to avoid updating their local LSN
2419
+ status when there is no data to process. However, starting at a
2420
+ different LSN than requested might not catch certain kinds of client
2421
+ errors; so the client may wish to check that
2422
+ <literal>confirmed_flush_lsn</literal> matches its expectations before
2423
+ issuing <literal>START_REPLICATION</literal>.
2424
+ </para>
2425
+
2426
+ <para>
2427
+ The server can reply with an error, for example if the
2428
+ slot does not exist. On success, server responds with a CopyBothResponse
2417
2429
message, and then starts to stream WAL to the frontend.
2418
2430
</para>
2419
2431
0 commit comments