Tim Conrad <conrad@external.timconrad.org> writes:
> While it's possible it's just my viewpoint, it seems that this is kind of weird
> behavior. If the datatype has any notion of networks and that data being
> 'unique' shouldn't it also know about netmasks?
A UNIQUE constraint means there are no two entries in the column that
are *equal*. I understand what you're after, but I don't really see why
you'd expect a UNIQUE constraint to do it for you.
regards, tom lane