Check for GiST index tuples that don't fit on a page.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: ef8ac584e0a7062101dc244566bfe0ca7a13496d
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-10-03T11:50:29Z
Releases: 9.3.6
Check for GiST index tuples that don't fit on a page.

The page splitting code would go into infinite recursion if you try to
insert an index tuple that doesn't fit even on an empty page.

Per analysis and suggested fix by Andrew Gierth. Fixes bug #11555, reported
by Bryan Seitz (analysis happened over IRC). Backpatch to all supported
versions.

Files

PathChange+/−
src/backend/access/gist/gist.c modified +17 −0