Fix bug in compressed GIN data leaf page splitting code.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 29 Aug 2014 11:19:34 +0000 (14:19 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 29 Aug 2014 11:22:25 +0000 (14:22 +0300)
commit88231ec5784a00ce406553276be8a5a443dd3ba0
treedf1b626ce50566bd9d21008bfe84b1b13416d474
parent65c9dc231a261691c76550f61f5b22f954dfcfd5
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.
src/backend/access/gin/gindatapage.c