Skip to content

Commit f63d9e6

Browse files
committed
Add missing (COSTS OFF) to EXPLAIN added in previous commit.
Backpatch: 12-, like the previous commit
1 parent af3deff commit f63d9e6

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/test/regress/expected/groupingsets.out

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,19 +1365,19 @@ explain (costs off)
13651365
-- e.g. due to an index scan.
13661366
BEGIN;
13671367
SET LOCAL enable_hashagg = false;
1368-
EXPLAIN SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
1369-
QUERY PLAN
1370-
-------------------------------------------------------------------------
1371-
Sort (cost=1.20..1.21 rows=5 width=24)
1368+
EXPLAIN (COSTS OFF) SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
1369+
QUERY PLAN
1370+
---------------------------------------
1371+
Sort
13721372
Sort Key: a, b
1373-
-> GroupAggregate (cost=1.03..1.14 rows=5 width=24)
1373+
-> GroupAggregate
13741374
Group Key: a
13751375
Group Key: ()
13761376
Sort Key: b
13771377
Group Key: b
1378-
-> Sort (cost=1.03..1.03 rows=2 width=8)
1378+
-> Sort
13791379
Sort Key: a
1380-
-> Seq Scan on gstest3 (cost=0.00..1.02 rows=2 width=8)
1380+
-> Seq Scan on gstest3
13811381
(10 rows)
13821382

13831383
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,(
13911391
(5 rows)
13921392

13931393
SET LOCAL enable_seqscan = false;
1394-
EXPLAIN SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
1395-
QUERY PLAN
1396-
-----------------------------------------------------------------------------------------
1397-
Sort (cost=12.32..12.33 rows=5 width=24)
1394+
EXPLAIN (COSTS OFF) SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
1395+
QUERY PLAN
1396+
------------------------------------------------------
1397+
Sort
13981398
Sort Key: a, b
1399-
-> GroupAggregate (cost=0.13..12.26 rows=5 width=24)
1399+
-> GroupAggregate
14001400
Group Key: a
14011401
Group Key: ()
14021402
Sort Key: b
14031403
Group Key: b
1404-
-> Index Scan using gstest3_pkey on gstest3 (cost=0.13..12.16 rows=2 width=8)
1404+
-> Index Scan using gstest3_pkey on gstest3
14051405
(8 rows)
14061406

14071407
SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;

src/test/regress/sql/groupingsets.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,10 @@ explain (costs off)
389389
-- e.g. due to an index scan.
390390
BEGIN;
391391
SET LOCAL enable_hashagg = false;
392-
EXPLAIN SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
392+
EXPLAIN (COSTS OFF) SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
393393
SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
394394
SET LOCAL enable_seqscan = false;
395-
EXPLAIN SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
395+
EXPLAIN (COSTS OFF) SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
396396
SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
397397
COMMIT;
398398

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy