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 1wAVco-0002bb-0e for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 16:19:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAVbm-000WQ7-1C for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 16:18:27 +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 1wAVbm-000WPz-0F for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 16:18:26 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAVbk-000000001yx-4BIh for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 16:18:26 +0000 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-66c17372965so12126237a12.1 for ; Wed, 08 Apr 2026 09:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775665104; cv=none; d=google.com; s=arc-20240605; b=aJfEAWjALTpm4AMwkks9I56dIpJ/RNiuE7z7YOlMe1NxNGD5ZH94WAsRBPMALH2en3 5Vnxvd2590kMdZ9MKlWToudQhrXJ78M8zUYiRjVDRqjUwdG2PJjMk1M7y13UcASPZbvt uTYvo8+E7fSBANXLf85hfwbI4KTZdRjpDgGCAtEWYQFV4E8UznKwmlrtAdit+YWK3Tw3 hyDkdaHWFKEHbXfOW6FDVytRCk5cGKCScyP4qDzqDRQaMcU542zxqUMOSCAisauwvGIN 9tsibvc7HuHxV1oV+wTAgxfLR25PMqAeEGu96VICc8TTctT3UoU8ZEAm0sH4Ieegafd2 A0Og== 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=GGJbdWvMwYTp9VvK21N4OXOse/d869RXY4X0bbMBXnE=; fh=kZyieyYy0iYAw9QJLQaV5fkSaBGxvxJ0EmKM+gZfW1c=; b=LkFr6kHRwjd8QHtaUpPX1a8BFoUceOqG/57cnk+R+wnxKTWOhAg/dbzI4yzkagiUyu dQ2ytkjKqE6GXKDtPmVjKrgS+CXoYtnSv7QApxR5I5LvmFLhfaecXPhrvBV/N4aX4bEs TJsKrOwW+1bhqxjiQXRMChks4WAtMcpDTbK/lV+j21EVl13GZsS3w1qdRj0qzD4GquBY jm0isuuR72BrFsFg8fqT36LlLJZie9uo7X1+TcZPeqqRCL01L/9PeFWo/I0YonXXP7K2 iGBKkyQsiUx7mdwLAWU6nzWADsCf5NiqUrgkdFa63RsrtikFCZ/cJlNtF9+VPkzLTLZ3 /s9w==; 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=20251104; t=1775665104; x=1776269904; 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=GGJbdWvMwYTp9VvK21N4OXOse/d869RXY4X0bbMBXnE=; b=AE5j/uIqy6p5r7v17lKXxwz68bWL4WSYAZjuWdu6qFpsA07Y+NY8tmhgV3A/QCK11o Uns9BdhJNo5Ck2NGN9YczjhLnxqYBCj9rpvhEhe16AsqVS9X1VslN9JWuK0LD2yq9hlo HzBW5JOyTQycjH9nDsS3H3S3C4mestUs/5RwyyfFmm8CfZLdD8AvvyZajgTkELHysHpP Imf44iJz3oDbg5r13FGOFRcsrT3CeXU/TJcuvlOIaHszvhSWs2dpwWQgJHrQXuOOXRn3 FzX1TuT6qtf5HHYb47JPYdRUGSMdZV5O5AkhtZmkq5GYBSKkD55sOBB1wi6ufyBmLlAB BNLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775665104; x=1776269904; 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=GGJbdWvMwYTp9VvK21N4OXOse/d869RXY4X0bbMBXnE=; b=rilgST2Lt4EcezUeFhTG+Ztw0bf8pwwhNvkEOXe5ErduywhcQmVCyZ0RnstKhvYkIR 1uXrRbMV/Tu0tmvz3AtOn7oWMNG0tUH4QCUewjzDBb0V/Av1+nRUsIJURn9KUtUPPBTs OtK4HhQch/lLEF20WE3dse4b16bnwCX9/BRa1ZDXR4lu6O1pvo+dnBFliZEr8U2X99zg ZCQXtfmQjg1fBhGbhcOmjnDRjMG+wGUZ8vXKFVAvV/NxfAsRJR5kHKx+zXmyBFjEewEf 5leTWsVBeQl8zpakk0JrWrWfpUSPii6tpRMEqQmqpzaJ8xLrNPhakTEBlG2UdLonJ8vF CufQ== X-Forwarded-Encrypted: i=1; AJvYcCWBAy0tL94d5Quvk3ZQXT1X4vH5V0aCnPNKFnSDVYbGDAvOuFZXzuKhXZZvQ8+jPNDN4niIXpAkndHV97ve@lists.postgresql.org X-Gm-Message-State: AOJu0YxtW0zLlo8UP7HXDWsFqHaSRqxBuLlZpJu4PWpGYI7mXbHyn+ai aPYi7LbmEfO7+8nTb9M/0kq3GuPKAeYAsPQym8uT0yemMcrsPG5O3/FnoJdCa/kLQyZy+5K9yZo PJ7jPaY2goBe9lYTGtE+xxdAqL/ZKlgY6HFxZ X-Gm-Gg: AeBDievlqp/E8bLdu2ToflfNnF1CXmRIvcYdDIz1gyrK+Vz6PQD2D0gFBBq0THamaaF zqZY/6+Y2vfCcv7ItIKhVGM1EjN94RuFWxejRVfjXtl3X/aR8v/Lko0tlI8Erc2ZV30ncf5Xsgl jH0lSk/0JOfsfhh+KiHkrfSpxcQJbYTM94FmC/oY963jPfJRNhoonFcRLWg5AT5jMH1TmhcMYhJ BPSMrKSzd2jR8TInS2e8nm/FXxAB/q9xGOZbm0N87uzVDtms06maQJL+IFdxeKrVkJP79d9xv1p utl0y5hUJe2trcLk9nsY3bfdB98QmmmcDGB4uwXlTGyBDhPJ8+dkQwbTWtkojUkookQni/s6Pdx KoBfj5Mwsyslxxld+FqI= X-Received: by 2002:a05:6402:5256:b0:66e:4cb:2300 with SMTP id 4fb4d7f45d1cf-66e3f837980mr11243123a12.24.1775665103414; Wed, 08 Apr 2026 09:18:23 -0700 (PDT) MIME-Version: 1.0 References: <3683430.1775173413@sss.pgh.pa.us> <3817825.1775240432@sss.pgh.pa.us> <3877210.1775272486@sss.pgh.pa.us> <2672940.1775599547@sss.pgh.pa.us> In-Reply-To: From: Melanie Plageman Date: Wed, 8 Apr 2026 12:18:11 -0400 X-Gm-Features: AQROBzBAm-bdgOoI4xQSx6zcrohfj8Eo6-NHy6pSMolgIwLAgINWfBApnC0mqsk Message-ID: Subject: Re: pg_plan_advice To: Nathan Bossart Cc: Tom Lane , Robert Haas , Alexander Lakhin , Lukas Fittl , PostgreSQL Hackers , "heikki.linnakangas" 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 Wed, Apr 8, 2026 at 10:49=E2=80=AFAM Nathan Bossart wrote: > > On Tue, Apr 07, 2026 at 06:05:47PM -0400, Tom Lane wrote: > > Robert Haas writes: > > > >> The other question here is whether it's really a good idea to > >> apply this now considering that we've seen only one failure so far. I > >> think it's probably a good idea to do something like this before > >> release, so that we hopefully reduce the false positive rate from the > >> test to something much closer to zero, but I think we've still had > >> only the one failure, and I'm really interested in knowing how close > >> the failure rate is to zero already. The RMT may have an opinion on > >> how long to wait before doing something like this, too. > > > > No strong opinion about that. Certainly waiting a couple of weeks > > to gather more data seems reasonable. > > I am only 1/3 of the RMT, but I am fine with the plan as stated. I agree with waiting a few weeks to continue catching bugs. As for 0001/0002 and the retry approach: if that's the best way to avoid spurious test failures, I'm fine with it. I haven't reviewed the code in detail and don't have an alternative to suggest. I'm definitely against running anything serially. As for the other ideas and suggestions so far: I don't see a way to split up the regression test suite that wouldn't make it harder to figure out where to add tests in the future. The whole point is to avoid regressing pg_plan_advice when new things are added to the planner, and that works because people don't have to think about a pg_plan_advice -- their new test queries automatically get coverage. I do think there needs to be a way to run this in CI, but it doesn't have to be on by default. For the buildfarm, I don't have a strong opinion about whether to limit it to some animals or some runs. Running on only some animals is easier to reason about when you see a failure (i.e. that animal runs with test_plan_advice, so it might be that), but running it once a day or once a week on all animals gives broader coverage. That said, the kind of coverage you gain from timing differences across animals -- catching races and transient issues -- may be less relevant for test_plan_advice than for other tests. - Melanie