Is there a secret reason why
ALTER DOMAIN foo DROP CONSTRAINT nonexistent;
doesn't report any error?
If not, I think we should add one and also add the usual IF EXISTSoption.