pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Cosmetic improvement: use BKI_DEFAULT and BKI_LOOKUP in pg_langu
Date: Sun, 29 Apr 2018 17:26:35 +0000
Message-ID: <E1fCq5r-0002Qu-Os@gemulon.postgresql.org> (raw)

Cosmetic improvement: use BKI_DEFAULT and BKI_LOOKUP in pg_language.

The point of this is not really to remove redundancy in pg_language.dat;
with only three entries, it's hardly worth it.  Rather, it is to get
to a point where there are exactly zero hard-coded numeric pg_proc OID
references in the catalog .dat files.  The lanvalidator column was the
only remaining location of such references, and it seems like a good
thing for future-proofing reasons to make it not be a special case.

There are still a few places in the .dat files with numeric OID references
to other catalogs, but after review I don't see any that seem worth
changing at present.  In each case there are just too few entries to make
it worth the trouble to create lookup infrastructure.

This doesn't change the emitted postgres.bki file, so no catversion bump.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/85475afdb6f4f630f2071235373a986e472a117b

Modified Files
--------------
src/include/catalog/pg_language.dat | 12 +++---------
src/include/catalog/pg_language.h   | 30 ++++++++++++++++++++++--------
2 files changed, 25 insertions(+), 17 deletions(-)



Message-ID: <E1fCq5r-0002Qu-Os@gemulon.postgresql.org>
Permalink:  ../E1fCq5r-0002Qu-Os@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fCq5r-0002Qu-Os@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Cosmetic improvement: use BKI_DEFAULT and BKI_LOOKUP in pg_langu
  In-Reply-To: <E1fCq5r-0002Qu-Os@gemulon.postgresql.org>
  References: <E1fCq5r-0002Qu-Os@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox