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: Use symbolic references for pg_language OIDs in the bootstrap da
Date: Thu, 03 Jan 2019 23:38:55 +0000
Message-ID: <E1gfCZj-00043Z-UZ@gemulon.postgresql.org> (raw)

Use symbolic references for pg_language OIDs in the bootstrap data.

This patch teaches genbki.pl to replace pg_language names by OIDs
in much the same way as it already does for pg_am names etc, and
converts pg_proc.dat to use such symbolic references in the prolang
column.

Aside from getting rid of a few more magic numbers in the initial
catalog data, this means that Gen_fmgrtab.pl no longer needs to read
pg_language.dat, since it doesn't have to know the OID of the "internal"
language; now it's just looking for the string "internal".

No need for a catversion bump, since the contents of postgres.bki
don't actually change at all.

John Naylor

Discussion: https://postgr.es/m/CAJVSVGWtUqxpfAaxS88vEGvi+jKzWZb2EStu5io-UPc4p9rSJg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/814c9019aa7b0ce3a4f19415023a256fdd717b20

Modified Files
--------------
doc/src/sgml/bki.sgml            |  6 ++-
src/backend/catalog/genbki.pl    | 10 ++++-
src/backend/utils/Gen_fmgrtab.pl |  7 ++-
src/backend/utils/Makefile       |  8 +---
src/include/catalog/pg_proc.dat  | 92 ++++++++++++++++++++--------------------
src/include/catalog/pg_proc.h    |  2 +-
src/tools/msvc/Solution.pm       |  4 +-
7 files changed, 66 insertions(+), 63 deletions(-)



Message-ID: <E1gfCZj-00043Z-UZ@gemulon.postgresql.org>
Permalink:  ../E1gfCZj-00043Z-UZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gfCZj-00043Z-UZ@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: Use symbolic references for pg_language OIDs in the bootstrap da
  In-Reply-To: <E1gfCZj-00043Z-UZ@gemulon.postgresql.org>
  References: <E1gfCZj-00043Z-UZ@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