1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-28 11:55:03 +03:00

Fix test case from 40c242830

I mistakenly included the "Replaces" lines describing the origin of
Result nodes in groupingsets.out, which actually come from a feature
not available in v18.  Mea culpa.

Per buildfarm.

Discussion: https://postgr.es/m/CAMbWs4_VxjdM-nBvt8YE=84rE4OLBES27Wz1P0=9Z6KgwPqzEA@mail.gmail.com
This commit is contained in:
Richard Guo
2025-10-21 14:12:13 +09:00
parent 40c2428307
commit ee49f2cf44

View File

@@ -935,15 +935,14 @@ select a, b, count(*) from gstest2 group by rollup(a), b having b > 1;
-- test pushdown of degenerate HAVING clause -- test pushdown of degenerate HAVING clause
explain (costs off) explain (costs off)
select count(*) from gstest2 group by grouping sets (()) having false; select count(*) from gstest2 group by grouping sets (()) having false;
QUERY PLAN QUERY PLAN
----------------------------------- --------------------------------
Aggregate Aggregate
Group Key: () Group Key: ()
Filter: false Filter: false
-> Result -> Result
Replaces: Scan on gstest2
One-Time Filter: false One-Time Filter: false
(6 rows) (5 rows)
select count(*) from gstest2 group by grouping sets (()) having false; select count(*) from gstest2 group by grouping sets (()) having false;
count count
@@ -952,8 +951,8 @@ select count(*) from gstest2 group by grouping sets (()) having false;
explain (costs off) explain (costs off)
select a, count(*) from gstest2 group by grouping sets ((a), ()) having false; select a, count(*) from gstest2 group by grouping sets ((a), ()) having false;
QUERY PLAN QUERY PLAN
----------------------------------------- --------------------------------------
GroupAggregate GroupAggregate
Group Key: a Group Key: a
Group Key: () Group Key: ()
@@ -961,9 +960,8 @@ select a, count(*) from gstest2 group by grouping sets ((a), ()) having false;
-> Sort -> Sort
Sort Key: a Sort Key: a
-> Result -> Result
Replaces: Scan on gstest2
One-Time Filter: false One-Time Filter: false
(9 rows) (8 rows)
select a, count(*) from gstest2 group by grouping sets ((a), ()) having false; select a, count(*) from gstest2 group by grouping sets ((a), ()) having false;
a | count a | count
@@ -972,8 +970,8 @@ select a, count(*) from gstest2 group by grouping sets ((a), ()) having false;
explain (costs off) explain (costs off)
select a, b, count(*) from gstest2 group by grouping sets ((a), (b)) having false; select a, b, count(*) from gstest2 group by grouping sets ((a), (b)) having false;
QUERY PLAN QUERY PLAN
----------------------------------------- --------------------------------------
GroupAggregate GroupAggregate
Group Key: a Group Key: a
Sort Key: b Sort Key: b
@@ -981,9 +979,8 @@ select a, b, count(*) from gstest2 group by grouping sets ((a), (b)) having fals
-> Sort -> Sort
Sort Key: a Sort Key: a
-> Result -> Result
Replaces: Scan on gstest2
One-Time Filter: false One-Time Filter: false
(9 rows) (8 rows)
select a, b, count(*) from gstest2 group by grouping sets ((a), (b)) having false; select a, b, count(*) from gstest2 group by grouping sets ((a), (b)) having false;
a | b | count a | b | count