mirror of
https://github.com/postgres/postgres.git
synced 2026-02-13 15:53:13 -05:00
Practically everybody who's ever added a column to one of the bootstrap catalogs has been burnt by the need to update the relnatts field in the initial pg_class data to match. Now that we use Perl scripts to generate postgres.bki, we can have the machines take care of that, by filling the field during genbki.pl. While at it, use the BKI_DEFAULTS mechanism to eliminate repetitive specifications of other column values in pg_class.dat, too. They weren't particularly a maintenance problem, but this way is prettier (certainly the spotty previous usage of BKI_DEFAULTS wasn't pretty). No catversion bump needed, since this doesn't actually change the contents of postgres.bki. Per gripe from Justin Pryzby, though this is quite different from his originally proposed solution. Amit Langote, John Naylor, Tom Lane Discussion: https://postgr.es/m/20200212182337.GZ1412@telsasoft.com
28 lines
872 B
Text
28 lines
872 B
Text
#----------------------------------------------------------------------
|
|
#
|
|
# pg_class.dat
|
|
# Initial contents of the pg_class system catalog.
|
|
#
|
|
# Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
|
# Portions Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
# src/include/catalog/pg_class.dat
|
|
#
|
|
#----------------------------------------------------------------------
|
|
|
|
[
|
|
|
|
# Note: only bootstrap catalogs, ie those marked BKI_BOOTSTRAP, need to
|
|
# have entries here. Be sure that the OIDs listed here match those given in
|
|
# their CATALOG and BKI_ROWTYPE_OID macros.
|
|
|
|
{ oid => '1247',
|
|
relname => 'pg_type', reltype => 'pg_type' },
|
|
{ oid => '1249',
|
|
relname => 'pg_attribute', reltype => 'pg_attribute' },
|
|
{ oid => '1255',
|
|
relname => 'pg_proc', reltype => 'pg_proc' },
|
|
{ oid => '1259',
|
|
relname => 'pg_class', reltype => 'pg_class' },
|
|
|
|
]
|