mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Comment out some of the conditional tests until we have exec().
Reorder non-default variable loading until PGDATA is defined.
This commit is contained in:
@ -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.152 2003/05/03 05:13:18 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.153 2003/05/06 04:16:35 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -236,7 +236,7 @@ BootstrapMain(int argc, char *argv[])
|
||||
*
|
||||
* If we are running under the postmaster, this is done already.
|
||||
*/
|
||||
if (!IsUnderPostmaster || ExecBackend)
|
||||
if (!IsUnderPostmaster /* when exec || ExecBackend */)
|
||||
MemoryContextInit();
|
||||
|
||||
/*
|
||||
@ -245,12 +245,9 @@ BootstrapMain(int argc, char *argv[])
|
||||
|
||||
/* Set defaults, to be overriden by explicit options below */
|
||||
dbName = NULL;
|
||||
if (!IsUnderPostmaster || ExecBackend)
|
||||
if (!IsUnderPostmaster /* when exec || ExecBackend*/)
|
||||
{
|
||||
InitializeGUCOptions();
|
||||
#ifdef EXEC_BACKEND
|
||||
read_nondefault_variables();
|
||||
#endif
|
||||
potential_DataDir = getenv("PGDATA"); /* Null if no PGDATA
|
||||
* variable */
|
||||
}
|
||||
@ -309,7 +306,7 @@ BootstrapMain(int argc, char *argv[])
|
||||
AttachSharedMemoryAndSemaphores();
|
||||
}
|
||||
|
||||
if (!IsUnderPostmaster || ExecBackend)
|
||||
if (!IsUnderPostmaster /* when exec || ExecBackend*/)
|
||||
{
|
||||
if (!potential_DataDir)
|
||||
{
|
||||
@ -328,6 +325,10 @@ BootstrapMain(int argc, char *argv[])
|
||||
Assert(DataDir);
|
||||
ValidatePgVersion(DataDir);
|
||||
|
||||
#ifdef EXEC_BACKEND
|
||||
read_nondefault_variables();
|
||||
#endif
|
||||
|
||||
if (IsUnderPostmaster)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user