We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a8acc2 commit bd08d2eCopy full SHA for bd08d2e
modules/module-postgres/src/replication/WalStream.ts
@@ -1003,7 +1003,11 @@ WHERE oid = $1::regclass`,
1003
// Big caveat: This _must not_ be used to skip individual messages, since this LSN
1004
// may be in the middle of the next transaction.
1005
// It must only be used to associate checkpoints with LSNs.
1006
- await batch.keepalive(chunkLastLsn);
+ const didCommit = await batch.keepalive(chunkLastLsn);
1007
+ if (didCommit) {
1008
+ this.oldestUncommittedChange = null;
1009
+ }
1010
+
1011
this.isStartingReplication = false;
1012
}
1013
0 commit comments