| Bug #30346 | Support INTERVAL Partition Type | ||
|---|---|---|---|
| Submitted: | 9 Aug 2007 23:03 | Modified: | 4 Jun 2010 13:43 |
| Reporter: | Andrew A | Email Updates: | |
| Status: | Won't fix | Impact on me: | |
| Category: | MySQL Server: Partitions | Severity: | S4 (Feature request) |
| Version: | OS: | Any | |
| Assigned to: | Mattias Jonsson | CPU Architecture: | Any |
| Tags: | interval, partition, partitioning | ||
[9 Aug 2007 23:03]
Andrew A
[9 Aug 2007 23:13]
MySQL Verification Team
Thank you for the bug report feature request.
[27 Aug 2008 8:54]
Mikael Ronström
No current plans for this feature
[12 Jan 2009 11:32]
Mattias Jonsson
Marked bug#40372 as a duplicate of this.
[4 Jun 2010 13:43]
Andrew A
I thought I'd give this a bump :)
There have been some great new partitioning changes with each new release.
Is it possible to re-consider the 'interval' keyword for RANGE partitioning?
It would /dramatically/ simplify client software by allowing the database to automatically create these partitions instead of having to do it manually.
It would allow us to do something like:
CREATE TABLE trb3 (id INT, name VARCHAR(50), purchased DATE)
PARTITION BY RANGE( YEAR(purchased) ) (
PARTITION p0 VALUES LESS THAN (1990),
PARTITION p1 VALUES LESS THAN (1995),
PARTITION p2 VALUES LESS THAN (2000),
PARTITION p3 VALUES LESS THAN (2005)
) INTERVAL 5;
The simple addition of 'INTERVAL 5' (or for example, INTERVAL TO_DAYS(30)) would mean a new partition is made for every 5 year's after the last partition etc.
It would be a welcomed and awesome feature if there's room for it to be implemented.
Thanks
