Re: Cleaning up the INET/CIDR mess

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Cleaning up the INET/CIDR mess
Date: 2006-01-26 21:12:01
Message-ID: 200601262212.02679.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Without the flag, it's okay for cidr-to-inet to be a
> binary-compatible (no function) conversion. However, inet-to-cidr
> has to either zero out bits to the right of the netmask, or error out
> if any are set. Joachim Wieland posted a patch that makes the
> coercion function just silently zero out any such bits. That's OK
> with me, but does anyone want to argue for an error?

Zero the bits if it's an explicit cast, raise an error if not.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris Browne 2006-01-26 21:14:45 Re: VACUUM Question
Previous Message Andrew Dunstan 2006-01-26 21:05:55 Re: -X flag in pg_dump