Re: Debian and Postgres

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Debian and Postgres
Date: 2016-05-05 04:43:05
Message-ID: 2034a7d6-4fe1-2f0d-3dd4-81dd0b68a4d9@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message George Neuner 2016-05-05 04:44:41 Re: Thoughts on "Love Your Database"
Previous Message Adrian Klaver 2016-05-05 04:08:59 Re: Debian and Postgres