Commit f63d9e68 authored by Andres Freund's avatar Andres Freund

Add missing (COSTS OFF) to EXPLAIN added in previous commit.

Backpatch: 12-, like the previous commit
parent af3deff3
...@@ -1365,19 +1365,19 @@ explain (costs off) ...@@ -1365,19 +1365,19 @@ explain (costs off)
-- e.g. due to an index scan. -- e.g. due to an index scan.
BEGIN; BEGIN;
SET LOCAL enable_hashagg = false; SET LOCAL enable_hashagg = false;
EXPLAIN SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b; EXPLAIN (COSTS OFF) SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
QUERY PLAN QUERY PLAN
------------------------------------------------------------------------- ---------------------------------------
Sort (cost=1.20..1.21 rows=5 width=24) Sort
Sort Key: a, b Sort Key: a, b
-> GroupAggregate (cost=1.03..1.14 rows=5 width=24) -> GroupAggregate
Group Key: a Group Key: a
Group Key: () Group Key: ()
Sort Key: b Sort Key: b
Group Key: b Group Key: b
-> Sort (cost=1.03..1.03 rows=2 width=8) -> Sort
Sort Key: a Sort Key: a
-> Seq Scan on gstest3 (cost=0.00..1.02 rows=2 width=8) -> Seq Scan on gstest3
(10 rows) (10 rows)
SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b; SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
...@@ -1391,17 +1391,17 @@ SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,( ...@@ -1391,17 +1391,17 @@ SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,(
(5 rows) (5 rows)
SET LOCAL enable_seqscan = false; SET LOCAL enable_seqscan = false;
EXPLAIN SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b; EXPLAIN (COSTS OFF) SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
QUERY PLAN QUERY PLAN
----------------------------------------------------------------------------------------- ------------------------------------------------------
Sort (cost=12.32..12.33 rows=5 width=24) Sort
Sort Key: a, b Sort Key: a, b
-> GroupAggregate (cost=0.13..12.26 rows=5 width=24) -> GroupAggregate
Group Key: a Group Key: a
Group Key: () Group Key: ()
Sort Key: b Sort Key: b
Group Key: b Group Key: b
-> Index Scan using gstest3_pkey on gstest3 (cost=0.13..12.16 rows=2 width=8) -> Index Scan using gstest3_pkey on gstest3
(8 rows) (8 rows)
SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b; SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
......
...@@ -389,10 +389,10 @@ explain (costs off) ...@@ -389,10 +389,10 @@ explain (costs off)
-- e.g. due to an index scan. -- e.g. due to an index scan.
BEGIN; BEGIN;
SET LOCAL enable_hashagg = false; SET LOCAL enable_hashagg = false;
EXPLAIN SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b; EXPLAIN (COSTS OFF) SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b; SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
SET LOCAL enable_seqscan = false; SET LOCAL enable_seqscan = false;
EXPLAIN SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b; EXPLAIN (COSTS OFF) SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b; SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
COMMIT; COMMIT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment