Distinguish between MaxHeapAttributeNumber and MaxTupleAttributeNumber,
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |