Re: SQL deferred constraints (a bit O/T, I know)

From: Bob Badour <bob_at_badour.net>
Date: Thu, 31 Mar 2011 13:50:29 -0700
Message-ID: <t-ydnZWQV8eOdAnQnZ2dnUVZ5rCdnZ2d_at_giganews.com>


Roy Hann wrote:

> This is probably not the proper place to pose a question about how SQL
> "should" work, but I don't know of a better one. Any suggestions?
>
> I am curious to know the moment to which a deferred constraint should be
> understood to be deferred. I assume it should be after the last
> update in a transaction (signalled by a COMMIT) but before the
> transaction surrenders read consistency. But if that's the case,
> one can construct a pair of concurrent transactions that
> severally satisfy all constraints yet jointly leave the database
> inconsistent. So what's the defined behaviour? (At this moment I'm
> not interested in what we'd like it to be; I want to know what the
> standards define it to be.)

You assume the standard defines the behavior. You would have to read the standards document to see if it does. Received on Thu Mar 31 2011 - 22:50:29 CEST

Original text of this message