pgsql: Don't use custom OID symbols in pg_proc.dat.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Don't use custom OID symbols in pg_proc.dat.
Date: 2020-10-28 16:18:56
Message-ID: E1kXoA4-0002KU-7R@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't use custom OID symbols in pg_proc.dat.

We have a perfectly good convention for OID macros for built-in functions
already, so making custom symbols is just introducing unnecessary
deviation from the convention. Remove the one case that had snuck in,
and add an error check in genbki.pl to discourage future instances.

Although this touches pg_proc.dat, there's no need for a catversion
bump since the actual catalog data isn't changed.

John Naylor

Discussion: https://postgr.es/m/CAFBsxsHpCbjfoddNGpnnnY5pHwckWfiYkMYSF74PmP1su0+ZOw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/36b93121436cbbf357974144068c23bac75154fa

Modified Files
--------------
src/backend/catalog/genbki.pl | 7 +++++++
src/backend/utils/cache/relcache.c | 4 ++--
src/include/catalog/pg_proc.dat | 3 +--
3 files changed, 10 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-10-28 17:47:16 pgsql: Calculate extraUpdatedCols in query rewriter, not parser.
Previous Message Tom Lane 2020-10-28 15:15:55 pgsql: Fix foreign-key selectivity estimation in the presence of consta