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
Rename continuous aggregate policy API (+restructure) #2368
Conversation
3ca204f
to
08df8ae
Compare
Codecov Report
@@ Coverage Diff @@
## master #2368 +/- ##
==========================================
- Coverage 90.38% 90.33% -0.05%
==========================================
Files 213 213
Lines 34825 34900 +75
==========================================
+ Hits 31476 31528 +52
- Misses 3349 3372 +23
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.
Lots tab->space changes in the diff, would be good if we could prevent that by enforcing that style in CI
I agree, this mostly applies to SQL code though and we've talked about enforcing a standard formatter. Let's do that. In the meantime, I'll try to clean things up for this commit. |
08df8ae
to
05b0cef
Compare
This change simplifies the name of the functions for adding and removing a continuous aggregate policy. The functions are renamed from: - `add_refresh_continuous_aggregate_policy` - `remove_refresh_continuous_aggregate_policy` to - `add_continuous_aggregate_policy` - `remove_continuous_aggregate_policy` Fixes timescale#2320
This moves the SQL definitions for policy and job APIs to their separate files to improve code structure. Previously, all of these user-visible API functions were located in the `bgw_scheduler.sql` file, mixing internal and public functions and APIs. To improved the structure, all API-related functions are now located in their own distinct SQL files that have the `_api.sql` file ending. Internal policy functions have been moved to `policy_internal.sql`.
05b0cef
to
3d4e442
Compare
This PR contains two commits:
The first change simplifies the name of the functions for adding and
removing a continuous aggregate policy. The functions are renamed from:
add_refresh_continuous_aggregate_policy
remove_refresh_continuous_aggregate_policy
to
add_continuous_aggregate_policy
remove_continuous_aggregate_policy
The second change restructures the SQL API for policies and jobs.
The SQL definitions for policy and job APIs are moved to their
separate files to improve code structure. Previously, all of these
user-visible API functions were located in the
bgw_scheduler.sql
file, mixing internal and public functions and APIs.
To improved the structure, all API-related functions are now located
in their own distinct SQL files that have the
_api.sql
fileending. Internal policy functions have been moved to
policy_internal.sql
.Fixes #2320