File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.97 2001/11/02 16:30:29 tgl Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.97.2.1 2005/05/05 19:54:13 tgl Exp $
12
12
*
13
13
*
14
14
*-------------------------------------------------------------------------
@@ -113,9 +113,11 @@ ReverifyMyDatabase(const char *name)
113
113
114
114
/*
115
115
* Also check that the database is currently allowing connections.
116
+ * (We do not enforce this in standalone mode, however, so that there is
117
+ * a way to recover from "UPDATE pg_database SET datallowconn = false;")
116
118
*/
117
119
dbform = (Form_pg_database ) GETSTRUCT (tup );
118
- if (!dbform -> datallowconn )
120
+ if (IsUnderPostmaster && !dbform -> datallowconn )
119
121
elog (FATAL , "Database \"%s\" is not currently accepting connections" ,
120
122
name );
121
123
You can’t perform that action at this time.
0 commit comments