Re: inet/cidr wierdness (casting) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: inet/cidr wierdness (casting)
Date
Msg-id 8770.992359176@sss.pgh.pa.us
Whole thread Raw
In response to inet/cidr wierdness (casting)  (Alex Pilosov <alex@pilosoft.com>)
List pgsql-hackers
Alex Pilosov <alex@pilosoft.com> writes:
> Apparently, since there's no explicit function to cast from inet to cidr,
> postgresql assumes its always safe to do so, as they are
> binary-compatible.

Yes.  I've thought for awhile that it was a mistake to treat them as
binary-compatible.  However, you'd need a lot more operator/function
declarations if they're not so marked.

> Anyone mind if I create explicit function for this so
> this could be flagged as error?

Won't help if they are binary compatible...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] Australian timezone configure option
Next
From: Robert Forsman
Date:
Subject: freaky results