Truncate the predicate lock SLRU to empty, instead of almost empty.

Robert Haas <rhaas@postgresql.org>

Commit: cdcdfca40199bbdb30c78d105e4db267b631289c
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-04-08T20:52:19Z
Releases: 9.1.0
Truncate the predicate lock SLRU to empty, instead of almost empty.

Otherwise, the SLRU machinery can get confused and think that the SLRU
has wrapped around.  Along the way, regardless of whether we're
truncating all of the SLRU or just some of it, flush pages after
truncating, rather than before.

Kevin Grittner

Files

PathChange+/−
src/backend/storage/lmgr/predicate.c modified +19 −7