aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init/globals.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-08-28 18:23:53 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-08-28 18:23:53 +0000
commit0a00c9a8efe95180d23705d92e67a581828f50ce (patch)
tree6d03d220f3c855eb330ab193a53c9a34ed58d5dd /src/backend/utils/init/globals.c
parentc66d9ce7741435a6741dcd34d25c58085c0c4240 (diff)
downloadpostgresql-0a00c9a8efe95180d23705d92e67a581828f50ce.tar.gz
postgresql-0a00c9a8efe95180d23705d92e67a581828f50ce.zip
Remove useless code that propagated FrontendProtocol to a backend via a
PostgresMain switch. In point of fact, FrontendProtocol is already set in a backend process, since ProcessStartupPacket() is executed inside the backend --- it hasn't been run by the postmaster for many years. And if it were, we'd still certainly want FrontendProtocol to be set before we get as far as PostgresMain, so that startup errors get reported in the right protocol. -v might have some future use in standalone backends, so I didn't go so far as to remove the switch outright. Also, initialize FrontendProtocol to 0 not PG_PROTOCOL_LATEST. The only likely result of presetting it like that is to mask failure-to-set-it mistakes.
Diffstat (limited to 'src/backend/utils/init/globals.c')
-rw-r--r--src/backend/utils/init/globals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c
index 6073e0709ac..e4f5dfa5849 100644
--- a/src/backend/utils/init/globals.c
+++ b/src/backend/utils/init/globals.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.108 2009/05/05 19:59:00 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.109 2009/08/28 18:23:53 tgl Exp $
*
* NOTES
* Globals used all over the place should be declared here and not
@@ -23,7 +23,7 @@
#include "storage/backendid.h"
-ProtocolVersion FrontendProtocol = PG_PROTOCOL_LATEST;
+ProtocolVersion FrontendProtocol;
volatile bool InterruptPending = false;
volatile bool QueryCancelPending = false;