Skip site navigation (1) Skip section navigation (2)

Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <matthew(at)nplus1(dot)com(dot)au>,<tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery
Date: 2010-05-29 14:17:51
Message-ID: 4C00DBC10200002500031BE8@gw.wicourts.gov (view raw or flat)
Thread:
Lists: 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

Responses

pgsql-bugs by date

Next:From: Bruce MomjianDate: 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 StarkDate: 2010-05-29 13:59:52
Subject: Re: BUG #5480: Autovacuum interferes with operations (e.g. truncate) on very large databases

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group