-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
68 additions
and
2 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 |
---|---|---|
|
@@ -11,7 +11,8 @@ CREATE TABLE @[email protected]_config( | |
compression_duration interval, | ||
CONSTRAINT policy_duration_order_check | ||
CHECK(compression_duration < tier_duration | ||
AND tier_duration < retention_duration)); | ||
AND tier_duration < retention_duration | ||
AND compression_duration < retention_duration)); | ||
|
||
-- Enhances an existing table with our time-series best practices. Basically | ||
-- the entry point to this extension. Minimally, a user must create a table | ||
|
@@ -706,7 +707,9 @@ BEGIN | |
part_row.partition_tablename); | ||
|
||
IF part_end < (now() - comp_offset) THEN | ||
EXECUTE SELECT tier.table(target_table_id); | ||
EXECUTE 'SELECT tier.table(' || | ||
chr(39)|| part_row.partition_schemaname || '.' || part_row.partition_tablename || | ||
chr(39)|| ')'; | ||
END IF; | ||
END LOOP; | ||
END; | ||
|
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