File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -379,8 +379,8 @@ pg_physical_replication_slot_advance(XLogRecPtr moveto)
379
379
/*
380
380
* Helper function for advancing our logical replication slot forward.
381
381
*
382
- * The slot's restart_lsn is used as start point for reading records,
383
- * while confirmed_lsn is used as base point for the decoding context.
382
+ * The slot's restart_lsn is used as start point for reading records, while
383
+ * confirmed_flush is used as base point for the decoding context.
384
384
*
385
385
* We cannot just do LogicalConfirmReceivedLocation to update confirmed_flush,
386
386
* because we need to digest WAL to advance restart_lsn allowing to recycle
@@ -550,8 +550,8 @@ pg_replication_slot_advance(PG_FUNCTION_ARGS)
550
550
/*
551
551
* Check if the slot is not moving backwards. Physical slots rely simply
552
552
* on restart_lsn as a minimum point, while logical slots have confirmed
553
- * consumption up to confirmed_lsn , meaning that in both cases data older
554
- * than that is not available anymore.
553
+ * consumption up to confirmed_flush , meaning that in both cases data
554
+ * older than that is not available anymore.
555
555
*/
556
556
if (OidIsValid (MyReplicationSlot -> data .database ))
557
557
minlsn = MyReplicationSlot -> data .confirmed_flush ;
You can’t perform that action at this time.
0 commit comments