@PaulWhite @EvanCarroll - this is
even more plain here - two scenarios, virtually identical and the behaviour is different. If PostgreSQL doesn't want to enforce constraints in DOMAIN declarations, then they
shouldn't be allowed - Principle of Least Suprise. As far as I"m concerned, it's a bug... This
fiddle might be a good example in your question...