Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w9kRI-001hvj-2u for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 13:56:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9kRH-008lpq-1O for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 13:56:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w9kRH-008lpi-0W for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 13:56:27 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w9kRF-00000000rPt-2nQ8 for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 13:56:26 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id E529A1D0022A; Mon, 6 Apr 2026 09:56:24 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Mon, 06 Apr 2026 09:56:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1775483784; x=1775570184; bh=a+e0VzAZLz8EbalAfQds0nWl8swoEXpFOpmPWemDfJI=; b= qUSIYq+Zk27RsI4DcICkKMh6D82SXE/fLuEFLz1pYB8IGJf5gQ58lFXjGGClE0xI fMGmmLpH0u6ONaLfR5dVm4+HEKbqpVSCz1+Kp3SMC47n8bwf49mit+mX66/Qimi6 HNhXas5aUQUZlYbEN8VcyERBjt3xSMFy7leTzz54NHLFezXcO/il9S5a/wMVQo8s pK8nol84YtxqcKbB9iL/jBgo6VIPO9wVbSNi0trC3t5+aaNgmN4T5Bl4w5Lp/OyB q4L5bm8x4w1a3tM0m5gxHwMKJslorxynMfoI3Gfm6KIlYtdBftMn/aZTBA2mVGCA PrYbwnFxjl+ECVklgQJtgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1775483784; x= 1775570184; bh=a+e0VzAZLz8EbalAfQds0nWl8swoEXpFOpmPWemDfJI=; b=l nqhfVrNethyoZx0aDRMPCQkDH7g8QIyqmqXhbqmZVcKAuMIZNOuDl1/yKAdrh/VG BCEx/0F+iUW+8TKIiOkU/XcI6D0hDdes5O1euoS1FUnsxNIUXv0EwzYTgeyNQYmm nDlgf/4UmTwVP9KkS85DBk6RBFEvhnl+onl30v4rbMSbGJG4Qt+cxE8xwJveSi7U sel96+ozkSry4eAb00ONMFeLJSsgUqNRe0tu8DW1mUC0RLCdObn/Ta/finZ4xa4u xpnaMy+YHgyOQLMfzEdsXDyXFSnu/nFXndraFGi6AFa8MNhdbIXcvx0AY8qv9nTW aKX+fvf0H7DcDq5VSBAag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddujeeltdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfhfgggtugfgjgestheksfdttddtjeenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnheptdelledvgfejvdffieeukeefueelfffhgeffhffgffekveeuheeihefhiefg hfdvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hnughrvghssegrnhgrrhgriigvlhdruggvpdhnsggprhgtphhtthhopeeipdhmohguvgep shhmthhpohhuthdprhgtphhtthhopehluhhkrghssehfihhtthhlrdgtohhmpdhrtghpth htohepvgigtghluhhsihhonhesghhmrghilhdrtghomhdprhgtphhtthhopehlvghpihhh ohhvsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhhosggvrhhtmhhhrggrshesghhmrg hilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhp ohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprg druhhs X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 6 Apr 2026 09:56:23 -0400 (EDT) Date: Mon, 6 Apr 2026 09:56:23 -0400 From: Andres Freund To: Andrei Lepikhov Cc: Robert Haas , Tom Lane , Alexander Lakhin , Lukas Fittl , PostgreSQL Hackers Subject: Re: pg_plan_advice Message-ID: References: <3683430.1775173413@sss.pgh.pa.us> <3817825.1775240432@sss.pgh.pa.us> <3877210.1775272486@sss.pgh.pa.us> <386d8c06-0f96-40bb-b1b1-107db209c676@gmail.com> <2e7bdb5d-68ba-4c65-9931-a865ab6fc3d2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2e7bdb5d-68ba-4c65-9931-a865ab6fc3d2@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2026-04-04 23:02:37 +0200, Andrei Lepikhov wrote: > On 4/4/26 20:42, Robert Haas wrote: > > On Sat, Apr 4, 2026 at 5:34 AM Andrei Lepikhov wrote: > > By the way, I'm really glad you hit that error. That particular error > > check is there precisely to find plans that pg_plan_advice isn't able > > to understand, and it sounds like it is doing its job as intended. > > Having problems isn't great, but knowing that you have problems is a > > lot better than still having them but not knowing about it. > That’s exactly what concerns me. I see it as a potential design flaw if the > extension has to make assumptions about possible plan configurations. > I’m not sure how it works in detail, of course. However, when I designed > Postgres replanning in the past, and made similar core changes to what > you’ve done for pg_plan_advice, this kind of problem couldn’t have happened. > So, I think it’s worth questioning the current approach and looking for > other options. You're making sweeping high-level demands, implying they're easy ("when I designed ... this kind of problem couldn’t have happened"), without any concrete technical suggestions for how to actually achieve that. In very strong language. Your high level demand, that somehow plan shape influencing code should just work regardless of what crazy thing extensions have done seems ... not entirely realistic, to put it very kindly. I suggest you rethink your approach of engaging with others. Greetings, Andres Freund