Re: IPV4 addresses on IPV6 machines in pg_hba.conf - Mailing list pgsql-patches

From Kurt Roeckx
Subject Re: IPV4 addresses on IPV6 machines in pg_hba.conf
Date
Msg-id 20030904164720.GA10491@ping.be
Whole thread Raw
In response to IPV4 addresses on IPV6 machines in pg_hba.conf  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: IPV4 addresses on IPV6 machines in pg_hba.conf
List pgsql-patches
On Wed, Sep 03, 2003 at 07:19:16PM +0200, Andreas Pflug wrote:
> This was discussed in [HACKERS] TCP/IP with 7.4 beta2 broken?
>
>
> I created a patch to hba.c which uses IPV4 entries as IPV6 entries if
> running on a IPV6 system (which is detected from a port coming in as
> AF_INET6).
>

You're assuming all systems have an AF_INET6 constant, which is
not the case.  Please make use of HAVE_IPV6.

Can't directly see anything else wrong with it.


Kurt


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] [BUGS] 7.4 beta 1: SET log_statement=false
Next
From: Janko Richter
Date:
Subject: PgSQL74b2: initdb fails (max_connections)