Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 920BF1337BF9 for ; Mon, 18 Apr 2011 11:21:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 58824-01 for ; Mon, 18 Apr 2011 14:20:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from dd2030.kasserver.com (dd2030.kasserver.com [85.13.128.37]) by mail.postgresql.org (Postfix) with ESMTP id 972851337BD8 for ; Mon, 18 Apr 2011 11:17:59 -0300 (ADT) Received: from [172.26.14.62] (exit.credativ.com [87.139.82.80]) by dd2030.kasserver.com (Postfix) with ESMTPA id D05FAE00AB; Mon, 18 Apr 2011 16:17:58 +0200 (CEST) Date: Mon, 18 Apr 2011 16:17:57 +0200 From: Bernd Helmle To: Tom Lane , Steve Singer cc: PostgreSQL-development Hackers Subject: Re: JDBC connections to 9.1 Message-ID: <1D1444218CDB28801BEEB27D@apophis.local> In-Reply-To: <20799.1303134278@sss.pgh.pa.us> References: <4DAC3D55.1080606@ca.afilias.info> <20799.1303134278@sss.pgh.pa.us> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201104/876 X-Sequence-Number: 186078 --On 18. April 2011 09:44:38 -0400 Tom Lane wrote: >> I'm getting JDBC exceptions when I try to connect to 9.1 (master) with >> the postgresql-9.0-801.jdbc3.jar I don't have this issue with 9.0. > > Hmm, what shows up in the postmaster log? A quick check with an application here gives the following with JDBC loglevel=2 16:09:47.910 (1) PostgreSQL 9.1devel JDBC4 (build 900) 16:09:47.914 (1) Trying to establish a protocol version 3 connection to localhost:5438 16:09:47.930 (1) FE=> StartupPacket(user=bernd, database=mailstore, client_encoding=UNICODE, DateStyle=ISO, extra_float_digits=2) 16:09:47.933 (1) <=BE AuthenticationOk 16:09:47.942 (1) <=BE ParameterStatus(application_name = ) 16:09:47.942 (1) <=BE ParameterStatus(client_encoding = UTF8) org.postgresql.util.PSQLException: Protocol error. Session setup failed. at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:498) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:112) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66) at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:125) at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30) at org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:22) at org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:32) at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:393) at org.postgresql.Driver.connect(Driver.java:267) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:154) at de.oopsware.mailstore.PGSQLMailstore.connect(Unknown Source) at de.oopsware.mailstore.PGSQLMailstore.connect(Unknown Source) at mailstore.main(Unknown Source) SQLException: SQLState(08P01) getConnection failed: org.postgresql.util.PSQLException: Protocol error. Session setup failed. org.postgresql.util.PSQLException: Protocol error. Session setup failed. Hmm, seems it stumbles while reading client_encoding.... -- Thanks Bernd