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 | |
parent | 8a24a55c8189debb779ac99f47c7054d6f9d8408 (diff) | |
download | postgresql-5241a6259ff0a4a12d7659b25310f0987b51f211.tar.gz postgresql-5241a6259ff0a4a12d7659b25310f0987b51f211.zip |
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')
-rw-r--r-- | src/include/libpq/libpq-be.h | 13 | ||||
-rw-r--r-- | src/include/libpq/pqcomm.h | 17 |
2 files changed, 7 insertions, 23 deletions
diff --git a/src/include/libpq/libpq-be.h b/src/include/libpq/libpq-be.h index 1a2382026c5..e9d906d06a8 100644 --- a/src/include/libpq/libpq-be.h +++ b/src/include/libpq/libpq-be.h @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: libpq-be.h,v 1.33 2002/08/18 03:03:26 momjian Exp $ + * $Id: libpq-be.h,v 1.34 2002/08/29 03:22:01 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -29,17 +29,8 @@ #endif -/* Protocol v0 password packet. */ - -typedef struct PasswordPacketV0 -{ - uint32 unused; - char data[288]; /* User and password as strings. */ -} PasswordPacketV0; - - /* - * This is used by the postmaster in its communication with frontends. It is + * This is used by the postmaster in its communication with frontends. It * contains all state information needed during this communication before the * backend is run. */ diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h index a2b6961d5b1..2bd0d3758eb 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. |