Re: IPv6 patch - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: IPv6 patch
Date
Msg-id Pine.LNX.4.44.0301062002520.8249-100000@localhost.localdomain
Whole thread Raw
In response to Re: IPv6 patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: IPv6 patch
Re: IPv6 patch
List pgsql-hackers
Bruce Momjian writes:

> Patch applied.  I added a small mention of IPv6 addresses to the
> pg_hba.conf documentation.  Not sure where else to mention it.

Can this patch please be cleaned up so the code doesn't contain an #ifdef
on every other line?

I would also like to discuss how IPv6 is handled during the server start
and in pg_hba.conf.  It seems that we should treat the address families
Unix, IPv4, and IPv6 consistenly, which would mean two things:

(1) pg_hba.conf entries pertaining to the address family are allowed and
present in the default file, no matter whether the address family is used
by the server.

(2) A socket type is explicitly enabled for the server to use, and if
creation fails, server startup fails.  It seems that the current code
falls back to IPv4 if IPv6 fails.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Vince Vielhaber
Date:
Subject: Re: New Portal in Place, DNS switched ...
Next
From: Greg Copeland
Date:
Subject: Re: IPv6 patch