Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5e38665

Browse files
committed
Update make_mkid
1 parenta37ab1d commit5e38665

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 17 additions & 1 deletion
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.169 2000/10/08 09:25:36 ishii Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.170 2000/10/11 17:55:32 momjian Exp $
1515
*
1616
* NOTES
1717
*
@@ -543,6 +543,22 @@ 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+
elseif (!NetServer)
557+
{
558+
fprintf(stderr,"%s: -h requires -i.\n",progname);
559+
exit(1);
560+
}
561+
546562
/*
547563
* Check for invalid combinations of switches
548564
*/

‎src/backend/utils/misc/guc.c

Lines changed: 7 additions & 2 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.12 2000/10/08 09:25:37 ishii Exp $
7+
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.13 2000/10/11 17:55:32 momjian Exp $
88
*
99
* Copyright 2000 by PostgreSQL Global Development Group
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
@@ -237,6 +237,8 @@ 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},
240242

241243
{"sort_mem",PGC_USERSET,&SortMem,
242244
512,1,INT_MAX},
@@ -372,7 +374,10 @@ ResetAllOptions(void)
372374
}
373375

374376
if (getenv("PGPORT"))
375-
PostPortName=atoi(getenv("PGPORT"));
377+
PostPortNumber=atoi(getenv("PGPORT"));
378+
379+
if (UnixSocketName==NULL)
380+
UnixSocketName=getenv("PGUNIXSOCKET");
376381
}
377382

378383

‎src/tools/make_mkid

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/sh
2-
find`pwd`/\( -name _deadcode -a -prune\) -o \
3-
-type f -name'*.[chyl]' -print|sed's;//;/;g'| mkid -
2+
#set -x
3+
4+
mkid`find\`pwd\`/\( -name _deadcode -a -prune\) -o \
5+
-type f -name'*.[chyl]' -print|sed's;//;/;g'`
46

57
find. -name'CVS' -prune -o -type d -print|whileread DIR
68
do

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp