From 59d48316bf5dfc4876c1cc2bf9224a7e77efa25b Mon Sep 17 00:00:00 2001 From: Jelte Fennema-Nio Date: Tue, 2 Jan 2024 11:19:54 +0100 Subject: [PATCH v3 3/4] Bump protocol version to 3.1 In preparation of new additions to the protocol in a follow up commit this bumps the minor protocol version number. --- src/include/libpq/pqcomm.h | 3 +-- src/interfaces/libpq/fe-connect.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h index 999ab94b9c8..a6a203d4c4f 100644 --- a/src/include/libpq/pqcomm.h +++ b/src/include/libpq/pqcomm.h @@ -91,11 +91,10 @@ is_unixsock_path(const char *path) /* * The earliest and latest frontend/backend protocol version supported. - * (Only protocol version 3 is currently supported) */ #define PG_PROTOCOL_EARLIEST PG_PROTOCOL(3,0) -#define PG_PROTOCOL_LATEST PG_PROTOCOL(3,0) +#define PG_PROTOCOL_LATEST PG_PROTOCOL(3,1) typedef uint32 ProtocolVersion; /* FE/BE protocol version number */ diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index aa01443cf03..8a1ca07ab3b 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -2779,7 +2779,7 @@ keep_going: /* We will come back to here until there is * must persist across individual connection attempts, but we must * reset them when we start to consider a new server. */ - conn->pversion = PG_PROTOCOL(3, 0); + conn->pversion = PG_PROTOCOL_LATEST; conn->send_appname = true; #ifdef USE_SSL /* initialize these values based on SSL mode */ -- 2.34.1