From: | andrew burns <70camero(at)live(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Teju Jakkidi vlogs <teja(dot)jakkidi05(at)gmail(dot)com> |
Cc: | pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: pg_hba.conf settings for postgres |
Date: | 2024-02-18 02:17:57 |
Message-ID: | PH7PR11MB677291768DFAA78E359845E8B3522@PH7PR11MB6772.namprd11.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Try to change it to tru an not trust reason being I it works semantics rather than true or false or should be try true not trust see i bot for that network remind the Tex is that.
Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Sent: Saturday, February 17, 2024 12:40:21 PM
To: Teju Jakkidi vlogs <teja(dot)jakkidi05(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_hba.conf settings for postgres
Teju Jakkidi vlogs <teja(dot)jakkidi05(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | SathishKumar R | 2024-02-18 19:18:55 | Backup and Recovery related |
Previous Message | Tom Lane | 2024-02-17 20:40:21 | Re: pg_hba.conf settings for postgres |