From e49a60353441deffd45dafbd83c7cecf90e24689 Mon Sep 17 00:00:00 2001 From: Alex Kingsborough Date: Fri, 14 Jan 2022 21:32:25 +0000 Subject: [PATCH] commitTS subxids bug fix In commitTS if the last subxid was the first timestamp on a page, that timestamp would not get written, this change makes sure we write all the subxid timestamps correctly --- src/backend/access/transam/commit_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/access/transam/commit_ts.c b/src/backend/access/transam/commit_ts.c index 0985fa155c..3d32507345 100644 --- a/src/backend/access/transam/commit_ts.c +++ b/src/backend/access/transam/commit_ts.c @@ -183,7 +183,7 @@ TransactionTreeSetCommitTsData(TransactionId xid, int nsubxids, pageno); /* if we wrote out all subxids, we're done. */ - if (j + 1 >= nsubxids) + if (j >= nsubxids) break; /* -- 2.16.6