pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Thomas Kellerer <spam_eater@gmx.net>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: Unable to connect to 9.5 via JDBC driver 1207
Date: Tue, 02 Feb 2016 14:38:51 -0500
Message-ID: <10633.1454441931@sss.pgh.pa.us> (raw)
In-Reply-To: <CADK3HHKQiE_Ma8D5na+qyQRrKPcHWtBrkuSxSCEcjgqXQrZCGg@mail.gmail.com>
References: <1454432904.2165.6.camel@gmail.com>
	<n8qu0f$32m$1@ger.gmane.org>
	<CADK3HHJMJ6n2CMQ2yJrasUg_5r08WdEGVWg2f-dcTTVfXnXWtQ@mail.gmail.com>
	<n8qv5f$mcf$1@ger.gmane.org>
	<CADK3HHKQiE_Ma8D5na+qyQRrKPcHWtBrkuSxSCEcjgqXQrZCGg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Dave Cramer <pg@fastcrypt.com> writes:
> On 2 February 2016 at 14:13, Thomas Kellerer <spam_eater@gmx.net> wrote:
>> As I said: by simply switching to the previous driver, everything was fine.
>> It works fine with JDBC connections to localhost, but not to a remote
>> server (psql was fine)
>> I had also one user of SQL Workbench/J who reported the same problem and
>> after switching to 1206 the problem went away for him as well.

> Well clearly we would like to get to the root of this problem. Is it
> possible for you to provide us with more information?

Since the quoted error message mentions a connection from "127.0.0.1",
it's impossible that it is a reply from a remote server (unless your
networking configuration is completely broken).  Presumably what is
happening is that what you think is a connection to a remote PG server
is actually being made to localhost, and the local PG server's pg_hba.conf
doesn't allow the username and/or dbname.  You could check that by turning
on log_connections on both servers.

As to why that would happen as a consequence of a driver version change,
I'm pretty clueless, but I would wonder about differences in driver config
files or the driver's interpretation of a connection URL.  In any case,
certainly not enough information has been given to diagnose it.

			regards, tom lane


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



view thread (15+ messages)  latest in thread

Message-ID: <10633.1454441931@sss.pgh.pa.us>
Permalink:  ../10633.1454441931@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10633.1454441931@sss.pgh.pa.us

 · 

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-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pg@fastcrypt.com, spam_eater@gmx.net
  Subject: Re: Unable to connect to 9.5 via JDBC driver 1207
  In-Reply-To: <10633.1454441931@sss.pgh.pa.us>
  References: <1454432904.2165.6.camel@gmail.com> <n8qu0f$32m$1@ger.gmane.org> <CADK3HHJMJ6n2CMQ2yJrasUg_5r08WdEGVWg2f-dcTTVfXnXWtQ@mail.gmail.com> <n8qv5f$mcf$1@ger.gmane.org> <CADK3HHKQiE_Ma8D5na+qyQRrKPcHWtBrkuSxSCEcjgqXQrZCGg@mail.gmail.com> <10633.1454441931@sss.pgh.pa.us>

* 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