Joachim Wieland <joe@mcknight.de> writes:
> FWIW, I append the patch I've done a few weeks ago. It adds an inettocidr
> cast function.
I think we need to take two steps back and look at the larger picture:
the INET/CIDR situation is conceptually a mess and it's going to take
more than a localized change to clean it up.
I have some ideas about this and will try to post a proposal on -hackers
later today.
regards, tom lane