]> granicus.if.org Git - postgresql/commit
Remove VARLENA_FIXED_SIZE hack, which is irreversibly broken now that
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 30 Nov 2000 18:38:47 +0000 (18:38 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 30 Nov 2000 18:38:47 +0000 (18:38 +0000)
commit1f5cc8c78aa3e600f3857f39e1b92bb9d019e68b
tree993c67d3b94ec50a46a200285d2c9d629af7d7f9
parent59a9735fc814f66aa4b7a685557e790eb176f96c
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.
src/backend/access/common/heaptuple.c
src/backend/access/common/indextuple.c
src/backend/access/heap/heapam.c
src/backend/utils/cache/relcache.c
src/include/access/heapam.h
src/include/access/itup.h
src/include/catalog/pg_type.h