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 1w3MWf-0019Bu-0P for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2026 23:11:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w3MWd-003ReN-0s for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2026 23:11:35 +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 1w3MWc-003ReF-3B for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2026 23:11:35 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w3MWa-000000005O2-1cR8 for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2026 23:11:35 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-b980c65b97aso11691066b.0 for ; Thu, 19 Mar 2026 16:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773961891; cv=none; d=google.com; s=arc-20240605; b=VpK135SIuMkVp5FrAlFEnQLhsGnm5b1+DV2ReWQ13lkBJ5gbVXxZpTq4MjkZ96N6xO hzK6W4PxyER/BGnBbI1w2xlHnbEInGreiM8EFNDy4zTdqZn/CKonnwxABSB1yrlChNj5 q9LDBRYD87zODE45mwT0FnJsfjmaLQAApVuwTKjMF6NKqPXZvnGyutHPBMxO5ZevwSVm vsOdKvwUROH6wTx1nCSdRwRsjGdKL2XrgWKzznXUqCQtefVVupG2epuRYS5QrK4v9XSS ZWwtF9kgqxYIYH7on9Pk+g2+uVNUvmHyBPRS9AvsaWPHb6BP73/7Fi1hJvF8Mpk/KaKp 6nPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=psxz+MjDPhswfxefOmkiG5WkURV8tQVdv3wh5Sl0Y/4=; fh=x7rC9jLJWeZw8FFpkOjvsWmSbv1MZnVGJ1M5CiGf4xM=; b=Lb/RKxIl6A0dA8GyE9zqfMYGaqQPTbsp6disiB2zoE4PEEdfrk2v5JlfBUQA9UzvUI kl+V1JvXCUFImSUnAEuhdT67h2ql2BGVLiNnDfGWLUZ1uYSIBXOE0lO6dGJnMosbIpsv Y9jv752StM8Th4O8j4+IlkKvQKMk6X9ntzGzrHQ1n7Gk5+WDgVgofobR3lC6B+MPJ439 yvZgfMnGjBjCkxmh/+bUGTA5MvBzTolgpFI3GXum25b5relpF4m4CNo2kSrwRajwwa5d aKadIdHzScAuI9F3JMbIWmLNtBjCREA6g7EGhMvFpTkXxIqeGwdQJL4GvbbN/5vWZPWS aTJQ==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773961891; x=1774566691; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=psxz+MjDPhswfxefOmkiG5WkURV8tQVdv3wh5Sl0Y/4=; b=OIW3Y8KPo+AN7DAk2gR24HX6CYuvwTD4eQ0SfBhW2jri4H/I8ObMqF9K2vcJi5CWRw nj/RKr0MD2g9VAwxASqqZnju5YthuS7OR84gttKpBDzBHqa+XuLw+imITvhnjuml1cG2 AuaiBYuNe6F10eqQxWrqBEzRHY9sx5gUcI7T1QRO1n9bhXCxg+WOns44ZwyQuJf3XSV+ xL8KMc2N1xHEZtoZ0l9jblRgmSrpz62LWvA5wsNngcmenyw19Eu4ydc8FVJwTJKcA5pR leGXPhtI98/fQ2hS9+STiqoVh4D/cbgS2x/jQ48HJFa/D5V9+vrltqHWtHZSQjDQ8AjB 7Nhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773961891; x=1774566691; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=psxz+MjDPhswfxefOmkiG5WkURV8tQVdv3wh5Sl0Y/4=; b=NpShwwGEdxYc6Znbmk70ky02ZWsXBnAUZdSEdjwIj4C0xjmKzJ9MoqmRh8OpBZmfII R2dksjLkUys62Wx7yQ+1HY1Pap8s6BpmoqQmlUJxZGxF31OCkhvuohs4eh01sOso41Os cy2L62B5rIwE9ufVmnXppUpmt8lnnK6x5HZh1Q912wMPx5kpSyrk5UorFKmGWC+UAJ3i 0fhurbnGz2jiMzyvLqF51QxHPAY1Bd6o3tg2zsbtmmS6JLahXKjO0djUKUfAqs6fWHZ5 +wmSvnYJHAynkG51Asy5NR0s0o+Z1PIVLl9fG01UQPYLjbIEPE4ruqCFvjDXo8/mWVwS Pw8w== X-Forwarded-Encrypted: i=1; AJvYcCXCkKdt1l9h6+fmN1yD8wzU0D421WxEg2NycO78XgGhGC3Fzfz3F6jlftiDJkDe0G55v2y8eDjwqrV/w30C@lists.postgresql.org X-Gm-Message-State: AOJu0YwxjxBWciqOCJARjLwpBcTDkItB2G89zsg3n774fnL+oikVtuCf Q+42S6zG/oiHRhQNP7qu9l67yprtmu7bH1YLYa7LjcdxhspnHxyyH4Ht7NVaNP9+fi7lMPiTIjd wJW0iZloM/l9IWuagBloHRcjFVkw1iGI= X-Gm-Gg: ATEYQzxyy/D06JHQ0/JPWjBCmzcSuk1aom2sWaH2kNyAGyvdfuHqgfbTNGMg+1J+eon 6vawl3WdKhib713mI4cx3Vw8FclYczqadSIPbPuScQMXgxKGqfcjS3f6WZTESZ/dcywlZZFclJm gaxkyS9n7nUYKgB8NsXvNx3Z4W1W7ZcNsUnRIK4uZeSWH0MHKnlUjPi2uTicPW3mMqm5WIeeU5L shd1UrMsStPmL/EcF6b6vC2+2clwBMnfR1/JEbMKAY+qDXxFhDXT5iXBFXhtMtNvxrHetNVkAiX zTa9ZWb4XVNVkSxu46+xpw0Znrj8fiE+sONZgBoyya4ZdVr+qw== X-Received: by 2002:a17:907:930:b0:b98:bd4:bbc8 with SMTP id a640c23a62f3a-b982f21d8fcmr51301966b.25.1773961891079; Thu, 19 Mar 2026 16:11:31 -0700 (PDT) MIME-Version: 1.0 References: <1299934.1773938807@sss.pgh.pa.us> <1500792.1773957794@sss.pgh.pa.us> <1504963.1773960228@sss.pgh.pa.us> In-Reply-To: <1504963.1773960228@sss.pgh.pa.us> From: Robert Haas Date: Thu, 19 Mar 2026 19:11:18 -0400 X-Gm-Features: AaiRm51vluwHcVnEdOQYkl9xO9pvbRgH1EKyQd9S_ZopCuwznY44pLQKiFk7MZU Message-ID: Subject: Re: pg_plan_advice To: Tom Lane Cc: Matheus Alcantara , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Mar 19, 2026 at 6:43=E2=80=AFPM Tom Lane wrote: > It would, but it's conceptually ugly and it might make it much harder > to detangle the cause of a failure, so I don't care for it much. It does carry that risk. *Typically* failures are going to be a WARNING message complaining about something related to advice, so the chance of confusion is perhaps not as high as it would be in some other cases -- but the grison failure is a counterexample. I'm somewhat inclined to discount that particular counterexample because the bug is entirely unrelated to test_plan_advice or pg_plan_advice, so I am not sure it really would have mattered if we hadn't known that test_plan_advice was what precipitated it. But there might be other cases where that isn't so. > I don't have any great ideas here. Your point about the test having > helped to find a lot of bugs is compelling, and so is the fact that > it's seemingly exposing more issues we've not understood yet. > Maybe we can eventually buy back the cycles by not running it by > default, but clearly now is not the time for that. OK, thanks. To be honest, my biggest fear here is not that the test doesn't have enough value, but that it has a little too much value, i.e. that we're going to find that future planner improvements require pg_plan_advice adjustments more often than we're all comfortable with. Hopefully that fear is unjustified, but we're not going to know for a while. --=20 Robert Haas EDB: http://www.enterprisedb.com