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.94.2) (envelope-from ) id 1vEwVU-004FpL-Ib for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Oct 2025 21:18:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1vEwVT-000wTf-Is for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Oct 2025 21:17:58 +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.94.2) (envelope-from ) id 1vEwVT-000wTT-6G for pgsql-hackers@lists.postgresql.org; Fri, 31 Oct 2025 21:17:58 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vEwVP-005JOe-21 for pgsql-hackers@lists.postgresql.org; Fri, 31 Oct 2025 21:17:57 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-b6d855ca585so582886666b.0 for ; Fri, 31 Oct 2025 14:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjt-london.20230601.gappssmtp.com; s=20230601; t=1761945473; x=1762550273; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0qhfS960oucNU83w4VCAeJ6NlCy59VnExhCUoiyCpF8=; b=aBymM02VCUOoCb3JjEqqQQAGoJ3oZtdY/bjF+urkwaS2wQQ3/8W9TWyvzasl9Ap6dM rVr5V90D0fxvgXPPXs2iPSvukxaZogwG51aRfQtqYTyGeLm0N4TIrsLvsZxq2tqibgEF J1pA/7sF6tN/kzhXMXIgo3BZoe/zA2ACF8Zj7y2or17v2Whihl1FRhpKtEFdFMV1DYA9 CWb89G23mULIbpgd+0n8F+l3rPXyFh4vMgxhOVzC062zwBT4m9wiY4BVrLJ5Mb8wSjXU U6jjVD53kzLc+ja8klxC2BGq3rwtO7Y+hG3QxJipIhaTjUxNlwy0WCKoxIHdo+1KeWd6 41Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761945473; x=1762550273; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0qhfS960oucNU83w4VCAeJ6NlCy59VnExhCUoiyCpF8=; b=jWLcrj/i3jpvskIoR15EdnBW4lPbGlns/5KGadHTd7v9JIU3WKOVlgtHySdHNaWpM6 Um20cfL9Ik+OiXS2phZh9btfPXorNOXFhNQm0aYrTaLHLU3j1JMyQchTz3OB5foOcO4K GUy0jDdDlW+DeWWFStKH19vwtv0Hy3S9DxtQO7QkeGagfKIzkC8ynNH+1WE/qCX1UFyN SAo1DHYhO7C/R0DaUlrIhDgzTnwc/EEi/9pVvXvGVn4WIyDt8ejCHjDE9wiptouazYEH 6foIIoKasHKWj3YXA2GgWp7Yx0348kd0YBSYdOntblJv7obiixm4YeS/B+52LIsEcZCQ Uy/g== X-Forwarded-Encrypted: i=1; AJvYcCWDzHBerP5nDUUL4+u19/CDiN5THiaFkzNNRoGzAGCCFEHEbat2k2DXzBAoxryhE5RWYfjOpVQN+W3XHgzU@lists.postgresql.org X-Gm-Message-State: AOJu0YxIIeEMnipVOnVp3CYu8UbvtsrP+DGfzYampOpQuynUzzEzblrS Q5Yyp73iut8m5CADy35lcJS3zODodqCofwtN1+pSIPtJCT3J6AQwfEwPTWlTMOY8k/5JRTiZHzr urtVQEKYaZvUKcmjR0so6L3bslrwdIpr4UAMDCS6M1w== X-Gm-Gg: ASbGncvgrNM/FQyTr4UMXgAWVrATe43d43LAnnn5CuxPNepG4SgSXJaRazHNlFz3c1j icoIcmsOLuZ7newR+z6CX7nO1bHtLxucQiK1bIpoeIzUGRaviRRQ8cc3LROj71W48gUAgyJXvEt syDtiA66FBv9oowJMIwGvqDt/kkZXvg7zU9qMGv4EEjN1hbYCXS7lWoPAHYovh3gN/K8m62gqVC JQMZpqQoJAb5u97Mx5Fb1z7hQ4klCNvkQiMQKuiPtEOEy0KhG24Uj+eNGmaybOEzEv5Cxic2KuX dzmn X-Google-Smtp-Source: AGHT+IFYhmegIwtYpkPYFeE6ZcfG5Zc4LnW3yS0t7yIHmTIcv15m3WP81jLIDFXCtvE3B+B9GVzpa8ccgnVH1I/ct10= X-Received: by 2002:a17:907:1b1a:b0:b45:e8e2:ade3 with SMTP id a640c23a62f3a-b70708a0e98mr484035266b.64.1761945472676; Fri, 31 Oct 2025 14:17:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alastair Turner Date: Fri, 31 Oct 2025 21:17:41 +0000 X-Gm-Features: AWmQ_bkap0PorzeFvzcKulnjDUBuUfY96EPCykqXMQ4vPQwD30i7sjJWKB2lRKQ Message-ID: Subject: Re: pg_plan_advice To: Robert Haas Cc: Jakub Wartak , PostgreSQL Hackers Content-Type: multipart/alternative; boundary="00000000000003433506427ae66a" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000003433506427ae66a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 31 Oct 2025, 12:51 Robert Haas, wrote: > On Fri, Oct 31, 2025 at 5:59=E2=80=AFAM Jakub Wartak > wrote: > > > First, any form of user control over the planner tends to be a > lightning rod for criticism around here. > > > > I do not know where this is coming from, but everybody I've talked to > > was saying this is needed to handle real enterprise databases and > > applications. I just really love it, how one could precisely adjust > > the plan with this even with the presence of heavy aliasing: > I really like the functionality of the current patch as well, even though I am suspicious of user control over the planner. By giving concise, precise control over a plan, this allows people who believe they can out-plan the planner to test their alternative, and possibly fail. Whatever other UIs and integrations you build as you develop this towards you goal, please keep what's currently there user accessible. Not only for testing code, but also for testing users' belief that they know better. Alastair --00000000000003433506427ae66a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Fri, 31 Oct 2025, 12:51 Robert Ha= as, <robertmhaas@gmail.com&= gt; wrote:
On Fri, Oct 31, 2025 at = 5:59=E2=80=AFAM Jakub Wartak
<jakub.wartak@enterprisedb.com> wrote:
> > First, any form of user control over the planner tends to be a li= ghtning rod for criticism around here.
>
> I do not know where this is coming from, but everybody I've talked= to
> was saying this is needed to handle real enterprise databases and
> applications. I just really love it, how one could precisely adjust > the plan with this even with the presence of heavy aliasing:

I really l= ike the functionality of the current patch as well, even though I am suspic= ious of user control over the planner. By giving concise, precise control o= ver a plan, this allows people who believe they can out-plan the planner to= test their alternative, and possibly fail.=C2=A0
Whatever other UIs and integrations you build as = you develop this towards you goal, please keep what's currently there u= ser accessible. Not only for testing code, but also for testing users' = belief that they know better.=C2=A0

Alastair=C2=A0
--00000000000003433506427ae66a--