nomad@null.net writes:
> Ah, I just noticed that the return value of the netmask() function is
> of type 'inet' and that is (in my mind) where the actual issue is. A
> netmask may have the same underlying form and space requirements as an
> internet address or subnet, but it isn't really the same thing.
Maybe, but we're not going to invent a whole new datatype just to
represent that. Perhaps you would be happier using the masklen()
function.
regards, tom lane