mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
This is plain wrong, but check to see if DataDir was set *before* running
read_pg_options ... read_pg_options should probably be moved to after the getopt() instead?
This commit is contained in:
parent
37f90d82ab
commit
6edea913be
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.92 1998/10/13 19:51:50 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.93 1998/10/13 20:05:44 scrappy Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* this is the "main" module of the postgres backend and
|
* this is the "main" module of the postgres backend and
|
||||||
@ -1005,7 +1005,9 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
|
|||||||
/*
|
/*
|
||||||
* Read default pg_options from file $DATADIR/pg_options.
|
* Read default pg_options from file $DATADIR/pg_options.
|
||||||
*/
|
*/
|
||||||
read_pg_options(0);
|
if(DataDir) {
|
||||||
|
read_pg_options(0);
|
||||||
|
}
|
||||||
|
|
||||||
optind = 1; /* reset after postmaster usage */
|
optind = 1; /* reset after postmaster usage */
|
||||||
|
|
||||||
@ -1512,7 +1514,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
|
|||||||
if (!IsUnderPostmaster)
|
if (!IsUnderPostmaster)
|
||||||
{
|
{
|
||||||
puts("\nPOSTGRES backend interactive interface ");
|
puts("\nPOSTGRES backend interactive interface ");
|
||||||
puts("$Revision: 1.92 $ $Date: 1998/10/13 19:51:50 $\n");
|
puts("$Revision: 1.93 $ $Date: 1998/10/13 20:05:44 $\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------
|
/* ----------------
|
||||||
|
Loading…
Reference in New Issue
Block a user