Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a6mWK-0005eO-5V for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Dec 2015 21:43:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a6mWJ-0005f9-JL for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Dec 2015 21:43:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a6mWI-0005ep-NW for pgsql-bugs@postgresql.org; Wed, 09 Dec 2015 21:43:30 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1a6mWF-000400-NP for pgsql-bugs@postgresql.org; Wed, 09 Dec 2015 21:43:29 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 37B70860005; Wed, 9 Dec 2015 22:43:25 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p57B4E835.dip0.t-ipconnect.de [87.180.232.53]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 107FB860004; Wed, 9 Dec 2015 22:43:23 +0100 (CET) Received: by anarazel.de (Postfix, from userid 1000) id 8C339104760; Wed, 9 Dec 2015 22:43:22 +0100 (CET) Date: Wed, 9 Dec 2015 22:43:22 +0100 From: Andres Freund To: Peter Geoghegan Cc: Michael Paquier , Dean Rasheed , Stanislav Grozev , PostgreSQL mailing lists , Robert Haas Subject: Re: Incorrect UPDATE trigger invocation in the UPDATE clause of an UPSERT statement. Message-ID: <20151209214322.GA14789@awork2.anarazel.de> References: <20151208144440.GU4934@alap3.anarazel.de> <20151208231220.GG28762@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.2 (----) 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 2015-12-08 15:32:03 -0800, Peter Geoghegan wrote: > I actually think that there is an argument to be made for doing > nothing here, and not allowing a cardinality violation at all. Works for me. I'll add a short comment before the ExecUpdate() detailing that the row could, in rather uncommon cases, be updated by that point. Adding an extra parameter to ExecUpdate() + additional concerns to it's already nontrivial HTSV codepath doesn't seem worth it to me. Greetings, Andres Freund -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs