pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Teju Jakkidi vlogs <teja.jakkidi05@gmail.com>
Cc: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: pg_hba.conf settings for postgres
Date: Sat, 17 Feb 2024 15:40:21 -0500
Message-ID: <3710276.1708202421@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKA2XvYj5S4WWRkMAEjuvsfFO-N=vL=fHXJSXBcV+b6fiHc-tQ@mail.gmail.com>
References: <CAKA2XvYj5S4WWRkMAEjuvsfFO-N=vL=fHXJSXBcV+b6fiHc-tQ@mail.gmail.com>

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





view thread (3+ messages)  latest in thread

Message-ID: <3710276.1708202421@sss.pgh.pa.us>
Permalink:  ../3710276.1708202421@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3710276.1708202421@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, teja.jakkidi05@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: pg_hba.conf settings for postgres
  In-Reply-To: <3710276.1708202421@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox