pgsql: Truncate the predicate lock SLRU to empty, instead of almost emp

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Truncate the predicate lock SLRU to empty, instead of almost emp
Date: 2011-04-08 20:52:55
Message-ID: E1Q8Ifn-00053E-Vb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/cdcdfca40199bbdb30c78d105e4db267b631289c

Modified Files
--------------
src/backend/storage/lmgr/predicate.c | 26 +++++++++++++++++++-------
1 files changed, 19 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-04-08 21:40:48 pgsql: Fix make_greater_string to not have an undocumented collation as
Previous Message Tom Lane 2011-04-08 20:48:47 pgsql: Tweak collation setup for GIN index comparison functions.