Re: Check constraints on non-immutable keys - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Check constraints on non-immutable keys
Date
Msg-id 1277936823.27966.41.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: Check constraints on non-immutable keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Check constraints on non-immutable keys
List pgsql-hackers
On ons, 2010-06-30 at 10:38 -0400, Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
> > Shouldn't we disallow anything that's not IMMUTABLE in a check constraint?
> 
> I think you'd get too many howls of pain ... also, such a restriction is
> likely contrary to SQL spec.

<kibo>
"The <search condition> shall simply contain a <boolean value
expression> that is retrospectively deterministic."

This is then defined in a rather complex manner that ends up disallowing
col > now() but allowing col < now().
</kibo>



pgsql-hackers by date:

Previous
From: Daniel Farina
Date:
Subject: Re: Error with GIT Repository
Next
From: Peter Eisentraut
Date:
Subject: Re: LLVM / clang