Make sure that GIN fast-insert and regular code paths enforce the same
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gin/ginentrypage.c | modified | +43 −9 |
| src/backend/access/gin/ginfast.c | modified | +4 −11 |
| src/backend/access/gin/gininsert.c | modified | +8 −8 |
| src/backend/access/gin/ginvacuum.c | modified | +3 −2 |
| src/backend/access/nbtree/nbtinsert.c | modified | +4 −3 |
| src/backend/access/nbtree/nbtsort.c | modified | +4 −3 |
| src/include/access/gin.h | modified | +6 −5 |