pgsql: Fix bug in compressed GIN data leaf page splitting code.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bug in compressed GIN data leaf page splitting code.
Date: 2014-08-29 11:27:28
Message-ID: E1XNKL2-0007bK-B9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix bug in compressed GIN data leaf page splitting code.

The list of posting lists it's dealing with can contain placeholders for
deleted posting lists. The placeholders are kept around so that they can
be WAL-logged, but we must be careful to not try to access them.

This fixes bug #11280, reported by Mårten Svantesson. Backpatch to 9.4,
where the compressed data leaf page code was added.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/88231ec5784a00ce406553276be8a5a443dd3ba0

Modified Files
--------------
src/backend/access/gin/gindatapage.c | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2014-08-29 13:06:15 pgsql: pg_is_xlog_replay_paused(): remove super-user-only restriction
Previous Message Peter Eisentraut 2014-08-29 04:28:33 pgsql: doc: Revert ALTER TABLESPACE summary line