Skip to content

Commit

Permalink
Update server-extra partitions for next few years
Browse files Browse the repository at this point in the history
  • Loading branch information
tofu-rocketry committed Dec 3, 2024
1 parent aa5cc4e commit 79afa35
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions schemas/server-extra.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,63 +7,63 @@
-- More partitions can be added by "reorganizing" the pDefault parition. E.g.:
/*
ALTER TABLE JobRecords REORGANIZE PARTITION pDefault INTO (
PARTITION p2016_01 VALUES LESS THAN (TO_DAYS('2016-02-01')),
PARTITION p2016_02 VALUES LESS THAN (TO_DAYS('2016-03-01')),
PARTITION p2016_03 VALUES LESS THAN (TO_DAYS('2016-04-01')),
PARTITION p2024_01 VALUES LESS THAN (TO_DAYS('2024-02-01')),
PARTITION p2024_02 VALUES LESS THAN (TO_DAYS('2024-03-01')),
PARTITION p2024_03 VALUES LESS THAN (TO_DAYS('2024-04-01')),
PARTITION pDefault VALUES LESS THAN MAXVALUE
);
*/

ALTER TABLE JobRecords
PARTITION BY RANGE (TO_DAYS(EndTime)) (
PARTITION p2015_01 VALUES LESS THAN (TO_DAYS('2015-02-01')),
PARTITION p2015_02 VALUES LESS THAN (TO_DAYS('2015-03-01')),
PARTITION p2015_03 VALUES LESS THAN (TO_DAYS('2015-04-01')),
PARTITION p2015_04 VALUES LESS THAN (TO_DAYS('2015-05-01')),
PARTITION p2015_05 VALUES LESS THAN (TO_DAYS('2015-06-01')),
PARTITION p2015_06 VALUES LESS THAN (TO_DAYS('2015-07-01')),
PARTITION p2015_07 VALUES LESS THAN (TO_DAYS('2015-08-01')),
PARTITION p2015_08 VALUES LESS THAN (TO_DAYS('2015-09-01')),
PARTITION p2015_09 VALUES LESS THAN (TO_DAYS('2015-10-01')),
PARTITION p2015_10 VALUES LESS THAN (TO_DAYS('2015-11-01')),
PARTITION p2015_11 VALUES LESS THAN (TO_DAYS('2015-12-01')),
PARTITION p2015_12 VALUES LESS THAN (TO_DAYS('2016-01-01')),
PARTITION p2016_01 VALUES LESS THAN (TO_DAYS('2016-02-01')),
PARTITION p2016_02 VALUES LESS THAN (TO_DAYS('2016-03-01')),
PARTITION p2016_03 VALUES LESS THAN (TO_DAYS('2016-04-01')),
PARTITION p2016_04 VALUES LESS THAN (TO_DAYS('2016-05-01')),
PARTITION p2016_05 VALUES LESS THAN (TO_DAYS('2016-06-01')),
PARTITION p2016_06 VALUES LESS THAN (TO_DAYS('2016-07-01')),
PARTITION p2016_07 VALUES LESS THAN (TO_DAYS('2016-08-01')),
PARTITION p2016_08 VALUES LESS THAN (TO_DAYS('2016-09-01')),
PARTITION p2016_09 VALUES LESS THAN (TO_DAYS('2016-10-01')),
PARTITION p2016_10 VALUES LESS THAN (TO_DAYS('2016-11-01')),
PARTITION p2016_11 VALUES LESS THAN (TO_DAYS('2016-12-01')),
PARTITION p2016_12 VALUES LESS THAN (TO_DAYS('2017-01-01')),
PARTITION p2017_01 VALUES LESS THAN (TO_DAYS('2017-02-01')),
PARTITION p2017_02 VALUES LESS THAN (TO_DAYS('2017-03-01')),
PARTITION p2017_03 VALUES LESS THAN (TO_DAYS('2017-04-01')),
PARTITION p2017_04 VALUES LESS THAN (TO_DAYS('2017-05-01')),
PARTITION p2017_05 VALUES LESS THAN (TO_DAYS('2017-06-01')),
PARTITION p2017_06 VALUES LESS THAN (TO_DAYS('2017-07-01')),
PARTITION p2017_07 VALUES LESS THAN (TO_DAYS('2017-08-01')),
PARTITION p2017_08 VALUES LESS THAN (TO_DAYS('2017-09-01')),
PARTITION p2017_09 VALUES LESS THAN (TO_DAYS('2017-10-01')),
PARTITION p2017_10 VALUES LESS THAN (TO_DAYS('2017-11-01')),
PARTITION p2017_11 VALUES LESS THAN (TO_DAYS('2017-12-01')),
PARTITION p2017_12 VALUES LESS THAN (TO_DAYS('2018-01-01')),
PARTITION p2018_01 VALUES LESS THAN (TO_DAYS('2018-02-01')),
PARTITION p2018_02 VALUES LESS THAN (TO_DAYS('2018-03-01')),
PARTITION p2018_03 VALUES LESS THAN (TO_DAYS('2018-04-01')),
PARTITION p2018_04 VALUES LESS THAN (TO_DAYS('2018-05-01')),
PARTITION p2018_05 VALUES LESS THAN (TO_DAYS('2018-06-01')),
PARTITION p2018_06 VALUES LESS THAN (TO_DAYS('2018-07-01')),
PARTITION p2018_07 VALUES LESS THAN (TO_DAYS('2018-08-01')),
PARTITION p2018_08 VALUES LESS THAN (TO_DAYS('2018-09-01')),
PARTITION p2018_09 VALUES LESS THAN (TO_DAYS('2018-10-01')),
PARTITION p2018_10 VALUES LESS THAN (TO_DAYS('2018-11-01')),
PARTITION p2018_11 VALUES LESS THAN (TO_DAYS('2018-12-01')),
PARTITION p2018_12 VALUES LESS THAN (TO_DAYS('2019-01-01')),
PARTITION p2023_01 VALUES LESS THAN (TO_DAYS('2023-02-01')),
PARTITION p2023_02 VALUES LESS THAN (TO_DAYS('2023-03-01')),
PARTITION p2023_03 VALUES LESS THAN (TO_DAYS('2023-04-01')),
PARTITION p2023_04 VALUES LESS THAN (TO_DAYS('2023-05-01')),
PARTITION p2023_05 VALUES LESS THAN (TO_DAYS('2023-06-01')),
PARTITION p2023_06 VALUES LESS THAN (TO_DAYS('2023-07-01')),
PARTITION p2023_07 VALUES LESS THAN (TO_DAYS('2023-08-01')),
PARTITION p2023_08 VALUES LESS THAN (TO_DAYS('2023-09-01')),
PARTITION p2023_09 VALUES LESS THAN (TO_DAYS('2023-10-01')),
PARTITION p2023_10 VALUES LESS THAN (TO_DAYS('2023-11-01')),
PARTITION p2023_11 VALUES LESS THAN (TO_DAYS('2023-12-01')),
PARTITION p2023_12 VALUES LESS THAN (TO_DAYS('2024-01-01')),
PARTITION p2024_01 VALUES LESS THAN (TO_DAYS('2024-02-01')),
PARTITION p2024_02 VALUES LESS THAN (TO_DAYS('2024-03-01')),
PARTITION p2024_03 VALUES LESS THAN (TO_DAYS('2024-04-01')),
PARTITION p2024_04 VALUES LESS THAN (TO_DAYS('2024-05-01')),
PARTITION p2024_05 VALUES LESS THAN (TO_DAYS('2024-06-01')),
PARTITION p2024_06 VALUES LESS THAN (TO_DAYS('2024-07-01')),
PARTITION p2024_07 VALUES LESS THAN (TO_DAYS('2024-08-01')),
PARTITION p2024_08 VALUES LESS THAN (TO_DAYS('2024-09-01')),
PARTITION p2024_09 VALUES LESS THAN (TO_DAYS('2024-10-01')),
PARTITION p2024_10 VALUES LESS THAN (TO_DAYS('2024-11-01')),
PARTITION p2024_11 VALUES LESS THAN (TO_DAYS('2024-12-01')),
PARTITION p2024_12 VALUES LESS THAN (TO_DAYS('2025-01-01')),
PARTITION p2025_01 VALUES LESS THAN (TO_DAYS('2025-02-01')),
PARTITION p2025_02 VALUES LESS THAN (TO_DAYS('2025-03-01')),
PARTITION p2025_03 VALUES LESS THAN (TO_DAYS('2025-04-01')),
PARTITION p2025_04 VALUES LESS THAN (TO_DAYS('2025-05-01')),
PARTITION p2025_05 VALUES LESS THAN (TO_DAYS('2025-06-01')),
PARTITION p2025_06 VALUES LESS THAN (TO_DAYS('2025-07-01')),
PARTITION p2025_07 VALUES LESS THAN (TO_DAYS('2025-08-01')),
PARTITION p2025_08 VALUES LESS THAN (TO_DAYS('2025-09-01')),
PARTITION p2025_09 VALUES LESS THAN (TO_DAYS('2025-10-01')),
PARTITION p2025_10 VALUES LESS THAN (TO_DAYS('2025-11-01')),
PARTITION p2025_11 VALUES LESS THAN (TO_DAYS('2025-12-01')),
PARTITION p2025_12 VALUES LESS THAN (TO_DAYS('2026-01-01')),
PARTITION p2026_01 VALUES LESS THAN (TO_DAYS('2026-02-01')),
PARTITION p2026_02 VALUES LESS THAN (TO_DAYS('2026-03-01')),
PARTITION p2026_03 VALUES LESS THAN (TO_DAYS('2026-04-01')),
PARTITION p2026_04 VALUES LESS THAN (TO_DAYS('2026-05-01')),
PARTITION p2026_05 VALUES LESS THAN (TO_DAYS('2026-06-01')),
PARTITION p2026_06 VALUES LESS THAN (TO_DAYS('2026-07-01')),
PARTITION p2026_07 VALUES LESS THAN (TO_DAYS('2026-08-01')),
PARTITION p2026_08 VALUES LESS THAN (TO_DAYS('2026-09-01')),
PARTITION p2026_09 VALUES LESS THAN (TO_DAYS('2026-10-01')),
PARTITION p2026_10 VALUES LESS THAN (TO_DAYS('2026-11-01')),
PARTITION p2026_11 VALUES LESS THAN (TO_DAYS('2026-12-01')),
PARTITION p2026_12 VALUES LESS THAN (TO_DAYS('2027-01-01')),
PARTITION pDefault VALUES LESS THAN MAXVALUE
);

Expand Down

0 comments on commit 79afa35

Please sign in to comment.