Thread: pgsql: Fix bug in the new GIN incomplete-split code.

pgsql: Fix bug in the new GIN incomplete-split code.

From
Heikki Linnakangas
Date:
Fix bug in the new GIN incomplete-split code.

Inserting a downlink to an internal page clears the incomplete-split flag
of the child's left sibling, so the left sibling's LSN also needs to be
updated and it needs to be marked dirty. The codepath for an insertion got
this right, but the case where the internal node is split because of
inserting the new downlink missed that.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8bbbcb91bae1489471d11fef269533bc4df2f766

Modified Files
--------------
src/backend/access/gin/ginbtree.c |    4 ++++
1 file changed, 4 insertions(+)