Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0hcw-000645-2d for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Dec 2022 11:21:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p0hcu-00067N-8l for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Dec 2022 11:21:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0hct-00067E-VU for pgsql-hackers@lists.postgresql.org; Thu, 01 Dec 2022 11:21:11 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0hcr-0002Uw-Im for pgsql-hackers@postgresql.org; Thu, 01 Dec 2022 11:21:10 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6B7B35C0063; Thu, 1 Dec 2022 06:21:08 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 01 Dec 2022 06:21:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1669893668; x=1669980068; bh=0 fJ639xEFA33IxE8RFAFDiaXmgMFUiP1fpegX1jzyFk=; b=LlGVrHpEBvhHQekPv zZp+vmfh6ICUmBMyOP9KVISjFsySJCIwcoY+RAKMHHXn/jWnV8ecWmOsewi7rXPr S97HFlDlEso91/wKRVqs4bRA2dVfII9AlQBYiNMlFwn9L7zxLq5JLCICqz3i3k5d OxzYgz7tGiC5hmIJow/XpmQefwFXXzXSeg4i66FIhXGrLGn59nQG2AxXqtzpnech 9nGehRVkRMpjijs+EzAnPoQ2sVDgS/gjOXFxIAOtn5yEbUqJP/xX7ftew4HfXzXE 5TjIesA041w7nh/36J0u4dfJumIvjtIR0GLa7jSruihZQoyH4evFwqf+vhulKB5f lB7mA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrtdehgddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeekteeuvddthfeuiedtfefgkedvgfdtveduudefiedtkeeh feduvdehgeevhfeffeenucffohhmrghinheptghirhhruhhsqdgtihdrtghomhdpvghnth gvrhhprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Dec 2022 06:21:07 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 57DE2E98; Thu, 1 Dec 2022 12:21:06 +0100 (CET) Date: Thu, 1 Dec 2022 12:21:06 +0100 From: Alvaro Herrera To: Amit Langote Cc: Robert Haas , Jacob Champion , Zhihong Yu , David Rowley , Tom Lane , PostgreSQL-development Subject: Re: generic plans and "initial" pruning Message-ID: <20221201112106.gjlcv6nvndjbnoez@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Dec-01, Amit Langote wrote: > Hmm, how about keeping the [Merge]Append's parent relation's RT index > in the PartitionPruneInfo and passing it down to > ExecInitPartitionPruning() from ExecInit[Merge]Append() for > cross-checking? Both Append and MergeAppend already have a > 'apprelids' field that we can save a copy of in the > PartitionPruneInfo. Tried that in the attached delta patch. Ah yeah, that sounds about what I was thinking. I've merged that in and pushed to github, which had a strange pg_upgrade failure on Windows mentioning log files that were not captured by the CI tooling. So I pushed another one trying to grab those files, in case it wasn't an one-off failure. It's running now: https://cirrus-ci.com/task/5857239638999040 If all goes well with this run, I'll get this 0001 pushed. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Investigación es lo que hago cuando no sé lo que estoy haciendo" (Wernher von Braun)