Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9f20852

Browse files
committed
all options are allowed if not under postmaster:
SetConfigOption(name, value, (IsUnderPostmaster) ? PGC_BACKEND : PGC_POSTMASTER);
1 parent 3c0f3c9 commit 9f20852

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/backend/tcop/postgres.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.192 2000/11/29 20:59:52 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.193 2000/11/30 01:27:19 vadim Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -1409,7 +1409,9 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
14091409
elog(ERROR, "-c %s requires argument", optarg);
14101410
}
14111411

1412-
SetConfigOption(name, value, PGC_BACKEND);
1412+
/* all options are allowed if not under postmaster */
1413+
SetConfigOption(name, value,
1414+
(IsUnderPostmaster) ? PGC_BACKEND : PGC_POSTMASTER);
14131415
free(name);
14141416
if (value)
14151417
free(value);
@@ -1629,7 +1631,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
16291631
if (!IsUnderPostmaster)
16301632
{
16311633
puts("\nPOSTGRES backend interactive interface ");
1632-
puts("$Revision: 1.192 $ $Date: 2000/11/29 20:59:52 $\n");
1634+
puts("$Revision: 1.193 $ $Date: 2000/11/30 01:27:19 $\n");
16331635
}
16341636

16351637
/*

0 commit comments

Comments
 (0)