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 1oT4ML-00066I-NE for pgsql-general@arkaria.postgresql.org; Tue, 30 Aug 2022 16:45:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oT4MK-00041m-FM for pgsql-general@arkaria.postgresql.org; Tue, 30 Aug 2022 16:45:04 +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 1oT4MJ-00041d-Dz for pgsql-general@lists.postgresql.org; Tue, 30 Aug 2022 16:45:04 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oT4MG-0003j0-H0 for pgsql-general@postgresql.org; Tue, 30 Aug 2022 16:45:02 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 838573200923; Tue, 30 Aug 2022 12:44:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 30 Aug 2022 12:44:58 -0400 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=1661877898; x=1661964298; bh=Q 9xfkZjmJwEB8Ij1U8Sa3z0Rq8/PnBUHx9ejurBb2i8=; b=jbxKYyYQdt330WGzS xp7bD35zmGvP4w2IL8qGDY6C90rZ/XDU/lvOjPgy6L2EewK+2L4mLfatEf9gzdb6 ZnlzG721to8QXQ0xk+qOQe7yKhBqYRX+F86w1RRjFUl/uqHgReCjiUwwDpcg7Ybe 1cbb3DTxNNXK/joxAwSjnBmVTAAJGqFEhOEQeYmGAWjZHNlF4Uiv47kXOQN+aLvD SaiJL+l6sxmb/IAzGxtTxflpfHb+t+K7UFwucPvDqrZYC+tJ5dneq93J50XhGq5o o1IKQGTiDBlPmotAH5VCO+sxEDdVVQtkpoVxn+vggh42SL7DeihtrrbxCKGa5Qbt N4pxQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekfedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpefgtdegleeggffftdeiuddufffhveekgfdufeethefg tefhkedvgeejlefhteehvdenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmpdhpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 30 Aug 2022 12:44:57 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 0E71C378; Tue, 30 Aug 2022 18:45:12 +0200 (CEST) Date: Tue, 30 Aug 2022 18:45:12 +0200 From: Alvaro Herrera To: Matheus Martin Cc: pgsql-general@postgresql.org Subject: Re: Missing query plan for auto_explain. Message-ID: <20220830164512.7oq5g7i256b3zvzp@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-Aug-30, Matheus Martin wrote: > Good idea on using an actual prepared statement but unfortunately it didn't > produce any different result. I should have also mentioned to try the EXPLAIN EXECUTE six times and see if the last one produces a different plan. That's when it switches from planning every time to planning with generic arguments, as I recall. > Could you please elaborate a bit on your advice concerning > ExecutorEnd/PortalCleanup? I am afraid it doesn't mean much to me. That wasn't advice actually, just a note that the code might be doing that thing wrong, causing auto_explain to miss it. This is an unproven hypothesis that is likely to be all wrong. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "I'm impressed how quickly you are fixing this obscure issue. I came from MS SQL and it would be hard for me to put into words how much of a better job you all are doing on [PostgreSQL]." Steve Midgley, http://archives.postgresql.org/pgsql-sql/2008-08/msg00000.php