OSDN Git Service

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)
commit0fc4ecf93543a0e293845bdc47712285a9165aa0
treec79e93a9d4e0a23120a1968091e69892fd1bc3ed
parentffef9a9de4f7d992ebfbf88e5e926bc5e022f420
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