pgsql: Fix bug in GIN posting tree root creation.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bug in GIN posting tree root creation.
Date: 2013-11-13 11:48:17
Message-ID: E1VgYvh-0001Sr-Mc@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix bug in GIN posting tree root creation.

The root page is filled with as many items as fit, and the rest are inserted
using normal insertions. However, I fumbled the variable names, and the code
actually memcpy'd all the items on the page, overflowing the buffer. While
at it, rename the variable to make the distinction more clear.

Reported by Teodor Sigaev. This bug was introduced by my recent
refactorings, so no backpatching required.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/07fca603b56e39c50478b44070fdfb38313cd51c

Modified Files
--------------
src/backend/access/gin/gindatapage.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2013-11-13 13:36:38 Re: [COMMITTERS] pgsql: Replace duplicate_oids with Perl implementation
Previous Message Peter Eisentraut 2013-11-13 11:29:35 pgsql: Move variable closer to where it is used