Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a6mhk-0006Dd-QR for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Dec 2015 21:55:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a6mhk-0006fT-4M for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Dec 2015 21:55:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a6mhj-0006eU-JG for pgsql-bugs@postgresql.org; Wed, 09 Dec 2015 21:55:19 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1a6mhg-0005cr-Ly for pgsql-bugs@postgresql.org; Wed, 09 Dec 2015 21:55:19 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 82819860004; Wed, 9 Dec 2015 22:55:14 +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 A2565860002; Wed, 9 Dec 2015 22:55:11 +0100 (CET) Received: by anarazel.de (Postfix, from userid 1000) id 2C16C104760; Wed, 9 Dec 2015 22:55:11 +0100 (CET) Date: Wed, 9 Dec 2015 22:55:11 +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: <20151209215511.GB14789@awork2.anarazel.de> References: <20151208144440.GU4934@alap3.anarazel.de> <20151208231220.GG28762@awork2.anarazel.de> <20151209214322.GA14789@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-09 13:52:35 -0800, Peter Geoghegan wrote: > On Wed, Dec 9, 2015 at 1:43 PM, Andres Freund wrote: > > 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. > > HeapTupleSatisfiesVacuum? What of it? Err, HTSU, via heap_update()'s result. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs