Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f63d9e68
Commit
f63d9e68
authored
Jul 25, 2019
by
Andres Freund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing (COSTS OFF) to EXPLAIN added in previous commit.
Backpatch: 12-, like the previous commit
parent
af3deff3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
src/test/regress/expected/groupingsets.out
src/test/regress/expected/groupingsets.out
+13
-13
src/test/regress/sql/groupingsets.sql
src/test/regress/sql/groupingsets.sql
+2
-2
No files found.
src/test/regress/expected/groupingsets.out
View file @
f63d9e68
...
...
@@ -1365,19 +1365,19 @@ explain (costs off)
-- e.g. due to an index scan.
BEGIN;
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;
QUERY PLAN
---------------------------------------
----------------------------------
Sort
(cost=1.20..1.21 rows=5 width=24)
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
---------------------------------------
Sort
Sort Key: a, b
-> GroupAggregate
(cost=1.03..1.14 rows=5 width=24)
-> GroupAggregate
Group Key: a
Group Key: ()
Sort Key: b
Group Key: b
-> Sort
(cost=1.03..1.03 rows=2 width=8)
-> Sort
Sort Key: a
-> Seq Scan on gstest3
(cost=0.00..1.02 rows=2 width=8)
-> Seq Scan on gstest3
(10 rows)
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,(
(5 rows)
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;
QUERY PLAN
------------------------------------------------------
-----------------------------------
Sort
(cost=12.32..12.33 rows=5 width=24)
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
------------------------------------------------------
Sort
Sort Key: a, b
-> GroupAggregate
(cost=0.13..12.26 rows=5 width=24)
-> GroupAggregate
Group Key: a
Group Key: ()
Sort 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)
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
View file @
f63d9e68
...
...
@@ -389,10 +389,10 @@ explain (costs off)
-- e.g. due to an index scan.
BEGIN
;
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
;
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
;
COMMIT
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment