Re: [HACKERS] PostgreSQL 8.0.3 and Ipv6 - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] PostgreSQL 8.0.3 and Ipv6
Date
Msg-id 5303.1124672184@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] PostgreSQL 8.0.3 and Ipv6  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [HACKERS] PostgreSQL 8.0.3 and Ipv6  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-patches
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> If you like, you can improve initdb to comment that line out if
>> getaddrinfo chokes on "::1", rather than believing HAVE_IPV6.

> Good idea. Here's a patch for that. Rather than commenting it out I used
> the slightly newer initdb facility to remove it and the associated
> comment line altogether.

Hm, is that really better than just commenting it out?  Particularly
on Windows, where we could imagine someone installing a newer version
of the relevant DLL and then wanting to use IPv6.  Seems to me that
leaving the line present but commented out is the right thing, because
it documents how things should look for IPv6.

            regards, tom lane

pgsql-patches by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: PL/Perl embedding string common elements
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] PostgreSQL 8.0.3 and Ipv6