Re: pg_hba.conf: samehost and samenet - Mailing list pgsql-hackers

From Stef Walter
Subject Re: pg_hba.conf: samehost and samenet
Date
Msg-id d6ceee88d19f19670d0fd7d3af90c5c0
Whole thread Raw
In response to pg_hba.conf: samehost and samenet  (Stef Walter <stef-list@memberwebs.com>)
List pgsql-hackers
Magnus Hagander wrote:
> On Wed, Aug 19, 2009 at 15:02, Stef Walter<stef-list@memberwebs.com> wrote:
>> Magnus Hagander wrote:
>>> On Wed, Aug 19, 2009 at 03:58, Stef Walter<stef-list@memberwebs.com> wrote:
>>>> Attached is a new patch, which I hope addresses all the concerns raised.
>>> I think you forgot to actually attach the patch....
>> Whoops. Here it is.
>
> Is there any actual advantage to using getifaddr() on Linux,

It is in my opinion, it is the most modern and maintainable of the
methods for obtaining network interface address information. Various
unixes have added support for getifaddr() over the years, and (again my
opinion) would probably continue to do so.

> and not
> just use SIOCGIFCONF for all Unixen?

I do know that using SIOCGIFCONF on AIX comes with strange wrinkles and
variable length data structures etc... getifaddrs() on AIX is a far more
maintainable interface.

That said, I'll adjust the patch as you feel is best for the long term
inclusion in the postgresql source.

Cheers,

Stef

pgsql-hackers by date:

Previous
From: Rob Wultsch
Date:
Subject: Re: SET syntax in INSERT
Next
From: Pavel Stehule
Date:
Subject: Re: SET syntax in INSERT