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

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

From
Heikki Linnakangas
Date:
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(-)