summaryrefslogtreecommitdiff
path: root/src/backend/postmaster
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-06-25 22:56:05 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-06-25 22:56:05 +0000
commit2e67a67715abb7151c01d14b8321fa2f79514a75 (patch)
tree2547782a878c5c5f1ef772b5852a26cb2654b77c /src/backend/postmaster
parent4d58a7ca878bbb0a252e1d8175a7ea3a385c1d9e (diff)
Fix a couple remaining places where GUC variables were assigned to
directly, rather than through SetConfigOption().
Diffstat (limited to 'src/backend/postmaster')
-rw-r--r--src/backend/postmaster/postmaster.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 1637ee74571..3b1a3a42079 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.227 2001/06/23 22:23:49 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.228 2001/06/25 22:56:05 tgl Exp $
*
* NOTES
*
@@ -371,7 +371,7 @@ PostmasterMain(int argc, char *argv[])
/* PGPORT environment variable, if set, overrides GUC setting */
if (getenv("PGPORT"))
- PostPortNumber = atoi(getenv("PGPORT"));
+ SetConfigOption("port", getenv("PGPORT"), PGC_POSTMASTER, true);
potential_DataDir = getenv("PGDATA"); /* default value */
@@ -447,7 +447,6 @@ PostmasterMain(int argc, char *argv[])
/* already done above */
break;
case 'd':
-
/*
* Turn on debugging for the postmaster and the backend
* servers descended from it.
@@ -561,7 +560,6 @@ PostmasterMain(int argc, char *argv[])
*/
if (NBuffers < 2 * MaxBackends || NBuffers < 16)
{
-
/*
* Do not accept -B so small that backends are likely to starve
* for lack of buffers. The specific choices here are somewhat