*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.591 2009/08/28 17:42:54 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.592 2009/08/28 18:23:53 tgl Exp $
*
* NOTES
*
int ac;
long secs;
int usecs;
- char protobuf[32];
int i;
/*
*/
split_opts(av, &ac, ExtraOptions);
- /* Tell the backend what protocol the frontend is using. */
- snprintf(protobuf, sizeof(protobuf), "-v%u", port->proto);
- av[ac++] = protobuf;
-
/*
* Tell the backend it is being called from the postmaster, and which
* database to use. -y marks the end of secure switches.
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.569 2009/07/31 20:26:23 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.570 2009/08/28 18:23:53 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
}
case 'v':
+ /*
+ * -v is no longer used in normal operation, since
+ * FrontendProtocol is already set before we get here.
+ * We keep the switch only for possible use in standalone
+ * operation, in case we ever support using normal FE/BE
+ * protocol with a standalone backend.
+ */
if (secure)
FrontendProtocol = (ProtocolVersion) atoi(optarg);
break;
*
*
* 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
#include "storage/backendid.h"
-ProtocolVersion FrontendProtocol = PG_PROTOCOL_LATEST;
+ProtocolVersion FrontendProtocol;
volatile bool InterruptPending = false;
volatile bool QueryCancelPending = false;