[MDEV-21003] Per-partition INTERVAL for history partitions Created: 2019-11-07  Updated: 2023-09-25

Status: Open
Project: MariaDB Server
Component/s: Partitioning, Versioned Tables
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Aleksey Midenkov Assignee: Aleksey Midenkov
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-17553 Enable setting start datetime for int... Closed
relates to MDEV-17554 Auto-create history partitions for sy... Closed
relates to MDEV-29280 wrong metadata definition Closed

 Description   

As per this comment of MDEV-17553 allow multiple intervals on per-partition basis.

Allow ALTER command to set new rotation INTERVAL while keeping old partitions intact. This involves storing of start timestamp and interval for each partition for pruning to work correctly. The new INTERVAL should be applied to unused partitions as well as to auto-created ones.

When partitions listed explicitly in CREATE TABLE, allow explicit setting of STARTS and INTERVAL per each partition. This information must be reflected in SHOW CREATE (and after ALTER changing the INTERVAL). INFORMATION_SCHEMA should display effective INTERVAL and STARTS per each partition.


Generated at Thu Feb 08 09:03:51 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.