Use symbolic references for pg_language OIDs in the bootstrap data.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/bki.sgml | modified | +4 −2 |
| src/backend/catalog/genbki.pl | modified | +9 −1 |
| src/backend/utils/Gen_fmgrtab.pl | modified | +3 −4 |
| src/backend/utils/Makefile | modified | +2 −6 |
| src/include/catalog/pg_proc.dat | modified | +46 −46 |
| src/include/catalog/pg_proc.h | modified | +1 −1 |
| src/tools/msvc/Solution.pm | modified | +1 −3 |
Documentation touched
Discussion
- inconsistency and inefficiency in setup_conversion() 15 messages · 2018-04-28 → 2019-01-04