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
- v2-0001-Refactor-att_align_nominal-to-improve-performance.patch (text/x-diff) patch v2-0001
- v2-0002-Decouple-our-alignment-assumptions-about-int64-an.patch (text/x-diff) patch v2-0002
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
-
Cope with AIX's alignment woes by using _Pragma("pack").
- ecae09725236 19 (unreleased) landed
-
Make some minor cleanups in typalign-related code.
- 7cdb633c89da 19 (unreleased) landed
-
Refactor att_align_nominal() to improve performance.
- da7a1dc0d62a 19 (unreleased) landed