Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egBcH-0005km-2s for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jan 2018 15:45:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egBcF-0007h2-UJ for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jan 2018 15:45:03 +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_2) (envelope-from ) id 1egBcF-0007go-KY for pgsql-hackers@lists.postgresql.org; Mon, 29 Jan 2018 15:45:03 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1egBcD-000228-2B for pgsql-hackers@postgresql.org; Mon, 29 Jan 2018 15:45:02 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1egBc9-0007Mh-1J; Mon, 29 Jan 2018 10:44:57 -0500 Date: Mon, 29 Jan 2018 10:44:57 -0500 From: Bruce Momjian To: Simon Riggs Cc: Pavel Stehule , Peter Geoghegan , Alvaro Herrera , Andrew Dunstan , Pavan Deolasee , Robert Haas , Stephen Frost , PostgreSQL-development Subject: Re: [HACKERS] MERGE SQL Statement for PG11 Message-ID: <20180129154457.GC11613@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Jan 29, 2018 at 03:12:23PM +0000, Simon Riggs wrote: > On 29 January 2018 at 14:55, Pavel Stehule wrote: > > > My note was not against MERGE or INSERT ON CONFLICT. If I understand to this > > topic, I agree so these commands should be implemented separately. But if we > > use two commands with some intersection, there can be nice to have > > documentation about recommended use cases. Probably it will be very often > > question. > > That is more qualitative assessment of each, which I think I will defer on. > > This patch is about implementing the SQL Standard compliant MERGE > command which is widely used in other databases and by various tools. Uh, if we know we are going to get question on this, the patch had better have an explanation of when to use it. Pushing the problem to later doesn't seem helpful. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +