Re: [GENERAL] psql only works with -h (even localhost) - Mailing list pgsql-general

From Melvin Davidson
Subject Re: [GENERAL] psql only works with -h (even localhost)
Date
Msg-id CANu8FiwGp8aJXMTGs-2pysnu1R82=gY3fH8mv+1mLGCEJUrXNQ@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] psql only works with -h (even localhost)  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general

On Wed, Jan 25, 2017 at 11:07 AM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 01/25/2017 08:02 AM, ProPAAS DBA wrote:
Hi all;


we have a client server where 'psql -h localhost' is the only way psql
will connect when ssh'd onto the db server. Would like to be able to
just run psql but not sure what the issue/fix is. Anyone have any
insight hot to fix this?


What is the error you get if you use something other then -h localhost?

What is in pg_hba.conf?



Thanks in advance







--
Adrian Klaver
adrian.klaver@aklaver.com


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

What is O/S -h localhost points to?
What is the version of PostgreSQL?




--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

pgsql-general by date:

Previous
From: Steve Crawford
Date:
Subject: Re: [GENERAL] psql only works with -h (even localhost)
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] psql only works with -h (even localhost)