From 0fc4ecf93543a0e293845bdc47712285a9165aa0 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 26 Feb 2005 18:43:34 +0000 Subject: 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. --- src/include/miscadmin.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/include/miscadmin.h') diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index e5333977c09..3e9b7d912a4 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.174 2004/12/31 22:03:19 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.175 2005/02/26 18:43:34 tgl Exp $ * * NOTES * some of the information in this file should be moved to other files. @@ -225,9 +225,6 @@ extern void check_stack_depth(void); extern char *DatabasePath; -/* in utils/misc/database.c */ -extern void GetRawDatabaseInfo(const char *name, Oid *db_id, Oid *db_tablespace); - /* now in utils/init/miscinit.c */ extern void SetDatabasePath(const char *path); -- cgit v1.2.3