-
Notifications
You must be signed in to change notification settings - Fork 898
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
include_tiered_data
option to cagg policy
The `include_tiered_data` option allows user to override the value of `timescaledb.enable_tiered_reads` defined on instance level for a particular continuous aggregate policy.
- Loading branch information
Showing
14 changed files
with
297 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Implements: #7587 Add `include_tiered_data` parameter to `add_continuous_aggregate_policy` API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,8 @@ CREATE OR REPLACE FUNCTION @[email protected]_continuous_aggregate_policy( | |
end_offset "any", schedule_interval INTERVAL, | ||
if_not_exists BOOL = false, | ||
initial_start TIMESTAMPTZ = NULL, | ||
timezone TEXT = NULL | ||
timezone TEXT = NULL, | ||
include_tiered_data BOOL = NULL | ||
) | ||
RETURNS INTEGER | ||
AS '@MODULE_PATHNAME@', 'ts_policy_refresh_cagg_add' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,3 +125,22 @@ CREATE PROCEDURE @[email protected]_continuous_aggregate( | |
force BOOLEAN = FALSE | ||
) LANGUAGE C AS '@MODULE_PATHNAME@', 'ts_update_placeholder'; | ||
|
||
-- Add `include_tiered_data` argument to `add_continuous_aggregate_policy` | ||
DROP FUNCTION @[email protected]_continuous_aggregate_policy( | ||
continuous_aggregate REGCLASS, start_offset "any", | ||
end_offset "any", schedule_interval INTERVAL, | ||
if_not_exists BOOL, | ||
initial_start TIMESTAMPTZ, | ||
timezone TEXT | ||
); | ||
CREATE FUNCTION @[email protected]_continuous_aggregate_policy( | ||
continuous_aggregate REGCLASS, start_offset "any", | ||
end_offset "any", schedule_interval INTERVAL, | ||
if_not_exists BOOL = false, | ||
initial_start TIMESTAMPTZ = NULL, | ||
timezone TEXT = NULL, | ||
include_tiered_data BOOL = NULL | ||
) | ||
RETURNS INTEGER | ||
AS '@MODULE_PATHNAME@', 'ts_update_placeholder' | ||
LANGUAGE C VOLATILE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,3 +67,23 @@ CREATE PROCEDURE @[email protected]_continuous_aggregate( | |
window_start "any", | ||
window_end "any" | ||
) LANGUAGE C AS '@MODULE_PATHNAME@', 'ts_continuous_agg_refresh'; | ||
|
||
-- Remove `include_tiered_data` argument from `add_continuous_aggregate_policy` | ||
DROP FUNCTION @[email protected]_continuous_aggregate_policy( | ||
continuous_aggregate REGCLASS, start_offset "any", | ||
end_offset "any", schedule_interval INTERVAL, | ||
if_not_exists BOOL, | ||
initial_start TIMESTAMPTZ, | ||
timezone TEXT, | ||
include_tiered_data BOOL | ||
); | ||
CREATE FUNCTION @[email protected]_continuous_aggregate_policy( | ||
continuous_aggregate REGCLASS, start_offset "any", | ||
end_offset "any", schedule_interval INTERVAL, | ||
if_not_exists BOOL = false, | ||
initial_start TIMESTAMPTZ = NULL, | ||
timezone TEXT = NULL | ||
) | ||
RETURNS INTEGER | ||
AS '@MODULE_PATHNAME@', 'ts_policy_refresh_cagg_add' | ||
LANGUAGE C VOLATILE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.