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
dfaf9fbc
Commit
dfaf9fbc
authored
Jun 06, 1999
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a regression test case to catch breakage of GROUP BY
and aggregate functions in queries that use inheritance.
parent
b4210ae0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
src/test/regress/input/misc.source
src/test/regress/input/misc.source
+7
-0
src/test/regress/output/misc.source
src/test/regress/output/misc.source
+17
-0
No files found.
src/test/regress/input/misc.source
View file @
dfaf9fbc
...
...
@@ -100,6 +100,13 @@ SELECT class, c FROM e_star* x WHERE x.c NOTNULL;
SELECT * FROM f_star* x WHERE x.c ISNULL;
-- grouping and aggregation on inherited sets have been busted in the past...
SELECT sum(a) FROM a_star*;
SELECT class, sum(a) FROM a_star* GROUP BY class;
ALTER TABLE f_star RENAME COLUMN f TO ff;
ALTER TABLE e_star* RENAME COLUMN e TO ee;
...
...
src/test/regress/output/misc.source
View file @
dfaf9fbc
...
...
@@ -178,6 +178,23 @@ f | | | |((11111111,33333333),(22222222,44444444))
f | | | |
(8 rows)
QUERY: SELECT sum(a) FROM a_star*;
sum
---
355
(1 row)
QUERY: SELECT class, sum(a) FROM a_star* GROUP BY class;
class|sum
-----+---
a | 3
b | 7
c | 11
d | 84
e | 66
f |184
(6 rows)
QUERY: ALTER TABLE f_star RENAME COLUMN f TO ff;
QUERY: ALTER TABLE e_star* RENAME COLUMN e TO ee;
QUERY: ALTER TABLE d_star* RENAME COLUMN d TO dd;
...
...
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