From 79afa35014e4bb00d299c9fae28ee1003268c8b9 Mon Sep 17 00:00:00 2001 From: Adrian Coveney Date: Tue, 3 Dec 2024 11:36:36 +0000 Subject: [PATCH] Update server-extra partitions for next few years --- schemas/server-extra.sql | 102 +++++++++++++++++++-------------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/schemas/server-extra.sql b/schemas/server-extra.sql index 3b5056f01..b600efca8 100644 --- a/schemas/server-extra.sql +++ b/schemas/server-extra.sql @@ -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 );