Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
075a0078
Commit
075a0078
authored
May 08, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I think we're done with protocol instability, so mark server and libpq
as speaking the one true 3.0 protocol.
parent
c0a8c3ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
15 deletions
+5
-15
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+1
-11
src/include/libpq/pqcomm.h
src/include/libpq/pqcomm.h
+2
-2
src/interfaces/libpq/libpq-int.h
src/interfaces/libpq/libpq-int.h
+2
-2
No files found.
src/backend/postmaster/postmaster.c
View file @
075a0078
...
...
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.32
3 2003/05/08 14:49:03 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.32
4 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
)
||
...
...
src/include/libpq/pqcomm.h
View file @
075a0078
...
...
@@ -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.8
4 2003/05/08 18:16:37
tgl Exp $
* $Id: pqcomm.h,v 1.8
5 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 */
...
...
src/interfaces/libpq/libpq-int.h
View file @
075a0078
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment