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 1erWbK-00004s-P7 for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Mar 2018 22:22:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1erWbJ-0006kD-2I for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Mar 2018 22:22:57 +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.89) (envelope-from ) id 1erWbI-0006k3-Ka for pgsql-hackers@lists.postgresql.org; Thu, 01 Mar 2018 22:22:56 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1erWbF-0005xG-8s for pgsql-hackers@postgresql.org; Thu, 01 Mar 2018 22:22:55 +0000 Received: by mail-wm0-x243.google.com with SMTP id t3so14986682wmc.2 for ; Thu, 01 Mar 2018 14:22:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+AfK4JL6IoDK5h0BBpXVRy1988KV/oW56UMaoutb9yI=; b=TUyovs0ndq8s8Bx1ikNoAy/gzaDgWvAd1fPTjzDlcJR7ylKJwdXg7m45EgTkkrjXte KLrZwQN8hx3OS22sNAVTyLzKA4kAKgqAcfXBTxVPTB8guTRJEbgmpq0ggVl7VTznpKHx 1D0CccTzjTYHefaidR88boXJVbjUI3T7Em58JHmImdrWiXJblo1vED3EIk0WxiNSeZYr AuRddaAJU5VjZo7DYpLc+OFU6BYg+OLi/aCR+E2yAjMLh2R6FQik41FdkDC+f/o90Nah ksMdLQ6h0EhkZcTqxX9RYyDkabIPvenH4CmiMoFvDwGrL07y9PMxkSc9jKprZ/Lmm4lk fPMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+AfK4JL6IoDK5h0BBpXVRy1988KV/oW56UMaoutb9yI=; b=N7VGUex7cJYV3TAkZ0YvFrLeddw4ZWT48pxsPIooIZ041kYW+XeaoFfIrdc9aD/3+k IT9ef1pSrOaQt62oLHpmwPnZm1rgppN8+uZ4/7Iqf5i/axIeS1pa0wYfbI+qMuRsrHBp OzMiZSg5sCDGWSJFupB/u5DWyR4dTakdFQ4IV3AggtOIMUFeh8DEJvvLPXU8rmpFnicU UlgD2sXf8DC5OaLjjWLKuydXEJDF/tK4v8BL28uKnrHYvdOt1SfXmqv4NsmhCfIupEg6 S3tbnzp4MQs5pvxovJnWK6r8uKgVOPShYRKV8J1scVZVowhGNHLXgKpKYqAnKkDnfzxc /OEA== X-Gm-Message-State: AElRT7EtnufVQp5jjPcDWrL81bnROZEYVlfge3y4p7fbHssMt9xoDSiY Hikwhf5c2j+HzdlSIKxx3/mQOXTgTxbGDjADqM67csFi0aCR0b5fi3iXmvW9fypWX0XvmGb8I9L xN1LeGL2TBY0Wn7l+Y+xund754gK27ortGlPBTNk2YxBIF4c9nezxPnKPXkIt5BJ9CH/xl66aQr Hqjza5n3fc X-Google-Smtp-Source: AG47ELsQUhxvRpcpO56uMsXG7nsFOlWlNaC+7WXYFMfNxseavJ08N1c68shpSGLowQOSizNAMgKMlQ== X-Received: by 10.28.40.195 with SMTP id o186mr206035wmo.134.1519942971058; Thu, 01 Mar 2018 14:22:51 -0800 (PST) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id 43sm5276062wru.40.2018.03.01.14.22.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 14:22:50 -0800 (PST) Subject: Re: [HACKERS] MERGE SQL Statement for PG11 From: Tomas Vondra To: Peter Geoghegan , Robert Haas Cc: Simon Riggs , Alvaro Herrera , Andrew Dunstan , Pavan Deolasee , Stephen Frost , PostgreSQL-development References: <50394f44-af78-b40f-313a-5b0f8a0450e4@2ndquadrant.com> Message-ID: <751b62c0-87a2-d109-3291-ea78289075ca@2ndquadrant.com> Date: Thu, 1 Mar 2018 23:22:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <50394f44-af78-b40f-313a-5b0f8a0450e4@2ndquadrant.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/06/2018 03:40 PM, Tomas Vondra wrote: > > > I plan to go through the patch and this thread over the couple of > days, and summarize what the current status is (or my understanding > of it). That is (a) what are the missing pieces, (b) why are they > missing, (c) how we plan to address them in the future and (d) > opinions on these issues expressed by others on this thread. > So, I've promised a summary of the patch status about three weeks ago. I've been postponing that as Pavan was moving the patch forward pretty quickly, and now there's not much to summarize ... which is a good thing I guess. If my understanding is correct, the MERGE now supports both partitioning and RLS, and subselects should also work on various places (which is somewhat consistent with my impression claims about SQL standard prohibiting them were not entirely accurate). Which leaves us with figuring out the right concurrency behavior, and that discussion seems to be in progress. So at this point I'm not aware of any other missing features in the patch, and a more detailed summary is not really needed. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services