Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flf6C-00024X-WE for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Aug 2018 18:46:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1flf69-0001i7-M5 for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Aug 2018 18:46:49 +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.89) (envelope-from ) id 1flf67-0001i0-Sq for pgsql-bugs@lists.postgresql.org; Fri, 03 Aug 2018 18:46:49 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flf62-0004Ac-K2 for pgsql-bugs@lists.postgresql.org; Fri, 03 Aug 2018 18:46:47 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 46F5721921; Fri, 3 Aug 2018 14:46:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 03 Aug 2018 14:46:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=8FYoDrknZGnSGVZOJ3DBl/KbAkc+J1ybWodovZb1kjk=; b=V6j5kYhw I0ouI5KEjLqqo2qbcu2gvZwU+y6m9I7Kau98zzyAgRcgOyjEwNJALP8PlQPchWHJ EAz7Z1jTgIbxCKIbclZkWw4cKLUSDeTDSEg/4xc7JDrcnUhkUJugXlwCcy2JCLo4 /urpqPWUZSZcmcK4pNjQMkKKr/zdgMsd8y9D4dT4vxn8cYsWHO6H48aMQrfK+psp tQvtxdQDeqZEW8ttPDYJcgXs9estAtsvZvVLqJBpJH4Ki1An64Mf47n9J/Qxj2Me 8NnGYmq6MQcegZm9/UwTw2RqXb6NJaPGpg3sB69t1A/CTGNWHkaAIRPG/p+DlTfV wPzbKosOrkm6ug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=8FYoDrknZGnSGVZOJ3DBl/KbAkc+J 1ybWodovZb1kjk=; b=UUmUJjCJrB+F4s2Ztm4sOca8g33kXRiHcqmAvD5DhRZ7o YCLvqLssDFwVatMjkkcan2jzl0E5FGCs8bHX/mqCTJWFxrj40cAhXKXJCix862aF n3PvWPeFgrffu6LdlUUJPLUKFPunnqCLsWOMmLrtgRcyvNoqCu+L7vBhl4WLrst8 4lilgRqpRmH0O2VTPRS689S5Wj58lgM4pw7ZZ6Dh690QUq6iC5TQB/cQqKyb0XmY xOnduWG5nVIIKKw5P/splLGu4IseIlohsbmtVvsNHieWWyaova5Is2ITLD33XuQz OFk+EOf5KrfGaXz78CWEc/4RmdCk/M6yyBNHAPWpw== X-ME-Proxy: X-ME-Sender: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 64E021025C; Fri, 3 Aug 2018 14:46:39 -0400 (EDT) Date: Fri, 3 Aug 2018 11:46:38 -0700 From: Andres Freund To: Dean Rasheed Cc: Amit Langote , Tom Lane , Mario De Frutos Dieguez , pgsql-bugs@lists.postgresql.org Subject: Re: Fwd: Problem with a "complex" upsert Message-ID: <20180803184638.gdii7mja7qfc3fba@alap3.anarazel.de> References: <18795.1529600753@sss.pgh.pa.us> <8da3739d-da24-1125-cab6-b68d6ec1bc6a@lab.ntt.co.jp> <30415.1531256373@sss.pgh.pa.us> <4b956567-8283-1b8a-7cd7-f8b6e626bba9@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Dean, On 2018-08-03 10:40:50 +0100, Dean Rasheed wrote: > On 3 August 2018 at 07:52, Dean Rasheed wrote: > > This doesn't look right to me. It breaks the following case ... > > Here's an updated patch that fixes this. Are you planning to push a version of this soon? It'd be good to get this included in the next set of releases... - Andres