From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove remaining hard-wired OID references in the initial catalo
Date: Tue, 12 Mar 2019 16:30:48 +0000
Message-ID: <E1h3kIi-0005Ez-DN@gemulon.postgresql.org> (raw)
Remove remaining hard-wired OID references in the initial catalog data.
In the v11-era commits that taught genbki.pl to resolve symbolic
OID references in the initial catalog data, we didn't bother to
make every last reference symbolic; some of the catalogs have so
few initial rows that it didn't seem worthwhile.
However, the new project policy that OIDs assigned by new patches
should be automatically renumberable changes this calculus.
A patch that wants to add a row in one of these catalogs would have
a problem when the OID it assigns gets renumbered. Hence, do the
mop-up work needed to make all OID references in initial data be
symbolic, and establish an associated project policy that we'll
never again write a hard-wired OID reference there.
No catversion bump since the contents of postgres.bki aren't
actually changed by this commit.
Discussion: https://postgr.es/m/CAH2-WzmMTGMcPuph4OvsO7Ykut0AOCF_i-=eaochT0dd2BN9CQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3aa0395d4ed36f040f20da304c122b956529dd14
Modified Files
--------------
doc/src/sgml/bki.sgml | 73 ++++++++++-------
src/backend/catalog/genbki.pl | 80 ++++++++++++++----
src/include/catalog/pg_class.dat | 68 ++++++++--------
src/include/catalog/pg_class.h | 135 ++++++++++++++++++++++---------
src/include/catalog/pg_database.dat | 9 +--
src/include/catalog/pg_database.h | 54 +++++++++----
src/include/catalog/pg_proc.dat | 7 +-
src/include/catalog/pg_ts_config.dat | 3 +-
src/include/catalog/pg_ts_config.h | 19 +++--
src/include/catalog/pg_ts_config_map.dat | 57 ++++++++-----
src/include/catalog/pg_ts_config_map.h | 15 +++-
src/include/catalog/pg_ts_dict.dat | 3 +-
src/include/catalog/pg_ts_dict.h | 22 +++--
src/include/catalog/pg_type.dat | 22 ++---
src/include/catalog/pg_type.h | 4 +-
15 files changed, 381 insertions(+), 190 deletions(-)
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: Remove remaining hard-wired OID references in the initial catalo
In-Reply-To: <E1h3kIi-0005Ez-DN@gemulon.postgresql.org>
References: <E1h3kIi-0005Ez-DN@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