pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: kh2@araxis.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14269: Postgres JDBC driver should be able to connect using protocol version 2 to server versions 9.5+
Date: Fri, 29 Jul 2016 13:34:00 +0000
Message-ID: <20160729133400.1431.97143@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14269
Logged by:          kh
Email address:      kh2@araxis.com
PostgreSQL version: 9.5.3
Operating system:   FreeBSD 10.3-RELEASE-p6
Description:        

With the release of PostgreSQL 9.5.0, support for the server configuration
parameter "autocommit" has been removed (as detailed in the release notes
for 9.5.0). Removal of this support prevents connections with the all recent
versions of the Postgresql JDBC driver using JDBC protocol version 2.

Attempting to use protocol version 2 to connect to Postgres servers v9.5 and
later, results in an postgresql server log entry:

ERROR:  unrecognized configuration parameter "autocommit"
STATEMENT:  begin; set autocommit = on; set client_encoding = 'UTF8'; SET
extra_float_digits=3; commit

The source of the error is the runInitialQueries() method of
org.postgresql.core.v2.ConnectionFactoryImpl.java where, on line 431 (taken
from version 1209 of the postgreaql JDBC driver source), any connection to a
server version 7.3 or higher runs the SQL given in the statement above.

Clearly, if the JDBC driver is to continue to support protocol version 2, it
should not be trying to set server configuration parameters that do not
exist on the server 9.5 and later, causing a connection to fail.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (2+ messages)  latest in thread

Message-ID: <20160729133400.1431.97143@wrigleys.postgresql.org>
Permalink:  ../20160729133400.1431.97143@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160729133400.1431.97143@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: kh2@araxis.com
  Subject: Re: BUG #14269: Postgres JDBC driver should be able to connect using protocol version 2 to server versions 9.5+
  In-Reply-To: <20160729133400.1431.97143@wrigleys.postgresql.org>
  References: <20160729133400.1431.97143@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox