Re: explain analyze rows=%.0f - Mailing list pgsql-hackers
From | Robert Haas |
---|---|
Subject | Re: explain analyze rows=%.0f |
Date | |
Msg-id | CA+Tgmoaob_3aNF5S49WFoJs6Rb37rNnd5WH_e9nXAn_jtWWCLQ@mail.gmail.com Whole thread Raw |
In response to | Re: explain analyze rows=%.0f (Robert Haas <robertmhaas@gmail.com>) |
Responses |
Re: explain analyze rows=%.0f
|
List | pgsql-hackers |
On Fri, Feb 21, 2025 at 4:20 PM Robert Haas <robertmhaas@gmail.com> wrote: > So, I've committed v11-0001. I'm not altogether convinced that > v11-0002 is necessary -- no portion of the documentation that it > modifies is falsified by the committed patch. Maybe we can just call > this one done for now and move on? Well, not quite yet, at least. There are two buildfarm failures since I committed this. The first is here: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=conchuela&dt=2025-02-21%2021%3A22%3A30 diff -U3 /home/pgbf/buildroot/HEAD/pgsql.build/src/test/regress/expected/explain.out /home/pgbf/buildroot/HEAD/pgsql.build/src/test/regress/results/explain.out --- /home/pgbf/buildroot/HEAD/pgsql.build/src/test/regress/expected/explain.out 2025-02-21 22:20:39.229225000 +0100 +++ /home/pgbf/buildroot/HEAD/pgsql.build/src/test/regress/results/explain.out 2025-02-21 22:22:38.193054000 +0100 @@ -528,7 +528,7 @@ "Plan Rows": 0, + "Plan Width": 0, + "Total Cost": 0.0, + - "Actual Rows": 0.0, + + "Actual Rows": 0, + "Actual Loops": 0, + "Startup Cost": 0.0, + "Async Capable": false, + @@ -575,7 +575,7 @@ "Plan Rows": 0, + "Plan Width": 0, + "Total Cost": 0.0, + - "Actual Rows": 0.0, + + "Actual Rows": 0, + "Actual Loops": 0, + "Startup Cost": 0.0, + "Async Capable": false, + I imagine what happened here is that the parallel workers didn't start, and so nloops was 1 instead of >1, and so we got an integer output instead of a fractional one. It looks like there's some kind of JSON-based EXPLAIN filtering happening here, so maybe we should just also be filtering out the actual rows column? But I fear this will turn out to be a problem for other parallel-query using tests that were modified by this commit: it can always happen that the workers start slowly enough that the leader finishes the whole query before the worker starts up. Maybe making the number of decimal digits contingent on nloops wasn't such a hot idea - I think it means that every parallel query has a small but non-zero probability of producing different EXPLAIN output in the probably-rare case where the worker startup is slow. The other failure is here: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=loach&dt=2025-02-21%2021%3A25%3A19 This failure seems not to have uploaded any log artifacts, so I'm not sure how to tell what caused this. -- Robert Haas EDB: http://www.enterprisedb.com
pgsql-hackers by date: