public inbox for [email protected]
help / color / mirror / Atom feedFrom: Abraham, Danny <[email protected]>
To: David G. Johnston <[email protected]>
To: Adrian Klaver <[email protected]>
To: Francisco Olarte <[email protected]>
To: [email protected] <[email protected]>
Cc: Abraham, Danny <[email protected]>
Subject: RE: [EXTERNAL] Re: Cannot connect local with ttrust (pg_upgrade assumes it)
Date: Wed, 9 Apr 2025 20:40:00 +0000
Message-ID: <SA1PR02MB9698711388AFA3FE147BBF278EB42@SA1PR02MB9698.namprd02.prod.outlook.com> (raw)
In-Reply-To: <CAKFQuwZTtwHfwKwnm+UV8hg1Fj6aV7HogpG1Uw78ZO=DkOOObA@mail.gmail.com>
References: <SA1PR02MB96986CA15EEF976BFE16D2F28EB42@SA1PR02MB9698.namprd02.prod.outlook.com>
<CA+bJJby+nA8OVs7AZKgGBX2Dx3ApvhEceWtFiq97crkiER2A=Q@mail.gmail.com>
<[email protected]>
<[email protected]>
<SA1PR02MB9698C208DA8AA4A752DEDC988EB42@SA1PR02MB9698.namprd02.prod.outlook.com>
<CAKFQuwZTtwHfwKwnm+UV8hg1Fj6aV7HogpG1Uw78ZO=DkOOObA@mail.gmail.com>
Thanks again.
1. No other PG instances on this Linux machine.
2. RHEL9
3. Our compiled PG which is embedded within our product/site
4. I am not aware of an env variable that changes the top down matching on pg_hba.conf
Danny
From: David G. Johnston <[email protected]>
Sent: Wednesday, April 9, 2025 10:34 PM
To: Abraham, Danny <[email protected]>
Cc: Adrian Klaver <[email protected]>; Francisco Olarte <[email protected]>; [email protected]
Subject: Re: [EXTERNAL] Re: Cannot connect local with ttrust (pg_upgrade assumes it)
On Wed, Apr 9, 2025, 12:21 Abraham, Danny <[email protected]<mailto:[email protected]>> wrote:
Thanks again.
Here is the example:
>>>>>>>>
dba-tlv-x6y64k% cat pg_hba.conf
# TYPE DATABASE USER CIDR-ADDRESS METHOD
local all all trust
host all all 0.0.0.0/0<https://urldefense.com/v3/__http:/0.0.0.0/0__;!!PEZBYkTc!e_x_LCIABYSpqVum5S6Hr0TtEs6P4NaumHqEqyXEa3E...; scram-sha-256
dba-tlv-x6y64k% pg_ctl reload
server signaled
dba-tlv-x6y64k% psql -Upostgres
Password for user postgres:
psql (17.4)
Type "help" for help.
ctrlmdb=#
>>>>>>>
PSQL should not have asked for the password.
Thanks
Danny
Suggests there are environment variables coming into play making non-default choices for you. Namely, making you not use local as the connection method.
David J.
view thread (13+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: RE: [EXTERNAL] Re: Cannot connect local with ttrust (pg_upgrade assumes it)
In-Reply-To: <SA1PR02MB9698711388AFA3FE147BBF278EB42@SA1PR02MB9698.namprd02.prod.outlook.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox