Skip to content
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

Block REFRESH MATERIALIZED VIEW on caggs #2464

Merged
merged 1 commit into from Sep 29, 2020

Conversation

svenklemm
Copy link
Member

No description provided.

@svenklemm svenklemm requested a review from a team as a code owner September 28, 2020 23:15
@svenklemm svenklemm requested review from erimatnor, mkindahl and k-rus and removed request for a team September 28, 2020 23:15
@svenklemm svenklemm force-pushed the fresh_mat_view branch 3 times, most recently from 5a3d452 to 11cd2d0 Compare September 28, 2020 23:51
@codecov
Copy link

codecov bot commented Sep 29, 2020

Codecov Report

Merging #2464 into master will increase coverage by 0.12%.
The diff coverage is 90.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2464      +/-   ##
==========================================
+ Coverage   89.99%   90.12%   +0.12%     
==========================================
  Files         213      213              
  Lines       34406    34350      -56     
==========================================
- Hits        30964    30958       -6     
+ Misses       3442     3392      -50     
Impacted Files Coverage Δ
src/copy.c 87.86% <ø> (-0.20%) ⬇️
src/indexing.c 94.87% <ø> (ø)
src/planner.c 93.80% <ø> (ø)
tsl/src/remote/dist_ddl.c 98.66% <ø> (ø)
src/process_utility.c 93.68% <80.00%> (-0.02%) ⬇️
src/cache_invalidate.c 84.44% <100.00%> (+0.72%) ⬆️
src/loader/bgw_launcher.c 89.53% <100.00%> (ø)
tsl/src/compression/create.c 95.38% <100.00%> (ø)
tsl/src/continuous_aggs/create.c 96.91% <100.00%> (ø)
src/import/planner.c 70.30% <0.00%> (+11.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 98e1aa2...a566f85. Read the comment docs.

Comment on lines +3405 to +3412
if (cagg)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("operation not supported on continuous aggregate"),
errdetail("A continuous aggregate does not support REFRESH MATERIALIZED VIEW."),
errhint("Use \"refresh_continuous_aggregate\" or set up a policy to refresh the "
"continuous aggregate.")));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No test coverage for this piece of code. Add a test?

Comment on lines 240 to 242
-- Test that REFRESH MATERIALIZED VIEW works as an alternative to
-- refresh_continuous_aggregate()
REFRESH MATERIALIZED VIEW weekly_temp_without_data;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could keep this REFRESH and just check that it generates an error.

Copy link
Contributor

@k-rus k-rus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I support that there should be a test for calling REFRESH MATERIALIZED VIEW and getting the error message.

Copy link
Contributor

@pmwkaa pmwkaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like missing the error case as @mkindahl pointed out

@svenklemm svenklemm force-pushed the fresh_mat_view branch 4 times, most recently from 670d38e to f37eb1c Compare September 29, 2020 13:57
@svenklemm svenklemm merged commit db0e210 into timescale:master Sep 29, 2020
@svenklemm svenklemm deleted the fresh_mat_view branch April 18, 2021 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants