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

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bug in the new GIN incomplete-split code.
Date: 2014-04-01 19:50:00
Message-ID: E1WV4h6-00069S-U6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-04-02 01:30:58 pgsql: Fix bugs in manipulation of PgBackendStatus.st_clienthostname.
Previous Message Tom Lane 2014-04-01 19:20:50 pgsql: Doc: improve discussion of reverse+forward host name lookup in p