Re: strange behavior of pg_hba.conf file - Mailing list pgsql-general

From Adrian Klaver
Subject Re: strange behavior of pg_hba.conf file
Date
Msg-id 17bd5946-12d5-4907-baa9-dee368d34214@aklaver.com
Whole thread Raw
In response to Re: strange behavior of pg_hba.conf file  (Andreas Kretschmer <andreas@a-kretschmer.de>)
Responses Re: strange behavior of pg_hba.conf file
List pgsql-general


On 11/22/23 9:55 AM, Andreas Kretschmer wrote:


Am 22.11.23 um 18:44 schrieb Atul Kumar:
I am giving this command
psql -d postgres -U postgres -p 5432 -h localhost
Then only I get that error.

so localhost resolved to an IPv6 - address ...


Yeah, you should take a look at:

/etc/hosts


In meantime include a  line for IPv6 in pg_hba.conf. where the address would be:

::1/128 


pgsql-general by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: strange behavior of pg_hba.conf file
Next
From: Atul Kumar
Date:
Subject: Re: strange behavior of pg_hba.conf file