pgsql: Fix hot standby bug with GiST scans.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix hot standby bug with GiST scans.
Date: 2014-04-08 12:39:39
Message-ID: E1WXVJT-00045y-6i@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix hot standby bug with GiST scans.

Don't reset the rightlink of a page when replaying a page update record.
This was a leftover from pre-hot standby days, when it was not possible to
have scans concurrent with WAL replay. Resetting the right-link was not
necessary back then either, but it was done for the sake of tidiness. But
with hot standby, it's wrong, because a concurrent scan might still need it.

Backpatch all versions with hot standby, 9.0 and above.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/601c01e08ded65225c0a94878a9e5b6d90cd1206

Modified Files
--------------
src/backend/access/gist/gistxlog.c | 1 -
1 file changed, 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2014-04-08 14:33:38 pgsql: Add new to_reg* functions for error-free OID lookups.
Previous Message Heikki Linnakangas 2014-04-07 16:57:28 pgsql: Zero padding byte at end of GIN posting list.