Remove VARLENA_FIXED_SIZE hack, which is irreversibly broken now that
Tom Lane <tgl@sss.pgh.pa.us>
Remove VARLENA_FIXED_SIZE hack, which is irreversibly broken now that both MULTIBYTE and TOAST prevent char(n) from being truly fixed-size. Simplify and speed up fastgetattr() and index_getattr() macros by eliminating special cases for attnum=1. It's just as fast to handle the first attribute by presetting its attcacheoff to zero; so do that instead when loading the tupledesc in relcache.c.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/heaptuple.c | modified | +14 −29 |
| src/backend/access/common/indextuple.c | modified | +47 −87 |
| src/backend/access/heap/heapam.c | modified | +3 −10 |
| src/backend/utils/cache/relcache.c | modified | +49 −1 |
| src/include/access/heapam.h | modified | +4 −11 |
| src/include/access/itup.h | modified | +4 −11 |
| src/include/catalog/pg_type.h | modified | +1 −2 |