summaryrefslogtreecommitdiff
path: root/src/backend/tcop/dest.c
diff options
context:
space:
mode:
authorTom Lane2016-10-11 16:19:18 +0000
committerTom Lane2016-10-11 16:19:18 +0000
commit2f1eaf87e868a1c42f2b159958623daa6a666de4 (patch)
tree268fb38d3a2e276496734f91f116836d3bb18862 /src/backend/tcop/dest.c
parent2b860f52ed1b1784cdf3f03886805f5bf250ea74 (diff)
Drop server support for FE/BE protocol version 1.0.
While this isn't a lot of code, it's been essentially untestable for a very long time, because libpq doesn't support anything older than protocol 2.0, and has not since release 6.3. There's no reason to believe any other client-side code still uses that protocol, either. Discussion: <[email protected]>
Diffstat (limited to 'src/backend/tcop/dest.c')
-rw-r--r--src/backend/tcop/dest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/tcop/dest.c b/src/backend/tcop/dest.c
index de45cbc4fb8..60a92801f1d 100644
--- a/src/backend/tcop/dest.c
+++ b/src/backend/tcop/dest.c
@@ -218,8 +218,8 @@ NullCommand(CommandDest dest)
/* ----------------
* ReadyForQuery - tell dest that we are ready for a new query
*
- * The ReadyForQuery message is sent in protocol versions 2.0 and up
- * so that the FE can tell when we are done processing a query string.
+ * The ReadyForQuery message is sent so that the FE can tell when
+ * we are done processing a query string.
* In versions 3.0 and up, it also carries a transaction state indicator.
*
* Note that by flushing the stdio buffer here, we can avoid doing it
@@ -241,7 +241,7 @@ ReadyForQuery(CommandDest dest)
pq_sendbyte(&buf, TransactionBlockStatusCode());
pq_endmessage(&buf);
}
- else if (PG_PROTOCOL_MAJOR(FrontendProtocol) >= 2)
+ else
pq_putemptymessage('Z');
/* Flush output at end of cycle in any case. */
pq_flush();