non-ipv6 vs hostnames

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: non-ipv6 vs hostnames
Date: 2011-08-16 12:25:29
Message-ID: CABUevEySfnw0kXMwaKc_iamVZ0h2z138nHiCgDmEPRYmbR=MHg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Accidentally specifying an IPv6 address in pg_hba.conf on a system
that doesn't have ipv6 support gives the following error:

LOG: specifying both host name and CIDR mask is invalid: "::1/128"

Which is obviously wrong, because I didn't do that. Do we need to
detect and special-case ipv6 addresses in this case?

FWIW, the line was simply:
host replication all ::1/128 trust

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-08-16 12:34:34 Re: Backup's from standby
Previous Message Heikki Linnakangas 2011-08-16 12:04:37 Re: WIP: Fast GiST index build