@@ -1365,19 +1365,19 @@ explain (costs off)
1365
1365
-- e.g. due to an index scan.
1366
1366
BEGIN;
1367
1367
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
1372
1372
Sort Key: a, b
1373
- -> GroupAggregate (cost=1.03..1.14 rows=5 width=24)
1373
+ -> GroupAggregate
1374
1374
Group Key: a
1375
1375
Group Key: ()
1376
1376
Sort Key: b
1377
1377
Group Key: b
1378
- -> Sort (cost=1.03..1.03 rows=2 width=8)
1378
+ -> Sort
1379
1379
Sort Key: a
1380
- -> Seq Scan on gstest3 (cost=0.00..1.02 rows=2 width=8)
1380
+ -> Seq Scan on gstest3
1381
1381
(10 rows)
1382
1382
1383
1383
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
1391
(5 rows)
1392
1392
1393
1393
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
1398
1398
Sort Key: a, b
1399
- -> GroupAggregate (cost=0.13..12.26 rows=5 width=24)
1399
+ -> GroupAggregate
1400
1400
Group Key: a
1401
1401
Group Key: ()
1402
1402
Sort Key: b
1403
1403
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
1405
1405
(8 rows)
1406
1406
1407
1407
SELECT a, b, count(*), max(a), max(b) FROM gstest3 GROUP BY GROUPING SETS(a, b,()) ORDER BY a, b;
0 commit comments