Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ymk1n-0000hh-Oz for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Apr 2015 14:28:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ymk1n-0001k0-3C for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Apr 2015 14:28:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ymk1l-0001ju-S3 for pgsql-hackers@postgresql.org; Mon, 27 Apr 2015 14:28:54 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Ymk1j-00037n-7o for pgsql-hackers@postgresql.org; Mon, 27 Apr 2015 14:28:52 +0000 Received: from intern.anarazel.de (x55b39290.dyn.telefonica.de [85.179.146.144]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id BF7D4860001; Mon, 27 Apr 2015 16:28:49 +0200 (CEST) Date: Mon, 27 Apr 2015 16:28:49 +0200 From: Andres Freund To: Peter Geoghegan , Tom Lane Cc: hlinnaka , Jeff Janes , Stephen Frost , Dean Rasheed , Bruce Momjian , Pg Hackers Subject: Re: INSERT ... ON CONFLICT UPDATE/IGNORE 4.0, parser/executor stuff Message-ID: <20150427142849.GD7296@alap3.anarazel.de> References: 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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2015-04-26 18:02:06 -0700, Peter Geoghegan wrote: > * So far, there has been a lack of scrutiny about what the patch does > in the rewriter (in particular, to support the EXCLUDED.* pseudo-alias > expression) and optimizer (the whole concept of an "auxiliary" > query/plan that share a target RTE, and later target ResultRelation). > If someone took a close look at that, it would be most helpful. > ruleutils.c is also modified for the benefit of EXPLAIN output. This > all applies only to the ON CONFLICT UPDATE patch. A committer could > push out the IGNORE patch before this was 100% firm. I'm far from an expert on the relevant regions; but I'm starting to look nonetheless. I have to say that on a preliminary look it looks more complicated than it has to. Tom, any chance you could have a look at the parse->analsys->executor transformations? Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers