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 1f5esY-0005N0-IX for pgsql-committers@arkaria.postgresql.org; Mon, 09 Apr 2018 22:03:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f5esX-0007PR-Cx for pgsql-committers@arkaria.postgresql.org; Mon, 09 Apr 2018 22:03:09 +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 1f5esX-0007PI-3u for pgsql-committers@lists.postgresql.org; Mon, 09 Apr 2018 22:03:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5esU-0003xr-66 for pgsql-committers@lists.postgresql.org; Mon, 09 Apr 2018 22:03:07 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w39M32Vr028987; Mon, 9 Apr 2018 18:03:02 -0400 From: Tom Lane To: Alvaro Herrera cc: Andrew Gierth , David Rowley , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Support partition pruning at execution time In-reply-to: <20180409215851.idwc75ct2bzi6tea@alvherre.pgsql> References: <20180409215851.idwc75ct2bzi6tea@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 09 Apr 2018 18:58:51 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28985.1523311382.1@sss.pgh.pa.us> Date: Mon, 09 Apr 2018 18:03:02 -0400 Message-ID: <28986.1523311382@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > I then noticed that support for nfiltered3 was incomplete; hence 0001. > (I then noticed that nfiltered3 was added for MERGE. It looks wrong to > me.) In that case, it's likely to go away when Simon reverts MERGE. Suggest you hold off committing until he's done so, as he probably already has some conflicts to deal with and doesn't need another. > Frankly, I don't like this. I would rather have an instrument->ntuples2 > rather than these "divide this by nloops, sometimes" schizoid counters. > This is already being misused by ON CONFLICT (see "other_path" in > show_modifytable_info). But it seems like a correct fix would require > more code. The question then becomes whether to put back nfiltered3, or to do something more to your liking. Think I'd vote for the latter. regards, tom lane