OSDN Git Service

It turns out that the item size limit for btree indexes is about BLCKSZ/3,
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Dec 1999 03:48:22 +0000 (03:48 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Dec 1999 03:48:22 +0000 (03:48 +0000)
commita6a70315afb4da24a992b2078c46df1d5d19b5c0
tree719b15a10f288040f0115c7fb7f74923fdc2275b
parentad322de0ae388785d84212edd5b460dfcc680ac5
It turns out that the item size limit for btree indexes is about BLCKSZ/3,
not BLCKSZ/2 as some of us thought.  Add check for oversize item so that
failure is detected before corrupting the index, not after.
src/backend/access/nbtree/nbtinsert.c