Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XDGDT-0004Zz-Vw for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Aug 2014 17:02:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XDGDT-0001kL-Fx for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Aug 2014 17:02:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XDGDS-0001jX-Lo for pgsql-bugs@postgresql.org; Fri, 01 Aug 2014 17:02:02 +0000 Received: from mail-wi0-f176.google.com ([209.85.212.176]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XDGDP-0002si-1V for pgsql-bugs@postgresql.org; Fri, 01 Aug 2014 17:02:00 +0000 Received: by mail-wi0-f176.google.com with SMTP id bs8so1697343wib.15 for ; Fri, 01 Aug 2014 10:01:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=PHY22fKQ+aCl/cu1vl9zFYHYCPt/+63Y8gsCsFuM9W0=; b=adZ+wYy5aJyyecRhQ8FPq4DcNwdoIYV17+vQQj0qwcmkdGnm+ctXiN3/8z3FEvXZ6D GAxQef03u2zCZSrrFpwxPgZbiEdfe+hIPgTlCNrAJJneR2KLyJMXXrzuDHiTJpJwGkFN /MhpaJdTArTkIIj1LI6ul90aKfIcS4Wyt2dCagyw5nT2Skkc6OH2esqHpLzvOh9M8OSj t7J3DoMBL7SwYR64thP60uFZzcHfC7WOXswsdrgleorxOBPmYDk51ZdKvyVIPSPzWYqO z8AbxgDh8dpIrQ9LDhW/WOXO0Iry5XetSDTOqCCY2WqcCx71wWNNCG3S68awItbyX0aZ QSUg== X-Gm-Message-State: ALoCoQkGJEanHrBij96gElQhgSRpPx8KYsb8emKS8C6mpozPZCbsHdXY8MnB8HEWWxbfGwgCOosE X-Received: by 10.194.243.99 with SMTP id wx3mr10034233wjc.58.1406912515531; Fri, 01 Aug 2014 10:01:55 -0700 (PDT) Received: from Markos-MacBook-Pro.local ([46.246.117.202]) by mx.google.com with ESMTPSA id 19sm22167007wjz.3.2014.08.01.10.01.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 10:01:55 -0700 (PDT) Message-ID: <53DBC802.7050205@joh.to> Date: Fri, 01 Aug 2014 19:01:54 +0200 From: Marko Tiikkaja User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: David G Johnston , pgsql-bugs@postgresql.org Subject: Re: BUG #11107: UPDATE violates table check constraint References: <20140801133013.2696.41347@wrigleys.postgresql.org> <1470.1406907007@sss.pgh.pa.us> <1406908777449-5813541.post@n5.nabble.com> In-Reply-To: <1406908777449-5813541.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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