Re: Cleaning up the INET/CIDR mess - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Cleaning up the INET/CIDR mess
Date
Msg-id 200601262212.02679.peter_e@gmx.net
Whole thread Raw
In response to Cleaning up the INET/CIDR mess  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Cleaning up the INET/CIDR mess
List 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/


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: -X flag in pg_dump
Next
From: Bruce Momjian
Date:
Subject: Re: -X flag in pg_dump