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:11 +0000 (21:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Oct 2009 21:14:11 +0000 (21:14 +0000)
commitc3110e49b1601941e0173e8d75378f943b4ca6fd
tree3cb0a453fe9e193f38e8796e9281c8274bc96f28
parentac317a8474e7c2e2c67ee37f8cb1a6511eb662d9
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