pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #14269: Postgres JDBC driver should be able to connect using protocol version 2 to server versions 9.5+ 2+ messages / 2 participants [nested] [flat]
* BUG #14269: Postgres JDBC driver should be able to connect using protocol version 2 to server versions 9.5+ @ 2016-07-29 13:34 kh2@araxis.com 2016-07-29 14:00 ` Re: BUG #14269: Postgres JDBC driver should be able to connect using protocol version 2 to server versions 9.5+ David G. Johnston <david.g.johnston@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: kh2@araxis.com @ 2016-07-29 13:34 UTC (permalink / raw) To: pgsql-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 ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #14269: Postgres JDBC driver should be able to connect using protocol version 2 to server versions 9.5+ 2016-07-29 13:34 BUG #14269: Postgres JDBC driver should be able to connect using protocol version 2 to server versions 9.5+ kh2@araxis.com @ 2016-07-29 14:00 ` David G. Johnston <david.g.johnston@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: David G. Johnston @ 2016-07-29 14:00 UTC (permalink / raw) To: kh2@araxis.com; +Cc: pgsql-bugs On Fri, Jul 29, 2016 at 9:34 AM, <kh2@araxis.com> wrote: > 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: > ​[...] ​ > > 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. > ​Not our (PostgreSQL's) bug...its JDBC's. ​https://github.com/pgjdbc/pgjdbc/issues We are well within our rights to remove configuration parameters in new versions. If you do post an issue against the JDBC driver it would be nice to know why you are trying to connect to a version 9.5 server using an outdated protocol version. This has already come up and a PR was opened: https://github.com/pgjdbc/pgjdbc/pull/581 See additional discussion therein. In addition to GitHub JDBC-related discussions also happen on: pgsql-jdbc@postgresql.org David J. ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-07-29 14:00 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-07-29 13:34 BUG #14269: Postgres JDBC driver should be able to connect using protocol version 2 to server versions 9.5+ kh2@araxis.com 2016-07-29 14:00 ` David G. Johnston <david.g.johnston@gmail.com>
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