]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Replace some hard-wired OID constants with corresponding macros.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Feb 2026 04:15:20 +0000 (23:15 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 8 Feb 2026 04:15:20 +0000 (23:15 -0500)
commit73dd7163c5d19f93b629d1ccd9d2a2de6e9667f6
treee3a91dca5254dab2c886a5e9581a50c42ee85c59
parentc0bf15729f461308f54b7d4d46472c1ad43941a3
Replace some hard-wired OID constants with corresponding macros.

Looking again at commit 7cdb633c8, I wondered why we have hard-wired
"1034" for the OID of type aclitem[].  Some other entries in the same
array have numeric type OIDs as well.  This seems to be a hangover
from years ago when not every built-in pg_type entry had an OID macro.
But since we made genbki.pl responsible for generating these macros,
there are macros available for all these array types, so there's no
reason not to follow the project policy of never writing numeric OID
constants in C code.
src/backend/bootstrap/bootstrap.c