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 1pPSOu-00014I-Iq for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Feb 2023 18:09:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPSOt-0003sP-FB for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Feb 2023 18:09:03 +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 1pPSOt-0003sG-61 for pgsql-hackers@lists.postgresql.org; Tue, 07 Feb 2023 18:09:03 +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 1pPSOq-00051l-KA for pgsql-hackers@postgresql.org; Tue, 07 Feb 2023 18:09:02 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9C3A75C021B; Tue, 7 Feb 2023 13:08:57 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 07 Feb 2023 13:08:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1675793337; x=1675879737; bh=kfbfP7h8Qc 9BMRPSOqFfvlwi7UqbdgKpbCmsv4v2dpU=; b=jSkUQY6m+M4WDcbiYsRWHgAXp8 GHNtTF7eZcCJoNJXTwdHMVHgzOsll74c+c1DUtWyxTn8o1rqb0i4oeXLKYytvvfI updvZglQXlPqazAl3VhvCKv8mPaEbT4Imlvdn/k/WRudjLrW3jOZx3Tnawvufx3Y EN0DsHmUVno0d2fPUCkZWRPfc2UWFQKTAqDjMwV1tU2rqSa6gd302sUD1SMmbTC7 MsCDUBwiEeul8UcvkOMkQUIwMWiCpEO1Bz4JV0HxHi4M71sJvYQJPVHECsrsbyla Jq/hDC583IEtdxNmnbu7n6ZGcFrARAA25ozw0vEpQvuuz++p0E8nhJq9OdWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1675793337; x=1675879737; bh=kfbfP7h8Qc9BMRPSOqFfvlwi7Uqb dgKpbCmsv4v2dpU=; b=RBODdenq3A41VProtqHJWV1+2GTeMEMEzDSWq09ThJWf p8RNdpKI6FECco4OCjOO8sIyW0v3X8Cs8LDaBVWgDuovY+hXd7shUgcoP9XunnUn HWjAu29FHTYHaeSD0O17KTieIX6WhGcpquuczsGI8iSv1+DIe3CmshJbZFvnXhXX EpIbHXZnybQKaTDc3V6Vh9EADtB+U6nkgU1Z2p57J9WGpLV7f7GtCKAiWvsPPo13 vvLEHe7ES2cUdNUxFit61M7Eh6dG1YfTrhIurhZnjuVbvScV/b6phMvbysLf38y7 hUhqv4gJdySljbjl06gmJpYr5rVr+e4zFVBLfQOS1w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudegkedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtf frrghtthgvrhhnpefhgeejtddugeevffetfeejleejvdegteeulefftdffjeegffeggeeg ffetgeehueenucffohhmrghinheptghirhhruhhsqdgtihdrtghomhenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghr rgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Feb 2023 13:08:56 -0500 (EST) Date: Tue, 7 Feb 2023 10:08:55 -0800 From: Andres Freund To: Amit Langote Cc: Tom Lane , Alvaro Herrera , Robert Haas , Jacob Champion , David Rowley , PostgreSQL-development Subject: Re: generic plans and "initial" pruning Message-ID: <20230207180855.xy5m4puwh5gzd7xy@awork3.anarazel.de> References: <20221221101846.7zsi7lscnm5ediik@alvherre.pgsql> <1350682.1671635927@sss.pgh.pa.us> <4191508.1674157166@sss.pgh.pa.us> <349124.1674185509@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-02-03 22:01:09 +0900, Amit Langote wrote: > I've added a test case under src/modules/delay_execution by adding a > new ExecutorStart_hook that works similarly as > delay_execution_planner(). The test works by allowing a concurrent > session to drop an object being referenced in a cached plan being > initialized while the ExecutorStart_hook waits to get an advisory > lock. The concurrent drop of the referenced object is detected during > ExecInitNode() and thus triggers replanning of the cached plan. > > I also fixed a bug in the ExplainExecuteQuery() while testing and some comments. The tests seem to frequently hang on freebsd: https://cirrus-ci.com/github/postgresql-cfbot/postgresql/commitfest%2F42%2F3478 Greetings, Andres Freund