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 1w988i-001CpN-0C for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2026 21:02:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w988g-000OKZ-1K for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2026 21:02:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w988g-000OKO-0P for pgsql-hackers@lists.postgresql.org; Sat, 04 Apr 2026 21:02:42 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w988d-00000000cYk-3pow for pgsql-hackers@lists.postgresql.org; Sat, 04 Apr 2026 21:02:41 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-486fc4725f0so28523155e9.1 for ; Sat, 04 Apr 2026 14:02:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775336559; x=1775941359; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=A0UOnaAcpFtmgje71rjuOEppaZFmJn/iFSvzODZtRbM=; b=s3u6NjtvBuYG0N+fgy7vqFQD5Vis1n4WwwbWWKsXFWkpt8u8amhe4nrG9OnR7DSsxZ h7I2bCIopzCNv7sGB6h1S0MXv05G5qvLl+cuJlpRMiJ739b/WJUPJ05B/dmcqMWDTuJT H/VQ0Q2RVupn+cTgGRklvAWbRnMWiU13G4CfIYUPzHZc0zcj+bCYnVjhqYVQxzZEFvzw 5a+qNz49m+F3ue01JNms7fx3biq2JCq2SM9K70nb4fGMK75BeOP+lkgtE4cq4bpcKfK4 Pubdu6cp8CD6Fzfurl0PJbDj62NUpSOaWlAH1f5Ezv4GlPin5q7ceK8QWh+JOwJefXqd v4CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775336559; x=1775941359; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=A0UOnaAcpFtmgje71rjuOEppaZFmJn/iFSvzODZtRbM=; b=Z/nBLZtudkEzi9ZSxuSMFtk+XIyBsepdAjMleQRxJ4Rs9ccl5f4duwlrxTAMrUHgi7 HGu/zRBJioBdFiKBrgX9VoDs5G/b7wdktaMyCPAo4DLkbAtvcKV4serLxRBlOh5spq+u hjO2If4NHPcUePjrSX2NBhfo9NwCXV0uPvFL8GjG4PEycNBAMU78erBemu3AoO3zF0NL n2sPV0A5ofyeVTkG27DGLm9ScdeO4p9jG7N3Jp4UfIT22qB4lwit5rOIfLLZQEHQ8aUF SJyqbfVyCFfGxGWaC/7MpU8tpwpIREujDSc3cUV34p00V8JrZC3HcwFNhprKIF1OpFWx CFBw== X-Forwarded-Encrypted: i=1; AJvYcCXt4b2QE7VqRAhm95hs83OUcptDZ7DkHLUnv4/TIm2vqcKsU4HlYgleFnhUU0+Wy0TTbFeg6Mck6n1l8OsF@lists.postgresql.org X-Gm-Message-State: AOJu0YxS5Rq2rf7mP6H5oCqz0j6MbwAXVjhUThtxwu3p0pAx9gtlrMUK 0q2d70UnoOGPstg8L5KEv8eCJHfUqvh5+ZdRJCT3hvOGgiRQZyf1F+/b X-Gm-Gg: AeBDievkx3Uvn0GAYID5Tt/bfohvsjYeqHxF+Lq4zE2mrrhEI/2lsHM7hxuLSO6LtS/ ns+kN8xqajwZRxKNTRPUVMVv1GjDpujQtM3SZQD3XHwR28ZYj2+qWw/TUr8YWG8pbZl5krJMmRc eth6qnD1vJKQSTuhMVk9KcTY+vutpnYHU+tXEWzFKodK3pVMaXOwiQAB86buxH4fnpi+xtraFpO e1YTVXL+OOIw5oqNhv582gnickglKj8S8whLxiZko21VeeyoddKRNHz8Y/8nuaRTAHZ/XhI2+2B czZAZFIrnJH1R8CMMGAx2yFFklZu5R19HJewhbxshRW7PHlRaYGFoyKvRztlgzNfWATnPGolxO8 Ju39wp3ScBM+NSrW75WiS5+rEg1nhuZr/+qH25o4J0c7360I6maZvvaKNketo/7IMUqDACl3UZS AG4gaELbPRxvYcQTUbUmTEUuXqgVq7WkyzRqU9u0kUGAompi+nhvwfPeH+zL3Isl8kpJvDbG0= X-Received: by 2002:a05:600c:45cf:b0:477:9890:9ab8 with SMTP id 5b1f17b1804b1-4889945f8c3mr100122775e9.3.1775336558886; Sat, 04 Apr 2026 14:02:38 -0700 (PDT) Received: from [192.168.0.86] (84.123.226.31.dyn.user.ono.com. [84.123.226.31]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4887e80a63esm472622685e9.3.2026.04.04.14.02.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Apr 2026 14:02:38 -0700 (PDT) Message-ID: <2e7bdb5d-68ba-4c65-9931-a865ab6fc3d2@gmail.com> Date: Sat, 4 Apr 2026 23:02:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pg_plan_advice To: Robert Haas Cc: Tom Lane , Alexander Lakhin , Lukas Fittl , PostgreSQL Hackers 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> Content-Language: en-US From: Andrei Lepikhov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. -- regards, Andrei Lepikhov, pgEdge