diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-29 03:22:01 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-29 03:22:01 +0000 |
commit | 5241a6259ff0a4a12d7659b25310f0987b51f211 (patch) | |
tree | c794a5e5ec6fc1dd134b46d94e9acf2dabd4b02d /src/include/libpq/pqcomm.h | |
parent | 8a24a55c8189debb779ac99f47c7054d6f9d8408 (diff) | |
download | postgresql-5241a6259ff0a4a12d7659b25310f0987b51f211.tar.gz |
Remove support for version-0 FE/BE protocol, per pghackers discussion.
This breaks support for 6.2 or older client libraries.
Diffstat (limited to 'src/include/libpq/pqcomm.h')
-rw-r--r-- | src/include/libpq/pqcomm.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h index a2b6961d5b..2bd0d3758e 100644 --- a/src/include/libpq/pqcomm.h +++ b/src/include/libpq/pqcomm.h @@ -9,7 +9,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pqcomm.h,v 1.68 2002/08/27 16:21:51 momjian Exp $ + * $Id: pqcomm.h,v 1.69 2002/08/29 03:22:01 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -93,7 +93,7 @@ typedef union SockAddr /* The earliest and latest frontend/backend protocol version supported. */ -#define PG_PROTOCOL_EARLIEST PG_PROTOCOL(0,0) +#define PG_PROTOCOL_EARLIEST PG_PROTOCOL(1,0) #define PG_PROTOCOL_LATEST PG_PROTOCOL(2,0) /* @@ -127,6 +127,9 @@ typedef uint32 PacketLen; typedef uint32 ProtocolVersion; /* Fe/Be protocol version number */ +typedef ProtocolVersion MsgType; + + typedef struct StartupPacket { ProtocolVersion protoVersion; /* Protocol version */ @@ -153,16 +156,6 @@ extern bool Db_user_namespace; typedef uint32 AuthRequest; -/* This next section is to maintain compatibility with protocol v0.0. */ - -#define STARTUP_MSG 7 /* Initialise a connection */ -#define STARTUP_KRB4_MSG 10 /* krb4 session follows */ -#define STARTUP_KRB5_MSG 11 /* krb5 session follows */ -#define STARTUP_PASSWORD_MSG 14 /* Password follows */ - -typedef ProtocolVersion MsgType; - - /* A client can also send a cancel-current-operation request to the postmaster. * This is uglier than sending it directly to the client's backend, but it * avoids depending on out-of-band communication facilities. |