]> granicus.if.org Git - postgresql/commit
Fix bug in GIN posting tree root creation.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 13 Nov 2013 11:44:46 +0000 (13:44 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 13 Nov 2013 11:47:59 +0000 (13:47 +0200)
commit07fca603b56e39c50478b44070fdfb38313cd51c
tree5a23d03a3d9b15f4397dfeaae53591a330a30651
parentaa04b323c36931f96159ab1fd6f74f8401ab4c92
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.
src/backend/access/gin/gindatapage.c