Re: Tuple alignment - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Tuple alignment
Date
Msg-id 988.1182177332@sss.pgh.pa.us
Whole thread Raw
In response to Tuple alignment  (Heikki Linnakangas <heikki@enterprisedb.com>)
Responses Re: Tuple alignment  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> Why do we require that t_hoff is MAXALIGNed? ISTM that if the first 
> field in a tuple doesn't require alignment, it could be stored 
> immediately after the null bitmap, without padding.

Then the intra-tuple alignment would be unpredictable.

The OID trick doesn't work very well either.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Simon Riggs"
Date:
Subject: Reducing NUMERIC size for 8.3
Next
From: Tom Lane
Date:
Subject: Re: Reducing NUMERIC size for 8.3