mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Remove unused 'noversion' command-line option processing from the
backend.
This commit is contained in:
parent
bc028beb16
commit
030f8e7313
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.381 2003/12/25 03:52:51 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.382 2004/01/06 17:36:31 neilc Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* this is the "main" module of the postgres backend and
|
* this is the "main" module of the postgres backend and
|
||||||
@ -2073,7 +2073,6 @@ PostgresMain(int argc, char *argv[], const char *username)
|
|||||||
/*
|
/*
|
||||||
* Set default values for command-line options.
|
* Set default values for command-line options.
|
||||||
*/
|
*/
|
||||||
Noversion = false;
|
|
||||||
EchoQuery = false;
|
EchoQuery = false;
|
||||||
|
|
||||||
if (!IsUnderPostmaster)
|
if (!IsUnderPostmaster)
|
||||||
@ -2104,7 +2103,7 @@ PostgresMain(int argc, char *argv[], const char *username)
|
|||||||
ctx = debug_context = PGC_POSTMASTER;
|
ctx = debug_context = PGC_POSTMASTER;
|
||||||
gucsource = PGC_S_ARGV; /* initial switches came from command line */
|
gucsource = PGC_S_ARGV; /* initial switches came from command line */
|
||||||
|
|
||||||
while ((flag = getopt(argc, argv, "A:B:c:CD:d:Eef:FiNOPo:p:S:st:v:W:x:-:")) != -1)
|
while ((flag = getopt(argc, argv, "A:B:c:D:d:Eef:FiNOPo:p:S:st:v:W:x:-:")) != -1)
|
||||||
switch (flag)
|
switch (flag)
|
||||||
{
|
{
|
||||||
case 'A':
|
case 'A':
|
||||||
@ -2125,14 +2124,6 @@ PostgresMain(int argc, char *argv[], const char *username)
|
|||||||
SetConfigOption("shared_buffers", optarg, ctx, gucsource);
|
SetConfigOption("shared_buffers", optarg, ctx, gucsource);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'C':
|
|
||||||
|
|
||||||
/*
|
|
||||||
* don't print version string
|
|
||||||
*/
|
|
||||||
Noversion = true;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'D': /* PGDATA directory */
|
case 'D': /* PGDATA directory */
|
||||||
if (secure)
|
if (secure)
|
||||||
potential_DataDir = optarg;
|
potential_DataDir = optarg;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.76 2003/11/29 19:52:01 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.77 2004/01/06 17:36:31 neilc 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
|
||||||
@ -25,8 +25,6 @@
|
|||||||
|
|
||||||
ProtocolVersion FrontendProtocol = PG_PROTOCOL_LATEST;
|
ProtocolVersion FrontendProtocol = PG_PROTOCOL_LATEST;
|
||||||
|
|
||||||
bool Noversion = false;
|
|
||||||
|
|
||||||
volatile bool InterruptPending = false;
|
volatile bool InterruptPending = false;
|
||||||
volatile bool QueryCancelPending = false;
|
volatile bool QueryCancelPending = false;
|
||||||
volatile bool ProcDiePending = false;
|
volatile bool ProcDiePending = false;
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.140 2003/12/21 04:34:35 momjian Exp $
|
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.141 2004/01/06 17:36:31 neilc Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* some of the information in this file should be moved to
|
* some of the information in this file should be moved to
|
||||||
@ -125,7 +125,6 @@ extern bool IsUnderPostmaster;
|
|||||||
|
|
||||||
extern bool ExitOnAnyError;
|
extern bool ExitOnAnyError;
|
||||||
|
|
||||||
extern bool Noversion;
|
|
||||||
extern char *DataDir;
|
extern char *DataDir;
|
||||||
|
|
||||||
extern DLLIMPORT int MyProcPid;
|
extern DLLIMPORT int MyProcPid;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user