]> granicus.if.org Git - postgresql/commit
Cosmetic improvement: use BKI_DEFAULT and BKI_LOOKUP in pg_language.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Apr 2018 17:26:26 +0000 (13:26 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Apr 2018 17:26:26 +0000 (13:26 -0400)
commit85475afdb6f4f630f2071235373a986e472a117b
treee9d69ee0eb214d72ae571b4ebf0892e079d1cfa3
parent9cb7db3f0c1f554cdcbbd97f78a119a19756e6ef
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.
src/include/catalog/pg_language.dat
src/include/catalog/pg_language.h