pgsql: Fix bug in compressed GIN data leaf page splitting code. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix bug in compressed GIN data leaf page splitting code.
Date
Msg-id E1XNKL2-0007bL-BE@gemulon.postgresql.org
Whole thread Raw
List 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
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/08bff295a7e7ac66a35f42e92e97782b9af64cdc

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


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix bug in compressed GIN data leaf page splitting code.
Next
From: Bruce Momjian
Date:
Subject: pgsql: pg_is_xlog_replay_paused(): remove super-user-only restriction