Make sure that GIN fast-insert and regular code paths enforce the same
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Oct 2009 21:14:04 +0000 (21:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Oct 2009 21:14:04 +0000 (21:14 +0000)
commite66d714386cd3040b328d6a894802d01dd1d395d
tree9971031124162948d5e1d622f9dff8f59d9049d1
parentd691cb91415542e398aa6ad015ea6a5eab53ab0d
Make sure that GIN fast-insert and regular code paths enforce the same
tuple size limit.  Improve the error message for index-tuple-too-large
so that it includes the actual size, the limit, and the index name.
Sync with the btree occurrences of the same error.

Back-patch to 8.4 because it appears that the out-of-sync problem
is occurring in the field.

Teodor and Tom
src/backend/access/gin/ginentrypage.c
src/backend/access/gin/ginfast.c
src/backend/access/gin/gininsert.c
src/backend/access/gin/ginvacuum.c
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtsort.c
src/include/access/gin.h