Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery - Mailing list pgsql-bugs

From Kevin Grittner
Subject Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery
Date
Msg-id 4C00DBC10200002500031BE8@gw.wicourts.gov
Whole thread Raw
Responses Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery
List pgsql-bugs
Tom Lane  wrote:

< NOT NULL constraints at the domain level suck. Don't use 'em.

+1

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.

-Kevin

pgsql-bugs by date:

Previous
From: Greg Stark
Date:
Subject: Re: BUG #5480: Autovacuum interferes with operations (e.g. truncate) on very large databases
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery