Finish up the flat-files project: get rid of GetRawDatabaseInfo() hack
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Feb 2005 18:43:34 +0000 (18:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Feb 2005 18:43:34 +0000 (18:43 +0000)
commit3750e1559b6e516a9b98c568670a04b4a3e5f1a0
tree00ec643258077bece5a719bf48d24af5e4efb75a
parentb5abdf434e8f849e6d66b534266c42f9c948494a
Finish up the flat-files project: get rid of GetRawDatabaseInfo() hack
in favor of looking at the flat file copy of pg_database during backend
startup.  This should finally eliminate the various corner cases in which
backend startup fails unexpectedly because it isn't able to distinguish
live and dead tuples in pg_database.  Simplify locking on pg_database
to be similar to the rules used with pg_shadow and pg_group, and eliminate
FlushRelationBuffers operations that were used only to reduce the odds
of failure of GetRawDatabaseInfo.
initdb forced due to addition of a trigger to pg_database.
12 files changed:
src/backend/commands/dbcommands.c
src/backend/commands/vacuum.c
src/backend/libpq/hba.c
src/backend/utils/init/flatfiles.c
src/backend/utils/init/postinit.c
src/backend/utils/misc/Makefile
src/backend/utils/misc/database.c [deleted file]
src/bin/initdb/initdb.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/libpq/hba.h
src/include/miscadmin.h