Search Postgresql Archives

Re: JDBC Connection Errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/28/2011 08:33 AM, Craig Ringer wrote:
>> A client is hitting an issue with JDBC:
>> org.postgresql.util.PSQLException: Connection refused. Check that the
>> hostname and port are correct and that the postmaster is accepting
>> TCP/IP connections.
>>
>> -pg_hba.conf is set to trust 0.0.0.0/0 (IPv4 only)

Does it work with -Djava.net.preferIPv4Stack=true is specified on the
client command line (or if the property is otherwise set)?  If so, the
problem is that many JVMs default to using IPv6 if available.

-- 
========================================================================
Ian Pilcher                                         arequipeno@xxxxxxxxx
"If you're going to shift my paradigm ... at least buy me dinner first."
========================================================================


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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux