Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7a2fa57

Browse files
committed
Preserve commit timestamps across clean restart
An oversight in setting the boundaries of known commit timestamps during startup caused old commit timestamps to become inaccessible after a server restart. Author and reporter: Julien Rouhaud Review, test code: Craig Ringer
1 parent ce9bae2 commit 7a2fa57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/access/transam/commit_ts.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,8 @@ SetCommitTsLimit(TransactionId oldestXact, TransactionId newestXact)
842842
else
843843
{
844844
Assert(ShmemVariableCache->newestCommitTsXid == InvalidTransactionId);
845+
ShmemVariableCache->oldestCommitTsXid = oldestXact;
846+
ShmemVariableCache->newestCommitTsXid = newestXact;
845847
}
846848
LWLockRelease(CommitTsLock);
847849
}

0 commit comments

Comments
 (0)