summaryrefslogtreecommitdiff
path: root/src/include/storage/procarray.h
diff options
context:
space:
mode:
authorSimon Riggs2013-06-23 10:05:02 +0000
committerSimon Riggs2013-06-23 10:05:02 +0000
commit1f09121b4edee8b4d4cdd4ee0a8cffacee7b85f7 (patch)
tree02cb5b79be227c225654622eb3017581a61de825 /src/include/storage/procarray.h
parentdab1603e5238d3abce9f7a3a7b9450888cc07c70 (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.h1
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);