pgsql: Truncate the predicate lock SLRU to empty, instead of almost emp - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Truncate the predicate lock SLRU to empty, instead of almost emp
Date
Msg-id E1Q8Ifn-00053E-Vb@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Tweak collation setup for GIN index comparison functions.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix make_greater_string to not have an undocumented collation as