Re: pg_hba.conf settings for postgres - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_hba.conf settings for postgres
Date
Msg-id 3710276.1708202421@sss.pgh.pa.us
Whole thread Raw
In response to pg_hba.conf settings for postgres  (Teju Jakkidi vlogs <teja.jakkidi05@gmail.com>)
Responses Re: pg_hba.conf settings for postgres
List pgsql-admin
Teju Jakkidi vlogs <teja.jakkidi05@gmail.com> writes:
> Our expectation is that - when logging as postgres user from local host,
> it should not prompt for the password as we have local for postgres set to
> trust and loopback is set to trust.
> However, when running psql as postgres user from the local host, it is
> still asking for the password.

> Adding below lines in  pg_hba.conf file is working as expected:
> host     all           postgres       Local IP/32            trust

So psql is connecting to the "local IP", not to the loopback address.
This is probably a matter of DNS configuration, but since you didn't
show us the exact command, it's hard to say more than that.

            regards, tom lane



pgsql-admin by date:

Previous
From: Teju Jakkidi vlogs
Date:
Subject: pg_hba.conf settings for postgres
Next
From: andrew burns
Date:
Subject: Re: pg_hba.conf settings for postgres