diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-08 18:33:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-08 18:33:39 +0000 |
commit | 075a0078df452b096af6433f7d661b4a18454c98 (patch) | |
tree | 63c1245e9b8b6be603cc86eb3122eb361d3dcae1 /src | |
parent | c0a8c3ac13f84602a46ba25b9a2fd5427514f61a (diff) | |
download | postgresql-075a0078df452b096af6433f7d661b4a18454c98.tar.gz postgresql-075a0078df452b096af6433f7d661b4a18454c98.zip |
I think we're done with protocol instability, so mark server and libpq
as speaking the one true 3.0 protocol.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 12 | ||||
-rw-r--r-- | src/include/libpq/pqcomm.h | 4 | ||||
-rw-r--r-- | src/interfaces/libpq/libpq-int.h | 4 |
3 files changed, 5 insertions, 15 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 211fc216f9c..5ea0f4705ec 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.323 2003/05/08 14:49:03 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.324 2003/05/08 18:33:25 tgl Exp $ * * NOTES * @@ -1217,16 +1217,6 @@ ProcessStartupPacket(Port *port, bool SSLdone) */ FrontendProtocol = proto; - /* - * XXX temporary for 3.0 protocol development: we are using the minor - * number as a test-version number. Insist it match exactly so people - * don't get burnt by using yesterday's libpq with today's server. - * XXX this must go away before release!!! - */ - if (PG_PROTOCOL_MAJOR(proto) == 3 && - PG_PROTOCOL_MINOR(proto) != PG_PROTOCOL_MINOR(PG_PROTOCOL_LATEST)) - elog(FATAL, "Your development libpq is out of sync with the server"); - /* Check we can handle the protocol the frontend is using. */ if (PG_PROTOCOL_MAJOR(proto) < PG_PROTOCOL_MAJOR(PG_PROTOCOL_EARLIEST) || diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h index e23b4563edb..eac9867391b 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.84 2003/05/08 18:16:37 tgl Exp $ + * $Id: pqcomm.h,v 1.85 2003/05/08 18:33:32 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -106,7 +106,7 @@ typedef union SockAddr /* The earliest and latest frontend/backend protocol version supported. */ #define PG_PROTOCOL_EARLIEST PG_PROTOCOL(1,0) -#define PG_PROTOCOL_LATEST PG_PROTOCOL(3,108) /* XXX temporary value */ +#define PG_PROTOCOL_LATEST PG_PROTOCOL(3,0) typedef uint32 ProtocolVersion; /* FE/BE protocol version number */ diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index b65f47efbf7..ad2e0e83c9f 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: libpq-int.h,v 1.69 2003/05/08 18:16:37 tgl Exp $ + * $Id: libpq-int.h,v 1.70 2003/05/08 18:33:39 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -56,7 +56,7 @@ typedef int ssize_t; /* ssize_t doesn't exist in VC (atleast * pqcomm.h describe what the backend knows, not what libpq knows. */ -#define PG_PROTOCOL_LIBPQ PG_PROTOCOL(3,108) /* XXX temporary value */ +#define PG_PROTOCOL_LIBPQ PG_PROTOCOL(3,0) /* * POSTGRES backend dependent Constants. |