Re: [HACKERS] CIDR/INET improvements

2006-01-07 Thread Joachim Wieland
On Sat, Jan 07, 2006 at 12:50:23PM -0500, Tom Lane wrote: > Joachim Wieland <[EMAIL PROTECTED]> writes: > > Actually both types are not binary compatible, since they have a > > type component that is either 0 or 1, depending on whether it is of type > > INET or CIDR. > The whole question of the re

Re: [HACKERS] CIDR/INET improvements

2006-01-07 Thread Tom Lane
Joachim Wieland <[EMAIL PROTECTED]> writes: > Actually both types are not binary compatible, since they have a > type component that is either 0 or 1, depending on whether it is of type > INET or CIDR. The whole question of the relationship of those types really needs to be looked at more carefull

[HACKERS] CIDR/INET improvements

2006-01-07 Thread Joachim Wieland
The TODO list contains some items concerning the CIDR/INET datatype. * %Prevent INET cast to CIDR if the unmasked bits are not zero, or zero the bits I added a function for this cast (which zeroes the bits) but then the opr_sanity regression test failed because there is a cast from INET -> CIDR