Thread: pgsql: Fix bug in GIN posting tree root creation.

pgsql: Fix bug in GIN posting tree root creation.

From
Heikki Linnakangas
Date:
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(-)