Cleanup -is flag to -l for SSL. Another PERL variable name fix. Clean
up debugging options for postmaster and postgres programs. postmaster -d is no longer optional. Documentation updates.
This commit is contained in:
parent
5ce158c534
commit
ae61ef34bd
6 changed files with 47 additions and 40 deletions
|
@ -1,5 +1,5 @@
|
||||||
<!--
|
<!--
|
||||||
$Header: /cvsroot/pgsql/doc/src/sgml/ref/postmaster.sgml,v 1.5 1999/08/06 13:50:31 thomas Exp $
|
$Header: /cvsroot/pgsql/doc/src/sgml/ref/postmaster.sgml,v 1.6 1999/10/08 04:28:42 momjian Exp $
|
||||||
Postgres documentation
|
Postgres documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
@ -23,9 +23,9 @@ Postgres documentation
|
||||||
<date>1999-07-20</date>
|
<date>1999-07-20</date>
|
||||||
</refsynopsisdivinfo>
|
</refsynopsisdivinfo>
|
||||||
<synopsis>
|
<synopsis>
|
||||||
postmaster [ -B <replaceable class="parameter">nBuffers</replaceable> ] [ -D <replaceable class="parameter">DataDir</replaceable> ] [ -i ]
|
postmaster [ -B <replaceable class="parameter">nBuffers</replaceable> ] [ -D <replaceable class="parameter">DataDir</replaceable> ] [ -i ] [ -l ]
|
||||||
postmaster [ -B <replaceable class="parameter">nBuffers</replaceable> ] [ -D <replaceable class="parameter">DataDir</replaceable> ] [ -N <replaceable class="parameter">nBackends</replaceable> ] [ -S ]
|
postmaster [ -B <replaceable class="parameter">nBuffers</replaceable> ] [ -D <replaceable class="parameter">DataDir</replaceable> ] [ -N <replaceable class="parameter">nBackends</replaceable> ] [ -S ]
|
||||||
[ -d [ <replaceable class="parameter">DebugLevel</replaceable> ] [ -i ] [ -o <replaceable class="parameter">BackendOptions</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ]
|
[ -d [ <replaceable class="parameter">DebugLevel</replaceable> ] [ -i ] [ -l ] [ -o <replaceable class="parameter">BackendOptions</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ]
|
||||||
postmaster [ -n | -s ] ...
|
postmaster [ -n | -s ] ...
|
||||||
</synopsis>
|
</synopsis>
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ postmaster [ -n | -s ] ...
|
||||||
<term>-d [ <replaceable class="parameter">DebugLevel</replaceable> ]</term>
|
<term>-d [ <replaceable class="parameter">DebugLevel</replaceable> ]</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
The optional argument <replaceable class="parameter">DebugLevel</replaceable>
|
This argument <replaceable class="parameter">DebugLevel</replaceable>
|
||||||
determines the amount of debugging output the backend servers will
|
determines the amount of debugging output the backend servers will
|
||||||
produce.
|
produce.
|
||||||
If <replaceable class="parameter">DebugLevel</replaceable>
|
If <replaceable class="parameter">DebugLevel</replaceable>
|
||||||
|
@ -130,6 +130,17 @@ postmaster [ -n | -s ] ...
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>-l</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
This enables SSL socket communication. The <term>-i</term> option
|
||||||
|
is also required.
|
||||||
|
You have to have compiled with SSL enabled to use this option.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>-o <replaceable class="parameter">BackendOptions</replaceable></term>
|
<term>-o <replaceable class="parameter">BackendOptions</replaceable></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.123 1999/10/08 02:16:22 vadim Exp $
|
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.124 1999/10/08 04:28:43 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
*
|
*
|
||||||
|
@ -412,7 +412,7 @@ PostmasterMain(int argc, char *argv[])
|
||||||
DataDir = getenv("PGDATA"); /* default value */
|
DataDir = getenv("PGDATA"); /* default value */
|
||||||
|
|
||||||
opterr = 0;
|
opterr = 0;
|
||||||
while ((opt = getopt(nonblank_argc, argv, "A:a:B:b:D:di::m:MN:no:p:Ss")) != EOF)
|
while ((opt = getopt(nonblank_argc, argv, "A:a:B:b:D:d:ilm:MN:no:p:Ss")) != EOF)
|
||||||
{
|
{
|
||||||
switch (opt)
|
switch (opt)
|
||||||
{
|
{
|
||||||
|
@ -459,27 +459,21 @@ PostmasterMain(int argc, char *argv[])
|
||||||
DataDir = optarg;
|
DataDir = optarg;
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Turn on debugging for the postmaster and the backend
|
* Turn on debugging for the postmaster and the backend
|
||||||
* servers descended from it.
|
* servers descended from it.
|
||||||
*/
|
*/
|
||||||
if ((optind < nonblank_argc) && *argv[optind] != '-')
|
DebugLvl = atoi(optarg);
|
||||||
{
|
|
||||||
DebugLvl = atoi(argv[optind]);
|
|
||||||
optind++;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
DebugLvl = 1;
|
|
||||||
pg_options[TRACE_VERBOSE] = DebugLvl;
|
pg_options[TRACE_VERBOSE] = DebugLvl;
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'i':
|
||||||
NetServer = true;
|
NetServer = true;
|
||||||
#ifdef USE_SSL
|
|
||||||
if (optarg && !strcasecmp(optarg,"s"))
|
|
||||||
SecureNetServer = true;
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
#ifdef USE_SSL
|
||||||
|
case 'l':
|
||||||
|
SecureNetServer = true;
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
case 'm':
|
case 'm':
|
||||||
/* Multiplexed backends no longer supported. */
|
/* Multiplexed backends no longer supported. */
|
||||||
break;
|
break;
|
||||||
|
@ -581,6 +575,12 @@ PostmasterMain(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_SSL
|
#ifdef USE_SSL
|
||||||
|
if (!NetServer && SecureNetServer)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "For SSL, you must enable TCP/IP connections.\n",
|
||||||
|
argv[0]);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
InitSSL();
|
InitSSL();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -689,7 +689,7 @@ usage(const char *progname)
|
||||||
fprintf(stderr, "\t-d [1|2|3]\tset debugging level\n");
|
fprintf(stderr, "\t-d [1|2|3]\tset debugging level\n");
|
||||||
fprintf(stderr, "\t-i \t\tlisten on TCP/IP sockets as well as Unix domain socket\n");
|
fprintf(stderr, "\t-i \t\tlisten on TCP/IP sockets as well as Unix domain socket\n");
|
||||||
#ifdef USE_SSL
|
#ifdef USE_SSL
|
||||||
fprintf(stderr," \t-is\t\tlisten on TCP/IP sockets as above, but only SSL connections\n");
|
fprintf(stderr," \t-l \t\tfor TCP/IP sockets, listen only on SSL connections\n");
|
||||||
#endif
|
#endif
|
||||||
fprintf(stderr, "\t-N nprocs\tset max number of backends (1..%d, default %d)\n",
|
fprintf(stderr, "\t-N nprocs\tset max number of backends (1..%d, default %d)\n",
|
||||||
MAXBACKENDS, DEF_MAXBACKENDS);
|
MAXBACKENDS, DEF_MAXBACKENDS);
|
||||||
|
@ -1669,22 +1669,18 @@ BackendStartup(Port *port)
|
||||||
static void
|
static void
|
||||||
split_opts(char **argv, int *argcp, char *s)
|
split_opts(char **argv, int *argcp, char *s)
|
||||||
{
|
{
|
||||||
int i = *argcp;
|
|
||||||
|
|
||||||
while (s && *s)
|
while (s && *s)
|
||||||
{
|
{
|
||||||
while (isspace(*s))
|
while (isspace(*s))
|
||||||
++s;
|
++s;
|
||||||
if (*s == '\0')
|
if (*s == '\0')
|
||||||
break;
|
break;
|
||||||
argv[i++] = s;
|
argv[(*argcp)++] = s;
|
||||||
while (*s && !isspace(*s))
|
while (*s && !isspace(*s))
|
||||||
++s;
|
++s;
|
||||||
if (*s)
|
if (*s)
|
||||||
*s++ = '\0';
|
*s++ = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
*argcp = i;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.131 1999/10/06 21:58:08 vadim Exp $
|
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.132 1999/10/08 04:28:45 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* this is the "main" module of the postgres backend and
|
* this is the "main" module of the postgres backend and
|
||||||
|
@ -130,7 +130,7 @@ bool ExitAfterAbort = false;
|
||||||
|
|
||||||
extern int NBuffers;
|
extern int NBuffers;
|
||||||
|
|
||||||
static int EchoQuery = 0; /* default don't echo */
|
static bool EchoQuery = false; /* default don't echo */
|
||||||
time_t tim;
|
time_t tim;
|
||||||
char pg_pathname[256];
|
char pg_pathname[256];
|
||||||
FILE *StatFp;
|
FILE *StatFp;
|
||||||
|
@ -901,7 +901,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
|
||||||
char *DBDate = NULL;
|
char *DBDate = NULL;
|
||||||
extern int optind;
|
extern int optind;
|
||||||
extern char *optarg;
|
extern char *optarg;
|
||||||
extern short DebugLvl;
|
extern int DebugLvl;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set default values for command-line options.
|
* Set default values for command-line options.
|
||||||
|
@ -1017,13 +1017,13 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'd': /* debug level */
|
case 'd': /* debug level */
|
||||||
DebugLvl = (short) atoi(optarg);
|
DebugLvl = atoi(optarg);
|
||||||
if (DebugLvl >= 1)
|
if (DebugLvl >= 1)
|
||||||
Verbose = DebugLvl;
|
Verbose = true;
|
||||||
if (DebugLvl >= 2)
|
if (DebugLvl >= 2)
|
||||||
DebugPrintQuery = true;
|
DebugPrintQuery = true;
|
||||||
if (DebugLvl >= 3)
|
if (DebugLvl >= 3)
|
||||||
DebugPrintQuery = DebugLvl;
|
DebugPrintQuery = true ;
|
||||||
if (DebugLvl >= 4)
|
if (DebugLvl >= 4)
|
||||||
{
|
{
|
||||||
DebugPrintParse = true;
|
DebugPrintParse = true;
|
||||||
|
@ -1157,7 +1157,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
|
||||||
* Q - set Quiet mode (reduce debugging output)
|
* Q - set Quiet mode (reduce debugging output)
|
||||||
* ----------------
|
* ----------------
|
||||||
*/
|
*/
|
||||||
Verbose = 0;
|
Verbose = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'S':
|
case 'S':
|
||||||
|
@ -1443,7 +1443,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
|
||||||
*/
|
*/
|
||||||
if (Verbose)
|
if (Verbose)
|
||||||
{
|
{
|
||||||
if (Verbose == 1)
|
if (Verbose)
|
||||||
{
|
{
|
||||||
TPRINTF(TRACE_VERBOSE, "started: host=%s user=%s database=%s",
|
TPRINTF(TRACE_VERBOSE, "started: host=%s user=%s database=%s",
|
||||||
remote_host, userName, DBName);
|
remote_host, userName, DBName);
|
||||||
|
@ -1455,7 +1455,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
|
||||||
TPRINTF(TRACE_VERBOSE, "\tRemoteHost = %s", remote_host);
|
TPRINTF(TRACE_VERBOSE, "\tRemoteHost = %s", remote_host);
|
||||||
TPRINTF(TRACE_VERBOSE, "\tRemotePort = %d", remote_port);
|
TPRINTF(TRACE_VERBOSE, "\tRemotePort = %d", remote_port);
|
||||||
TPRINTF(TRACE_VERBOSE, "\tDatabaseName = %s", DBName);
|
TPRINTF(TRACE_VERBOSE, "\tDatabaseName = %s", DBName);
|
||||||
TPRINTF(TRACE_VERBOSE, "\tVerbose = %d", Verbose);
|
TPRINTF(TRACE_VERBOSE, "\tDebug Level = %d", DebugLvl);
|
||||||
TPRINTF(TRACE_VERBOSE, "\tNoversion = %c", Noversion ? 't' : 'f');
|
TPRINTF(TRACE_VERBOSE, "\tNoversion = %c", Noversion ? 't' : 'f');
|
||||||
TPRINTF(TRACE_VERBOSE, "\ttimings = %c", ShowStats ? 't' : 'f');
|
TPRINTF(TRACE_VERBOSE, "\ttimings = %c", ShowStats ? 't' : 'f');
|
||||||
TPRINTF(TRACE_VERBOSE, "\tdates = %s",
|
TPRINTF(TRACE_VERBOSE, "\tdates = %s",
|
||||||
|
@ -1508,7 +1508,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.131 $ $Date: 1999/10/06 21:58:08 $\n");
|
puts("$Revision: 1.132 $ $Date: 1999/10/08 04:28:45 $\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.37 1999/09/27 20:27:09 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.38 1999/10/08 04:28:48 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* Globals used all over the place should be declared here and not
|
* Globals used all over the place should be declared here and not
|
||||||
|
@ -63,7 +63,7 @@ bool TransactionInitWasProcessed = false;
|
||||||
|
|
||||||
bool IsUnderPostmaster = false;
|
bool IsUnderPostmaster = false;
|
||||||
|
|
||||||
short DebugLvl = 0;
|
int DebugLvl = 0;
|
||||||
|
|
||||||
int DateStyle = USE_POSTGRES_DATES;
|
int DateStyle = USE_POSTGRES_DATES;
|
||||||
bool EuroDates = false;
|
bool EuroDates = false;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: miscadmin.h,v 1.43 1999/10/06 21:58:13 vadim Exp $
|
* $Id: miscadmin.h,v 1.44 1999/10/08 04:28:52 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* some of the information in this file will be moved to
|
* some of the information in this file will be moved to
|
||||||
|
@ -59,7 +59,7 @@ extern bool TransactionInitWasProcessed;
|
||||||
|
|
||||||
extern bool IsUnderPostmaster;
|
extern bool IsUnderPostmaster;
|
||||||
|
|
||||||
extern short DebugLvl;
|
extern int DebugLvl;
|
||||||
|
|
||||||
/* Date/Time Configuration
|
/* Date/Time Configuration
|
||||||
*
|
*
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/interfaces/Makefile,v 1.26 1999/10/08 00:15:49 momjian Exp $
|
# $Header: /cvsroot/pgsql/src/interfaces/Makefile,v 1.27 1999/10/08 04:28:57 momjian Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ perl5/Makefile: perl5/Makefile.PL
|
||||||
|
|
||||||
install-perl5: perl5/Makefile
|
install-perl5: perl5/Makefile
|
||||||
$(MAKE) -C perl5 clean
|
$(MAKE) -C perl5 clean
|
||||||
cd perl5 && POSTGRES_HOME="$(POSTGRESDIR)" perl Makefile.PL
|
cd perl5 && POSTGRES_HOME="$(POSTGRESDIR)" $(PERL) Makefile.PL
|
||||||
$(MAKE) -C perl5 all
|
$(MAKE) -C perl5 all
|
||||||
@if [ -w `sed -n -e 's/^ *INSTALLSITELIB *= *//p' perl5/Makefile` ]; then \
|
@if [ -w `sed -n -e 's/^ *INSTALLSITELIB *= *//p' perl5/Makefile` ]; then \
|
||||||
$(MAKE) $(MFLAGS) -C perl5 install; \
|
$(MAKE) $(MFLAGS) -C perl5 install; \
|
||||||
|
|
Loading…
Reference in a new issue