]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Repair a number of places that didn't bother to check whether PageAddItem
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Mar 2001 21:20:26 +0000 (21:20 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Mar 2001 21:20:26 +0000 (21:20 +0000)
commitb109b03feaec96aab6c635137b5a668389df8d31
treeabdfa61d10ad947475abdf136662fb5d3900ac02
parent296c806dd5a44bdbca6f78600a3cc68ecd89161b
Repair a number of places that didn't bother to check whether PageAddItem
succeeds or not.  Revise rtree page split algorithm to take care about
making a feasible split --- ie, will the incoming tuple actually fit?
Failure to make a feasible split, combined with failure to notice the
failure, account for Jim Stone's recent bug report.  I suspect that
hash and gist indices may have the same type of bug, but at least now
we'll get error messages rather than silent failures if so.  Also clean
up rtree code to use Datum rather than char* where appropriate.
src/backend/access/gist/gist.c
src/backend/access/hash/hashinsert.c
src/backend/access/hash/hashovfl.c
src/backend/access/hash/hashpage.c
src/backend/access/rtree/rtree.c
src/backend/commands/sequence.c