Adjust EXPLAIN test case to filter out "Actual Rows" values.
authorRobert Haas
Sat, 22 Feb 2025 00:15:44 +0000 (19:15 -0500)
committerRobert Haas
Sat, 22 Feb 2025 00:20:41 +0000 (19:20 -0500)
Per the buildfarm, these tests appear to be unstable in the wake of
commit ddb17e387aa28d61521227377b00f997756b8a27. I'm not sure that
just hiding this output is the right way forward, because I think
there may be other test cases that will fail with lower probability
even after this fix. However, it's hard to tell right now, because
this is failing on a number of buildfarm animals. So let's try this
for now to either get a clearer picture of what else is broken, or
as a stopgap until we decide what the permanent fix should be, or
perhaps this will be the permanent fix after all.

src/test/regress/expected/explain.out
src/test/regress/sql/explain.sql

index eb187516b33b96ea90a7ecff5a6caa6dfc314b1e..97eb4b76526f8f71601e4b99467bd6791b8573f0 100644 (file)
@@ -493,6 +493,9 @@ select jsonb_pretty(
   -- Also remove its sort-type fields, as those aren't 100% stable
   #- '{0,Plan,Plans,0,Sort Method}'
   #- '{0,Plan,Plans,0,Sort Space Type}'
+  -- Actual Rows can be 0 or 0.0 depending on whether loops>1
+  #- '{0,Plan,Plans,0,Actual Rows}'
+  #- '{0,Plan,Plans,0,Plans,0,Actual Rows}'
 );
                         jsonb_pretty                         
 -------------------------------------------------------------
@@ -528,7 +531,6 @@ select jsonb_pretty(
                              "Plan Rows": 0,                +
                              "Plan Width": 0,               +
                              "Total Cost": 0.0,             +
-                             "Actual Rows": 0.0,            +
                              "Actual Loops": 0,             +
                              "Startup Cost": 0.0,           +
                              "Async Capable": false,        +
@@ -575,7 +577,6 @@ select jsonb_pretty(
                      "Plan Rows": 0,                        +
                      "Plan Width": 0,                       +
                      "Total Cost": 0.0,                     +
-                     "Actual Rows": 0.0,                    +
                      "Actual Loops": 0,                     +
                      "Startup Cost": 0.0,                   +
                      "Async Capable": false,                +
index 0bafa8704960e5eb8eb76978b72c5f9a4d8fae80..c719cca6583432ecf5feec9877636c63f1d2830c 100644 (file)
@@ -147,6 +147,9 @@ select jsonb_pretty(
   -- Also remove its sort-type fields, as those aren't 100% stable
   #- '{0,Plan,Plans,0,Sort Method}'
   #- '{0,Plan,Plans,0,Sort Space Type}'
+  -- Actual Rows can be 0 or 0.0 depending on whether loops>1
+  #- '{0,Plan,Plans,0,Actual Rows}'
+  #- '{0,Plan,Plans,0,Plans,0,Actual Rows}'
 );
 
 rollback;