Jim Nasby <decibel@xxxxxxxxxxx> writes: > Note that DOMAIN support unfortunately isn't perfect; for example, > plpgsql doesn't enforce domain constraints (IIRC there's some other > bugs as well). Fixed in 8.2 ... not that there aren't necessarily bugs left, but the above as a blanket statement is obsolete. regards, tom lane