Re: pg_hba.conf issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ritu Khetan <RKhetan(at)crisil(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_hba.conf issue
Date: 2007-07-02 15:38:37
Message-ID: 12191.1183390717@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ritu Khetan <RKhetan(at)crisil(dot)com> writes:
> # IPv4 local connections:
> host all all 127.0.0.1/32 trust
> # IPv6 local connections:
> #host all all ::1/128 trust
> #host all all 172.21.42.121/24 trust
> host all all 172.21.51.56/24 trust

> While this works at most of the locations, we have a peculiar error coming
> up at 2-3 locations. The error reads:

> no pg_hba.conf entry for host "::1" , user "crisil" , database "crisil" ,
> SSL off "

No surprise: you have the IPv6 line commented out. Dunno why these
particular boxes are preferring IPv6 to IPv4, maybe something different
about the local DNS environment? Anyway, there is no point in refusing
to serve ::1/128 if you're accepting 127.0.0.1.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message André José Guergolet 2007-07-02 16:04:02 Re: select * from a 3M-row table very slow
Previous Message Daniel Alvão Carvalho Júnior 2007-07-02 14:31:05 Re: select * from a 3M-row table very slow