]> granicus.if.org Git - postgresql/commit
Truncate the predicate lock SLRU to empty, instead of almost empty.
authorRobert Haas <rhaas@postgresql.org>
Fri, 8 Apr 2011 20:51:45 +0000 (16:51 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 8 Apr 2011 20:52:19 +0000 (16:52 -0400)
commitcdcdfca40199bbdb30c78d105e4db267b631289c
tree8fb1d80073e239c3d4863ee902932fededfc406e
parent1766a5b63a950a667ed39c25256156bf366eb43c
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
src/backend/storage/lmgr/predicate.c