Distinguish between MaxHeapAttributeNumber and MaxTupleAttributeNumber,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3212cf94176ff439095104693f45108f3c6d3a6d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2002-05-27T19:53:33Z
Releases: 7.3.1
Distinguish between MaxHeapAttributeNumber and MaxTupleAttributeNumber,
where the latter is made slightly larger to allow for in-memory tuples
containing resjunk attributes.  Responds to today's complaint that one
cannot UPDATE a table containing the allegedly-legal maximum number of
columns.

Also, apply Manfred Koizar's recent patch to avoid extra alignment padding
when there is a null bitmap.  This saves bytes in some cases while not
creating any backward-compatibility problem AFAICS.

Files

PathChange+/−
src/backend/access/common/heaptuple.c modified +9 −13
src/backend/access/heap/tuptoaster.c modified +11 −21
src/include/access/htup.h modified +43 −27