Fix bug in the new GIN incomplete-split code.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 1 Apr 2014 19:45:10 +0000 (22:45 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 1 Apr 2014 19:49:47 +0000 (22:49 +0300)
commit8bbbcb91bae1489471d11fef269533bc4df2f766
tree4347d4d192b152b73b693326e142ed037ad50fe8
parent6eff0accfe6b6170d10b91df769ea523b50927b8
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.
src/backend/access/gin/ginbtree.c