aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-10-11 12:19:18 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-10-11 12:19:18 -0400
commit2f1eaf87e868a1c42f2b159958623daa6a666de4 (patch)
tree268fb38d3a2e276496734f91f116836d3bb18862 /src/backend/tcop/postgres.c
parent2b860f52ed1b1784cdf3f03886805f5bf250ea74 (diff)
downloadpostgresql-2f1eaf87e868a1c42f2b159958623daa6a666de4.tar.gz
postgresql-2f1eaf87e868a1c42f2b159958623daa6a666de4.zip
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: <2661.1475849167@sss.pgh.pa.us>
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 98ccbbb4d1a..2347f1bcdcc 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -3768,8 +3768,7 @@ PostgresMain(int argc, char *argv[],
/*
* Send this backend's cancellation info to the frontend.
*/
- if (whereToSendOutput == DestRemote &&
- PG_PROTOCOL_MAJOR(FrontendProtocol) >= 2)
+ if (whereToSendOutput == DestRemote)
{
StringInfoData buf;