Ensure no xid gaps during Hot Standby startup
authorSimon Riggs <simon@2ndQuadrant.com>
Sun, 23 Jun 2013 10:05:02 +0000 (11:05 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 23 Jun 2013 10:05:02 +0000 (11:05 +0100)
commit1f09121b4edee8b4d4cdd4ee0a8cffacee7b85f7
tree02cb5b79be227c225654622eb3017581a61de825
parentdab1603e5238d3abce9f7a3a7b9450888cc07c70
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
src/backend/access/transam/xlog.c
src/backend/storage/ipc/procarray.c
src/include/storage/procarray.h