mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Improve documentation for START_REPLICATION ... LOGICAL.
The starting point may not be exactly what the client requested; it may be at the slot's confirmed_flush_lsn. Also, upgrade the message from DEBUG1 to LOG when this happens. Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/c5c861d576f2511732f8002c76245da587110b1c.camel%40j-davis.com
This commit is contained in:
@ -520,8 +520,12 @@ CreateDecodingContext(XLogRecPtr start_lsn,
|
||||
* xlog records didn't result in anything relevant for logical
|
||||
* decoding. Clients have to be able to do that to support synchronous
|
||||
* replication.
|
||||
*
|
||||
* Starting at a different LSN than requested might not catch certain
|
||||
* kinds of client errors; so the client may wish to check that
|
||||
* confirmed_flush_lsn matches its expectations.
|
||||
*/
|
||||
elog(DEBUG1, "cannot stream from %X/%X, minimum is %X/%X, forwarding",
|
||||
elog(LOG, "%X/%X has been already streamed, forwarding to %X/%X",
|
||||
LSN_FORMAT_ARGS(start_lsn),
|
||||
LSN_FORMAT_ARGS(slot->data.confirmed_flush));
|
||||
|
||||
|
Reference in New Issue
Block a user