Search Postgresql Archives

Re: Debian and Postgres

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

 



On 5/4/2016 1:55 PM, rob stone wrote:
I can connect via psql and issue queries without any problems. Trying
to connect via JDBC fails. Trying to connect by an application fails.

one potential difference, psql will connect via a unix domain socket if you  don't specify a -h hostname, while JDBC can only connect via a tcp socket.      jdbc connecting to localhost will match `host` lines in the pg_hba.conf file, while psql connecting without a host specification will match `local` line(s).

so, please show us your jdbc connection string, and your psql command line, and also show us your pg_hba.conf file.



-- 
john r pierce, recycling bits in santa cruz

[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