]> granicus.if.org Git - postgresql/commit
Remove remaining hard-wired OID references in the initial catalog data.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Mar 2019 16:30:35 +0000 (12:30 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Mar 2019 16:30:35 +0000 (12:30 -0400)
commit3aa0395d4ed36f040f20da304c122b956529dd14
treed8aeb598a1af2284cd7503e57568258174cc4167
parenta6417078c4140e51cfd717448430f274b449d687
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
15 files changed:
doc/src/sgml/bki.sgml
src/backend/catalog/genbki.pl
src/include/catalog/pg_class.dat
src/include/catalog/pg_class.h
src/include/catalog/pg_database.dat
src/include/catalog/pg_database.h
src/include/catalog/pg_proc.dat
src/include/catalog/pg_ts_config.dat
src/include/catalog/pg_ts_config.h
src/include/catalog/pg_ts_config_map.dat
src/include/catalog/pg_ts_config_map.h
src/include/catalog/pg_ts_dict.dat
src/include/catalog/pg_ts_dict.h
src/include/catalog/pg_type.dat
src/include/catalog/pg_type.h