pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marko Tiikkaja <marko@joh.to>
To: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #11107: UPDATE violates table check constraint
Date: Fri, 01 Aug 2014 19:01:54 +0200
Message-ID: <53DBC802.7050205@joh.to> (raw)
In-Reply-To: <1406908777449-5813541.post@n5.nabble.com>
References: <20140801133013.2696.41347@wrigleys.postgresql.org>
	<1470.1406907007@sss.pgh.pa.us>
	<1406908777449-5813541.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 8/1/14 5:59 PM, David G Johnston wrote:
> Tom Lane-2 wrote
>> Sorry, but this check constraint has entirely undefined behavior, as does
>> any check constraint that refers to data rows other than the one that is
>> being checked.
>
> Which is why PostgreSQL has CREATE TRIGGER functionality...

Which does absolutely nothing to get rid of the race conditions.


.marko


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)  latest in thread

Message-ID: <53DBC802.7050205@joh.to>
Permalink:  ../53DBC802.7050205@joh.to/
Also on:    postgresql.org/message-id/53DBC802.7050205@joh.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: marko@joh.to, david.g.johnston@gmail.com
  Subject: Re: BUG #11107: UPDATE violates table check constraint
  In-Reply-To: <53DBC802.7050205@joh.to>
  References: <20140801133013.2696.41347@wrigleys.postgresql.org> <1470.1406907007@sss.pgh.pa.us> <1406908777449-5813541.post@n5.nabble.com> <53DBC802.7050205@joh.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox