When updating ShmemVariableCache from a checkpoint record, be sure to set

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c64339face6e9abd041ab58ade2aceb48a9f4956
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-02-17T03:10:33Z
Releases: 9.0.0
When updating ShmemVariableCache from a checkpoint record, be sure to set
all the values derived from oldestXid, not just that field.  Brain fade in
one of my patches associated with flat file removal, exposed by a report
from Fujii Masao.

With this change, xidVacLimit should always be valid, so remove a couple of
bits of complexity associated with the previous assumption that sometimes
it wouldn't get set right away.

Files

PathChange+/−
src/backend/access/transam/varsup.c modified +7 −10
src/backend/access/transam/xlog.c modified +6 −11