Tom Lane wrote:
< NOT NULL constraints at the domain level suck. Don't use 'em.
As someone who uses domains very heavily, I can attest that the
semantics of that are very weak. Whether a domain is nullable
depends almost entirely on the context of its use, which you can't
(and shouldn't try to) anticipate on its declaration.
pgsql-bugs by date
|Next:||From: Bruce Momjian||Date: 2010-05-29 19:06:30|
|Subject: Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not
always enforced for INSERT with subquery|
|Previous:||From: Greg Stark||Date: 2010-05-29 13:59:52|
|Subject: Re: BUG #5480: Autovacuum interferes with operations (e.g. truncate) on very large databases|