Skip to content

Commit 030f8e7

Browse files
author
Neil Conway
committed
Remove unused 'noversion' command-line option processing from the
backend.
1 parent bc028be commit 030f8e7

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

src/backend/tcop/postgres.c

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.381 2003/12/25 03:52:51 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.382 2004/01/06 17:36:31 neilc Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -2073,7 +2073,6 @@ PostgresMain(int argc, char *argv[], const char *username)
20732073
/*
20742074
* Set default values for command-line options.
20752075
*/
2076-
Noversion = false;
20772076
EchoQuery = false;
20782077

20792078
if (!IsUnderPostmaster)
@@ -2104,7 +2103,7 @@ PostgresMain(int argc, char *argv[], const char *username)
21042103
ctx = debug_context = PGC_POSTMASTER;
21052104
gucsource = PGC_S_ARGV; /* initial switches came from command line */
21062105

2107-
while ((flag = getopt(argc, argv, "A:B:c:CD:d:Eef:FiNOPo:p:S:st:v:W:x:-:")) != -1)
2106+
while ((flag = getopt(argc, argv, "A:B:c:D:d:Eef:FiNOPo:p:S:st:v:W:x:-:")) != -1)
21082107
switch (flag)
21092108
{
21102109
case 'A':
@@ -2125,14 +2124,6 @@ PostgresMain(int argc, char *argv[], const char *username)
21252124
SetConfigOption("shared_buffers", optarg, ctx, gucsource);
21262125
break;
21272126

2128-
case 'C':
2129-
2130-
/*
2131-
* don't print version string
2132-
*/
2133-
Noversion = true;
2134-
break;
2135-
21362127
case 'D': /* PGDATA directory */
21372128
if (secure)
21382129
potential_DataDir = optarg;

src/backend/utils/init/globals.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.76 2003/11/29 19:52:01 pgsql Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.77 2004/01/06 17:36:31 neilc Exp $
1212
*
1313
* NOTES
1414
* Globals used all over the place should be declared here and not
@@ -25,8 +25,6 @@
2525

2626
ProtocolVersion FrontendProtocol = PG_PROTOCOL_LATEST;
2727

28-
bool Noversion = false;
29-
3028
volatile bool InterruptPending = false;
3129
volatile bool QueryCancelPending = false;
3230
volatile bool ProcDiePending = false;

src/include/miscadmin.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.140 2003/12/21 04:34:35 momjian Exp $
15+
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.141 2004/01/06 17:36:31 neilc Exp $
1616
*
1717
* NOTES
1818
* some of the information in this file should be moved to
@@ -125,7 +125,6 @@ extern bool IsUnderPostmaster;
125125

126126
extern bool ExitOnAnyError;
127127

128-
extern bool Noversion;
129128
extern char *DataDir;
130129

131130
extern DLLIMPORT int MyProcPid;

0 commit comments

Comments
 (0)