• Tom Lane's avatar
    Don't require pg_class.dat to contain correct relnatts values. · 86ff085e
    Tom Lane authored
    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
    86ff085e
pg_class.dat 872 Bytes