diff options
author | Simon Riggs | 2013-06-23 10:05:02 +0000 |
---|---|---|
committer | Simon Riggs | 2013-06-23 10:05:02 +0000 |
commit | 1f09121b4edee8b4d4cdd4ee0a8cffacee7b85f7 (patch) | |
tree | 02cb5b79be227c225654622eb3017581a61de825 /src/include/storage/procarray.h | |
parent | dab1603e5238d3abce9f7a3a7b9450888cc07c70 (diff) |
Ensure no xid gaps during Hot Standby startup
In some cases with higher numbers of subtransactions
it was possible for us to incorrectly initialize
subtrans leading to complaints of missing pages.
Bug report by Sergey Konoplev
Analysis and fix by Andres Freund
Diffstat (limited to 'src/include/storage/procarray.h')
-rw-r--r-- | src/include/storage/procarray.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/storage/procarray.h b/src/include/storage/procarray.h index d5fdfea6f20..c5f58b413db 100644 --- a/src/include/storage/procarray.h +++ b/src/include/storage/procarray.h @@ -26,6 +26,7 @@ extern void ProcArrayRemove(PGPROC *proc, TransactionId latestXid); extern void ProcArrayEndTransaction(PGPROC *proc, TransactionId latestXid); extern void ProcArrayClearTransaction(PGPROC *proc); +extern void ProcArrayInitRecovery(TransactionId initializedUptoXID); extern void ProcArrayApplyRecoveryInfo(RunningTransactions running); extern void ProcArrayApplyXidAssignment(TransactionId topxid, int nsubxids, TransactionId *subxids); |