-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix havingqual processing for caggs #3430
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3430 +/- ##
==========================================
- Coverage 90.73% 90.71% -0.03%
==========================================
Files 212 212
Lines 36258 36267 +9
==========================================
- Hits 32900 32898 -2
- Misses 3358 3369 +11
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but can you add a test case for the situation you describe and add some clarifications to the comment so that it is easier to follow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
5260ebf
to
8075b07
Compare
If the targetlist for the cagg query has both subexprs and exprs from the having clause, the havingqual for the partial view is generated incorrectly. Fix this issue by checking havingqual against all the entries in the targetlist instead of first match. Fixes timescale#2655
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade since it is needed to support PostgreSQL 12.8 and 13.4. **Bugfixes** * timescale#3430 Fix havingqual processing for continuous aggregates * timescale#3468 Disable tests by default if tools are not found * timescale#3468 Fix crash while tracking alter table commands * timescale#3494 Improve error message when adding data nodes * timescale#3498 Fix continuous agg bgw job failure for PG 12.8 and 13.4 **Thanks** * @brianbenns for reporting a segfault with continuous aggregates
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade since it is needed to support PostgreSQL 12.8 and 13.4. **Bugfixes** * timescale#3430 Fix havingqual processing for continuous aggregates * timescale#3468 Disable tests by default if tools are not found * timescale#3468 Fix crash while tracking alter table commands * timescale#3494 Improve error message when adding data nodes * timescale#3498 Fix continuous agg bgw job failure for PG 12.8 and 13.4 **Thanks** * @brianbenns for reporting a segfault with continuous aggregates
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade since it is needed to support PostgreSQL 12.8 and 13.4. **Bugfixes** * timescale#3430 Fix havingqual processing for continuous aggregates * timescale#3468 Disable tests by default if tools are not found * timescale#3468 Fix crash while tracking alter table commands * timescale#3494 Improve error message when adding data nodes * timescale#3498 Fix continuous agg bgw job failure for PG 12.8 and 13.4 **Thanks** * @brianbenns for reporting a segfault with continuous aggregates
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade since it is needed to support PostgreSQL 12.8 and 13.4. **Bugfixes** * timescale#3430 Fix havingqual processing for continuous aggregates * timescale#3468 Disable tests by default if tools are not found * timescale#3468 Fix crash while tracking alter table commands * timescale#3494 Improve error message when adding data nodes * timescale#3498 Fix continuous agg bgw job failure for PG 12.8 and 13.4 **Thanks** * @brianbenns for reporting a segfault with continuous aggregates
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade since it is needed to support PostgreSQL 12.8 and 13.4. **Bugfixes** * timescale#3430 Fix havingqual processing for continuous aggregates * timescale#3468 Disable tests by default if tools are not found * timescale#3468 Fix crash while tracking alter table commands * timescale#3494 Improve error message when adding data nodes * timescale#3498 Fix continuous agg bgw job failure for PG 12.8 and 13.4 **Thanks** * @brianbenns for reporting a segfault with continuous aggregates
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade since it is needed to support PostgreSQL 12.8 and 13.4. **Bugfixes** * timescale#3430 Fix havingqual processing for continuous aggregates * timescale#3468 Disable tests by default if tools are not found * timescale#3468 Fix crash while tracking alter table commands * timescale#3494 Improve error message when adding data nodes * timescale#3498 Fix continuous agg bgw job failure for PG 12.8 and 13.4 **Thanks** * @brianbenns for reporting a segfault with continuous aggregates
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade since it is needed to support PostgreSQL 12.8 and 13.4. **Bugfixes** * timescale#3430 Fix havingqual processing for continuous aggregates * timescale#3468 Disable tests by default if tools are not found * timescale#3468 Fix crash while tracking alter table commands * timescale#3494 Improve error message when adding data nodes * timescale#3498 Fix continuous agg bgw job failure for PG 12.8 and 13.4 **Thanks** * @brianbenns for reporting a segfault with continuous aggregates
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade since it is needed to support PostgreSQL 12.8 and 13.4. **Bugfixes** * timescale#3430 Fix havingqual processing for continuous aggregates * timescale#3468 Disable tests by default if tools are not found * timescale#3468 Fix crash while tracking alter table commands * timescale#3494 Improve error message when adding data nodes * timescale#3498 Fix continuous agg bgw job failure for PG 12.8 and 13.4 **Thanks** * @brianbenns for reporting a segfault with continuous aggregates
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade since it is needed to support PostgreSQL 12.8 and 13.4. **Bugfixes** * timescale#3430 Fix havingqual processing for continuous aggregates * timescale#3468 Disable tests by default if tools are not found * timescale#3468 Fix crash while tracking alter table commands * timescale#3494 Improve error message when adding data nodes * timescale#3498 Fix continuous agg bgw job failure for PG 12.8 and 13.4 **Thanks** * @brianbenns for reporting a segfault with continuous aggregates
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade. The release fixes continous aggregate refresh for postgres 12.8 and 13.4, a crash with ALTER TABLE commands and a crash with continuous aggregates with HAVING clause. **Bugfixes** * timescale#3430 Fix havingqual processing for continuous aggregates * timescale#3468 Disable tests by default if tools are not found * timescale#3462 Fix crash while tracking alter table commands * timescale#3489 Fix continuous agg bgw job failure for PG 12.8 and 13.4 * timescale#3494 Improve error message when adding data nodes **Thanks** * @brianbenns for reporting a segfault with continuous aggregates * @brianbenns for reporting a segfault with continuous aggregates * @usego for reporting an issue with continuous aggregate refresh on PG 13.4
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade. The release fixes continous aggregate refresh for postgres 12.8 and 13.4, a crash with ALTER TABLE commands and a crash with continuous aggregates with HAVING clause. **Bugfixes** * #3430 Fix havingqual processing for continuous aggregates * #3468 Disable tests by default if tools are not found * #3462 Fix crash while tracking alter table commands * #3489 Fix continuous agg bgw job failure for PG 12.8 and 13.4 * #3494 Improve error message when adding data nodes **Thanks** * @brianbenns for reporting a segfault with continuous aggregates * @brianbenns for reporting a segfault with continuous aggregates * @usego for reporting an issue with continuous aggregate refresh on PG 13.4
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade. The release fixes continous aggregate refresh for postgres 12.8 and 13.4, a crash with ALTER TABLE commands and a crash with continuous aggregates with HAVING clause. **Bugfixes** * timescale#3430 Fix havingqual processing for continuous aggregates * timescale#3468 Disable tests by default if tools are not found * timescale#3462 Fix crash while tracking alter table commands * timescale#3489 Fix continuous agg bgw job failure for PG 12.8 and 13.4 * timescale#3494 Improve error message when adding data nodes **Thanks** * @brianbenns for reporting a segfault with continuous aggregates * @brianbenns for reporting a segfault with continuous aggregates * @usego for reporting an issue with continuous aggregate refresh on PG 13.4
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade. The release fixes continous aggregate refresh for postgres 12.8 and 13.4, a crash with ALTER TABLE commands and a crash with continuous aggregates with HAVING clause. **Bugfixes** * #3430 Fix havingqual processing for continuous aggregates * #3468 Disable tests by default if tools are not found * #3462 Fix crash while tracking alter table commands * #3489 Fix continuous agg bgw job failure for PG 12.8 and 13.4 * #3494 Improve error message when adding data nodes **Thanks** * @brianbenns for reporting a segfault with continuous aggregates * @usego for reporting an issue with continuous aggregate refresh on PG 13.4
This release contains bug fixes since the 2.4.0 release. We deem it high priority to upgrade. The release fixes continous aggregate refresh for postgres 12.8 and 13.4, a crash with ALTER TABLE commands and a crash with continuous aggregates with HAVING clause. **Bugfixes** * #3430 Fix havingqual processing for continuous aggregates * #3468 Disable tests by default if tools are not found * #3462 Fix crash while tracking alter table commands * #3489 Fix continuous agg bgw job failure for PG 12.8 and 13.4 * #3494 Improve error message when adding data nodes **Thanks** * @brianbenns for reporting a segfault with continuous aggregates * @brianbenns for reporting a segfault with continuous aggregates * @usego for reporting an issue with continuous aggregate refresh on PG 13.4
If the targetlist for the cagg query has both subexprs and exprs
from the having clause, the havingqual for the partial view
is generated incorrectly. Fix this issue by checking havingqual
against all the entries in the targetlist instead of first match.
Fixes #2655