aboutsummaryrefslogtreecommitdiff
path: root/src/backend/bootstrap/bootstrap.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-09-02 19:04:12 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-09-02 19:04:12 +0000
commitb916cc435a18627daeb31b4567c8a364c7df5a77 (patch)
tree4dff178715bfbb674ce6efcbdad08dc5670654ce /src/backend/bootstrap/bootstrap.c
parentd70610c4eec6f6b7ca332086fdd9c91871a4718d (diff)
downloadpostgresql-b916cc435a18627daeb31b4567c8a364c7df5a77.tar.gz
postgresql-b916cc435a18627daeb31b4567c8a364c7df5a77.zip
Cause standalone backend (including bootstrap case) to read the GUC
config file if it exists. This was already discussed as being a good idea, and now seems the cleanest way to deal with initdb-time failures on machines with small SHMMAX. (The submitted patches instead modified initdb.sh to pass the correct sizing parameters, but that would still leave standalone backends prone to failure later. An admin who needs to use a standalone backend has enough trouble already, he shouldn't have to manually configure its shmem settings...)
Diffstat (limited to 'src/backend/bootstrap/bootstrap.c')
-rw-r--r--src/backend/bootstrap/bootstrap.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c
index d4c10a983d9..cfd8a553582 100644
--- a/src/backend/bootstrap/bootstrap.c
+++ b/src/backend/bootstrap/bootstrap.c
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.165 2003/08/04 02:39:57 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.166 2003/09/02 19:04:12 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -368,9 +368,15 @@ BootstrapMain(int argc, char *argv[])
Assert(DataDir);
ValidatePgVersion(DataDir);
+ /* Acquire configuration parameters */
+ if (IsUnderPostmaster)
+ {
#ifdef EXEC_BACKEND
- read_nondefault_variables();
+ read_nondefault_variables();
#endif
+ }
+ else
+ ProcessConfigFile(PGC_POSTMASTER);
if (IsUnderPostmaster)
{