Teach genbki.pl to auto-generate pg_type entries for array types.
Tom Lane <tgl@sss.pgh.pa.us>
Teach genbki.pl to auto-generate pg_type entries for array types. This eliminates some more tedium in adding new catalog entries, specifically the need to set up an array type when adding a new built-in data type. Now it's sufficient to assign an OID for the array type and write it in an "array_type_oid" metadata field. You don't have to fill the base type's typarray link explicitly, either. No catversion bump since the contents of pg_type aren't changed. (Well, their order might be different, but that doesn't matter.) John Naylor, reviewed and whacked around a bit by Dagfinn Ilmari Mannsåker, and some more by me. Discussion: https://postgr.es/m/CAJVSVGVTb6m9pJF49b3SuA8J+T-THO9c0hxOmoyv-yGKh-FbNg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/bki.sgml | modified | +45 −7 |
| src/backend/catalog/Catalog.pm | modified | +74 −4 |
| src/backend/catalog/genbki.pl | modified | +2 −0 |
| src/include/catalog/genbki.h | modified | +2 −0 |
| src/include/catalog/pg_type.dat | modified | +258 −606 |
| src/include/catalog/pg_type.h | modified | +15 −15 |
| src/include/catalog/reformat_dat_file.pl | modified | +19 −10 |
Documentation touched
Discussion
- generating bootstrap entries for array types 10 messages · 2018-05-19 → 2018-09-21