postgresql/src/backend
Tom Lane 7cdb633c89 Make some minor cleanups in typalign-related code.
Commit 7b378237a widened AclMode to 64 bits, which implies that
the alignment of AclItem is now determined by an int64 field.
That commit correctly set the typalign for SQL type aclitem to
'd', but it missed the hard-wired knowledge about _aclitem in
bootstrap.c.  This doesn't seem to have caused any ill effects,
probably because we never try to fill a non-null value into
an aclitem[] column during bootstrap.  Nonetheless, it's clearly
a gotcha waiting to happen, so fix it up.

In passing, also fix a couple of typanalyze functions that were
using hard-coded typalign constants when they could just as
easily use greppable TYPALIGN_xxx macros.

Noticed these while working on a patch to expand the set of
typalign values.  I doubt we are going to pursue that path,
but these fixes still seem worth a quick commit.

Discussion: https://postgr.es/m/1127261.1769649624@sss.pgh.pa.us
2026-02-06 20:46:03 -05:00
..
access Adjust style of some debugging macros. 2026-02-06 16:24:21 -06:00
archive Update copyright for 2026 2026-01-01 13:24:10 -05:00
backup Fix incorrect errno in OpenWalSummaryFile() 2026-02-03 11:25:10 +09:00
bootstrap Make some minor cleanups in typalign-related code. 2026-02-06 20:46:03 -05:00
catalog Reject ADD CONSTRAINT NOT NULL if name mismatches existing constraint 2026-02-03 12:33:29 +01:00
commands Add two IO wait events for COPY FROM/TO on a pipe/file/program 2026-02-03 12:20:41 +09:00
executor Rename AssertVariableIsOfType to StaticAssertVariableIsOfType 2026-02-03 08:45:24 +01:00
foreign Update copyright for 2026 2026-01-01 13:24:10 -05:00
jit Rename AssertVariableIsOfType to StaticAssertVariableIsOfType 2026-02-03 08:45:24 +01:00
lib Remove #include <math.h> where not needed 2026-01-15 19:09:47 +01:00
libpq Fix accidentally cast away qualifiers 2026-01-26 16:02:31 +01:00
main Update copyright for 2026 2026-01-01 13:24:10 -05:00
nodes Fix accidentally cast away qualifiers 2026-01-26 16:02:31 +01:00
optimizer Fix mistakes in commit 4020b370f2 2026-01-29 08:04:47 -05:00
parser Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
partitioning Fix typos and inconsistencies in code and comments 2026-01-05 09:19:15 +09:00
po Update copyright for 2026 2026-01-01 13:24:10 -05:00
port Move shmem allocator's fields from PGShmemHeader to its own struct 2026-01-30 18:22:56 +02:00
postmaster Assign "backend" type earlier during process start-up 2026-02-04 16:56:57 +01:00
regex Update copyright for 2026 2026-01-01 13:24:10 -05:00
replication pg_upgrade: Optimize logical replication slot caught-up check. 2026-02-04 17:11:27 -08:00
rewrite Update copyright for 2026 2026-01-01 13:24:10 -05:00
snowball Fix meson build of snowball code. 2026-01-05 16:51:36 -05:00
statistics Fix comment in extended_stats_funcs.c 2026-02-05 15:14:53 +09:00
storage Add file_extend_method=posix_fallocate,write_zeros. 2026-02-06 17:38:49 +13:00
tcop Assign "backend" type earlier during process start-up 2026-02-04 16:56:57 +01:00
tsearch Make some minor cleanups in typalign-related code. 2026-02-06 20:46:03 -05:00
utils Make some minor cleanups in typalign-related code. 2026-02-06 20:46:03 -05:00
.gitignore
common.mk
Makefile Fix build inconsistency due to the generation of wait-event code 2026-02-02 08:02:39 +09:00
meson.build meson: Rename cpp variable to cxx 2026-01-09 08:58:23 +01:00
nls.mk Create a separate file listing backend types 2025-09-26 15:21:49 +02:00