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

Commit 3d45543

Browse files
committed
Oops, back out my unintended changes.
1 parent 5e38665 commit 3d45543

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.170 2000/10/11 17:55:32 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.171 2000/10/11 17:58:01 momjian Exp $
1515
*
1616
* NOTES
1717
*
@@ -543,22 +543,6 @@ PostmasterMain(int argc, char *argv[])
543543
exit(1);
544544
}
545545

546-
/*
547-
* Select default values for switches where needed
548-
*/
549-
if (HostName == NULL)
550-
{
551-
if (!(HostName = getenv("PGHOST")))
552-
{
553-
HostName = "any";
554-
}
555-
}
556-
else if (!NetServer)
557-
{
558-
fprintf(stderr, "%s: -h requires -i.\n", progname);
559-
exit(1);
560-
}
561-
562546
/*
563547
* Check for invalid combinations of switches
564548
*/

src/backend/utils/misc/guc.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Support for grand unified configuration scheme, including SET
55
* command, configuration file, and command line options.
66
*
7-
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.13 2000/10/11 17:55:32 momjian Exp $
7+
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.14 2000/10/11 17:58:01 momjian Exp $
88
*
99
* Copyright 2000 by PostgreSQL Global Development Group
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
@@ -237,8 +237,6 @@ ConfigureNamesInt[] =
237237
DEF_NBUFFERS, 16, INT_MAX},
238238
{"port", PGC_POSTMASTER, &PostPortName,
239239
DEF_PGPORT, 1, 65535},
240-
{"unixsocket", PGC_POSTMASTER, &UnixSocketName,
241-
DEF_PGSOCKETFILE, 1, 65535},
242240

243241
{"sort_mem", PGC_USERSET, &SortMem,
244242
512, 1, INT_MAX},
@@ -374,10 +372,7 @@ ResetAllOptions(void)
374372
}
375373

376374
if (getenv("PGPORT"))
377-
PostPortNumber = atoi(getenv("PGPORT"));
378-
379-
if (UnixSocketName == NULL)
380-
UnixSocketName = getenv("PGUNIXSOCKET");
375+
PostPortName = atoi(getenv("PGPORT"));
381376
}
382377

383378

0 commit comments

Comments
 (0)