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 1f8WFm-00021P-0Z for pgsql-committers@arkaria.postgresql.org; Tue, 17 Apr 2018 19:26:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8WFk-0003sy-GJ for pgsql-committers@arkaria.postgresql.org; Tue, 17 Apr 2018 19:26:56 +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 1f8WFj-0003sp-K5 for pgsql-committers@lists.postgresql.org; Tue, 17 Apr 2018 19:26:56 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8WFg-0001qu-Jh for pgsql-committers@lists.postgresql.org; Tue, 17 Apr 2018 19:26:54 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 58B40115E; Tue, 17 Apr 2018 15:26:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 17 Apr 2018 15:26:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=YvLKMNYuOuphx1ljQ LWBNV5A1EAM1ibQgvv9YQwxcuE=; b=J/fKt2yRhpU47+5iiwA2I09R0KCRSY1wv PsF4ZYP2+44hNnXsvvGVwW7qz1EuL8Td6GxdGGyyqrN7HlXD6mCtoU2+2RA4ytRp 6Ns2V1zjifNvNodA5aczznqwm1xI4ZwZbN9GUgbanwg9bkKsgwtYM5LLJwZyZNQh u3JHtCGo3BrPw7arsxPqraYYEg84Ke75rmxi+rT5o0SiHxbv7081oaISN86E8ucM x+Fq6NUsWQTW3NhhySV2S2PBiNiFktvHqm2Tc9SqWr8x0kf3W0i11JXScJrsTrZf auYph54pyo/bkVuFf8eDA7w030Ura+ePmWFAsSXRyN5etuU6T2cZg== X-ME-Sender: Received: from alvin.alvh.no-ip.org (unknown [179.56.29.253]) by mail.messagingengine.com (Postfix) with ESMTPA id B6252E50AB; Tue, 17 Apr 2018 15:26:50 -0400 (EDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 0C8885CF; Tue, 17 Apr 2018 16:26:49 -0300 (-03) Date: Tue, 17 Apr 2018 16:26:49 -0300 From: Alvaro Herrera To: David Rowley Cc: Tom Lane , Andrew Gierth , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Support partition pruning at execution time Message-ID: <20180417192649.kuwcdv7btvdo2iuq@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Rowley wrote: > I've made another pass over the nodeAppend.c code and I'm unable to > see what might cause this, although I did discover a bug where > first_partial_plan is not set taking into account that some subplans > may have been pruned away during executor init. The only thing I think > this would cause is for parallel workers to not properly help out with > some partial plans if some earlier subplans were pruned. I can see no > reason for this to have caused this particular issue since the > first_partial_plan would be 0 with and without the attached fix. Pushed this. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services