]> granicus.if.org Git - postgresql/commit
Extend the BKI infrastructure to allow system catalogs to be given
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Sep 2009 22:42:03 +0000 (22:42 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Sep 2009 22:42:03 +0000 (22:42 +0000)
commit49856352306d1c809c425a384d2887d0f8e1d544
treed305158a662e35e71984392ea07cdc21fa42ecfe
parentc2e228d44ed919804728d29d87bd8accf3ec1084
Extend the BKI infrastructure to allow system catalogs to be given
hand-assigned rowtype OIDs, even when they are not "bootstrapped" catalogs
that have handmade type rows in pg_type.h.  Give pg_database such an OID.
Restore the availability of C macros for the rowtype OIDs of the bootstrapped
catalogs.  (These macros are now in the individual catalogs' .h files,
though, not in pg_type.h.)

This commit doesn't do anything especially useful by itself, but it's
necessary infrastructure for reverting some ill-considered changes in
relcache.c.
20 files changed:
doc/src/sgml/bki.sgml
src/backend/bootstrap/bootparse.y
src/backend/bootstrap/bootscanner.l
src/backend/catalog/genbki.sh
src/backend/catalog/heap.c
src/backend/catalog/toasting.c
src/backend/commands/cluster.c
src/backend/commands/tablecmds.c
src/backend/executor/execMain.c
src/include/catalog/catversion.h
src/include/catalog/duplicate_oids
src/include/catalog/genbki.h
src/include/catalog/heap.h
src/include/catalog/pg_attribute.h
src/include/catalog/pg_class.h
src/include/catalog/pg_database.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_type.h
src/include/catalog/unused_oids
src/tools/msvc/Genbki.pm