-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API changes for add_continuous_aggregate_policy
- Loading branch information
1 parent
a6f82d2
commit d8a3abb
Showing
12 changed files
with
156 additions
and
35 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 |
---|---|---|
|
@@ -81,12 +81,16 @@ CREATE OR REPLACE PROCEDURE @[email protected]_columnstore_policy( | |
|
||
/* continuous aggregates policy */ | ||
CREATE OR REPLACE FUNCTION @[email protected]_continuous_aggregate_policy( | ||
continuous_aggregate REGCLASS, start_offset "any", | ||
end_offset "any", schedule_interval INTERVAL, | ||
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 | ||
include_tiered_data BOOL = NULL, | ||
nbuckets_per_batch INTEGER = NULL, | ||
max_batches_per_job_execution INTEGER = 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 |
---|---|---|
|
@@ -66,3 +66,32 @@ CREATE INDEX compression_settings_compress_relid_idx ON _timescaledb_catalog.com | |
DROP TABLE _timescaledb_catalog.tempsettings CASCADE; | ||
GRANT SELECT ON _timescaledb_catalog.compression_settings TO PUBLIC; | ||
SELECT pg_catalog.pg_extension_config_dump('_timescaledb_catalog.compression_settings', ''); | ||
|
||
|
||
-- New add_continuous_aggregate_policy API for incremental refresh 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, | ||
include_tiered_data BOOL = NULL, | ||
nbuckets_per_batch INTEGER = NULL, | ||
max_batches_per_job_execution INTEGER = 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 |
---|---|---|
|
@@ -39,3 +39,31 @@ FROM | |
DROP TABLE _timescaledb_catalog.tempsettings CASCADE; | ||
GRANT SELECT ON _timescaledb_catalog.compression_settings TO PUBLIC; | ||
SELECT pg_catalog.pg_extension_config_dump('_timescaledb_catalog.compression_settings', ''); | ||
|
||
-- Revert add_continuous_aggregate_policy API for incremental refresh policy | ||
DROP FUNCTION IF EXISTS @[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, | ||
nbuckets_per_batch INTEGER = NULL, | ||
max_batches_per_job_execution INTEGER = NULL | ||
); | ||
|
||
-- 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
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.