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 1w8j8M-000ol8-1d for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Apr 2026 18:20:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w8j8L-00D9uJ-0p for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Apr 2026 18:20:41 +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 1w8j8K-00D9uB-3B for pgsql-hackers@lists.postgresql.org; Fri, 03 Apr 2026 18:20:41 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w8j8J-00000000OWr-1dZE for pgsql-hackers@lists.postgresql.org; Fri, 03 Apr 2026 18:20:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 633IKWnD3817826; Fri, 3 Apr 2026 14:20:32 -0400 From: Tom Lane To: Robert Haas cc: Alexander Lakhin , Lukas Fittl , PostgreSQL Hackers Subject: Re: pg_plan_advice In-reply-to: References: <1299934.1773938807@sss.pgh.pa.us> <3683430.1775173413@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 03 Apr 2026 13:13:47 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3817824.1775240432.1@sss.pgh.pa.us> Date: Fri, 03 Apr 2026 14:20:32 -0400 Message-ID: <3817825.1775240432@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > (In fact, I had a little bit of trouble finding this in the BF results > even knowing it was there: filtering by test_plan_advice failures > doesn't find anything recent. sifaka's failure shows up as > TestModulesCheck-en_US.UTF-8, but frustratingly, the names for the > stage logs don't seem to quite match the name of what failed. There is > testmodules-install-check-C and > testmodules-install-check-en_US.UTF-8, but those have "install" in the > name and are punctuated differently, so it's not instantly clear that > it's the same thing. Anyway, I do see it in there now, but what I'm > saying is that if there have been other failures that are related to > this, it's possible I have missed them due to stuff like this, so it's > helpful that you (Tom) pointed this one out.) I grepped the buildfarm database for 'supplied plan advice' and got no other hits since 6455e55b0 went in. That's not a huge sample size of course, but probably several hundred runs so far. If there's another message wording I should check for, let me know. > Tom, would welcome your thoughts, if you have any, and anyone else's > thoughts as well. If none, I'll proceed as described above and update > when I know more. I don't like anything in category 1 except (1a) run the test scripts serially for test_plan_advice. As I said before, I am strongly against allowing test_plan_advice to constrain what our tests do. Another idea in category 2, which I think is a bit different from any option you listed, is to repeat the "plan without advice, then again with advice, see if it matches" process up to maybe 5-ish times before declaring failure. If it works any one time, then write off the previous failures as being induced by concurrent activity. Unlike what you mentioned, this isn't dependent on sinval checks, which I think are next door to useless in the context of the regression tests: there's a constant storm of sinval activity going on, to the point where you might as well figure "check for sinval arrival" is constant "true". However, eyeing the calendar, I think the only options that are likely to be stabilizable before feature freeze are (1a) run the test scripts serially for test_plan_advice or (3a) throw test_plan_advice away. I know you don't want to do (3a) and I understand why not. How much will (1a) slow things down? regards, tom lane