pgsql: Fix bug in GIN posting tree root creation. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix bug in GIN posting tree root creation.
Date
Msg-id E1VgYvh-0001Sr-Mc@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Move variable closer to where it is used
Next
From: Kevin Grittner
Date:
Subject: pgsql: Free ignorelist after each regression test schedule.