Re: Decoupling our alignment assumptions about int64 and double

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

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2026-01-30T01:21:20Z
Lists: pgsql-hackers

Attachments

Here's a v2 responding to your suggestions.  0001 refactors
att_align_nominal(), and then 0002 is nearly the same as the
prior patch except for rebasing over that change.  I added
a test case for alignment = max too (the other cases seem
covered already, somewhat indirectly via pg_upgrade testing).

I think this might be about ready to go, unless somebody has
a better idea than 'l' for the catalog representation of
TYPALIGN_INT64.

			regards, tom lane

Commits

  1. Cope with AIX's alignment woes by using _Pragma("pack").

  2. Make some minor cleanups in typalign-related code.

  3. Refactor att_align_nominal() to improve performance.