Re: BUG #6110: pg_hba.conf samehost does not work

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Binod Nepal <nepalbinod(at)yahoo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6110: pg_hba.conf samehost does not work
Date: 2011-07-18 15:23:56
Message-ID: CA+TgmobFiXFORiO7dA+1QisSKuvwv4xzBb=U5kC24y9jSetfpg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, Jul 11, 2011 at 5:13 AM, Binod Nepal <nepalbinod(at)yahoo(dot)com> wrote:
> # IPv4 local connections:
> host    all             all             127.0.0.1/32            md5
> host    all             all             samehost            md5
> host    all             all             samenet            md5
> # IPv6 local connections:
> host    all             all             ::1/128                 md5
> host    all             all             samehost                md5
> host    all             all             samenet                md5

I don't think it accomplishes anything at all to have the same lines
in there twice. The comment doesn't affect whether the line applies
to IPv4 or IPv6.

ISTM the problem here must be the Windows version of
pg_foreach_ifaddr(), which uses this method to try to get a list of
addresses:

WSAIoctl(sock, SIO_GET_INTERFACE_LIST, 0, 0,
ii, n_ii * sizeof(INTERFACE_INFO),
&length, 0, 0)

Perhaps there's a better method we could be using, but I have no idea
what it is. A quick Google search didn't turn up any IPv6-related
restrictions on SIO_GET_INTERFACE_LIST.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Haas 2011-07-18 15:25:26 Re: Ambiguos OPERATOR items in pg_restore manifest file (was: [postgis-devel] utils/new_postgis_restore.pl)
Previous Message Robert Haas 2011-07-18 14:58:50 Re: BUG #6112: heuristic for empty parent tables that are members of inheritance trees