Note: If there is in fact a way to disable auto-partitioning, please make it a documentation request, as at the very least it is not obvious.
I have an auto-partitioned table with some already existing and populated history partitions:
bb-10.6-midenok-MDEV-17554 b96b96f9f3ec
|
create or replace table t1 (pk int primary key, a int) engine=MyISAM with system versioning partition by system_time limit 100 auto;
|
insert into t1 select seq, seq from seq_1_to_80;
|
replace into t1 select seq, seq from seq_1_to_80;
|
replace into t1 select seq, seq from seq_1_to_80;
|
replace into t1 select seq, seq from seq_1_to_80;
|
replace into t1 select seq, seq from seq_1_to_80;
|
replace into t1 select seq, seq from seq_1_to_80;
|
select partition_name, table_rows from information_schema.partitions where table_name = 't1';
|
+----------------+------------+
|
| partition_name | table_rows |
|
+----------------+------------+
|
| p0 | 160 |
|
| p1 | 160 |
|
| p2 | 80 |
|
| pn | 80 |
|
+----------------+------------+
|
Now I just want to disable further auto-partitioning.
What I tried was:
alter table t1 partition by system_time limit 100;
|
but it reorganizes existing partitions into 1+1:
MariaDB [test]> select partition_name, table_rows from information_schema.partitions where table_name = 't1';
|
+----------------+------------+
|
| partition_name | table_rows |
|
+----------------+------------+
|
| p0 | 400 |
|
| pn | 80 |
|
+----------------+------------+
|
2 rows in set (0.003 sec)
|
or (back from the original structure with 3+1 partitions):
alter table t1 partition by system_time limit 100 partitions 4;
|
but it still reorganizes partitions and puts everything into the first one:
MariaDB [test]> select partition_name, table_rows from information_schema.partitions where table_name = 't1';
|
+----------------+------------+
|
| partition_name | table_rows |
|
+----------------+------------+
|
| p0 | 400 |
|
| p1 | 0 |
|
| p2 | 0 |
|
| pn | 80 |
|
+----------------+------------+
|
(maybe tried something else, but to no avail).
{"report":{"fcp":1929,"ttfb":248.2000002861023,"pageVisibility":"visible","entityId":99250,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"da7b908f-d7eb-471f-91f5-03fe43c1b960","navigationType":0,"readyForUser":1964.2000002861023,"redirectCount":0,"resourceLoadedEnd":1911.5999999046326,"resourceLoadedStart":466.90000009536743,"resourceTiming":[{"duration":564.0999999046326,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":466.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":466.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1031,"responseStart":0,"secureConnectionStart":0},{"duration":564.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":467.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":467.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1031.5,"responseStart":0,"secureConnectionStart":0},{"duration":585.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":467.40000009536743,"connectEnd":467.40000009536743,"connectStart":467.40000009536743,"domainLookupEnd":467.40000009536743,"domainLookupStart":467.40000009536743,"fetchStart":467.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":467.40000009536743,"responseEnd":1053.2000002861023,"responseStart":1053.2000002861023,"secureConnectionStart":467.40000009536743},{"duration":643.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":467.7000002861023,"connectEnd":467.7000002861023,"connectStart":467.7000002861023,"domainLookupEnd":467.7000002861023,"domainLookupStart":467.7000002861023,"fetchStart":467.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":467.7000002861023,"responseEnd":1111.5999999046326,"responseStart":1111.5999999046326,"secureConnectionStart":467.7000002861023},{"duration":701.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":467.80000019073486,"connectEnd":467.80000019073486,"connectStart":467.80000019073486,"domainLookupEnd":467.80000019073486,"domainLookupStart":467.80000019073486,"fetchStart":467.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":467.80000019073486,"responseEnd":1168.9000000953674,"responseStart":1168.9000000953674,"secureConnectionStart":467.80000019073486},{"duration":723.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":468.09999990463257,"connectEnd":468.09999990463257,"connectStart":468.09999990463257,"domainLookupEnd":468.09999990463257,"domainLookupStart":468.09999990463257,"fetchStart":468.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":468.09999990463257,"responseEnd":1191.9000000953674,"responseStart":1191.9000000953674,"secureConnectionStart":468.09999990463257},{"duration":724.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":468.30000019073486,"connectEnd":468.30000019073486,"connectStart":468.30000019073486,"domainLookupEnd":468.30000019073486,"domainLookupStart":468.30000019073486,"fetchStart":468.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":468.30000019073486,"responseEnd":1192.4000000953674,"responseStart":1192.3000001907349,"secureConnectionStart":468.30000019073486},{"duration":824.2000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":468.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":468.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1292.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":724.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":468.59999990463257,"connectEnd":468.59999990463257,"connectStart":468.59999990463257,"domainLookupEnd":468.59999990463257,"domainLookupStart":468.59999990463257,"fetchStart":468.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":468.59999990463257,"responseEnd":1193,"responseStart":1193,"secureConnectionStart":468.59999990463257},{"duration":824.0999999046326,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":468.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":468.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1292.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":760.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":468.90000009536743,"connectEnd":468.90000009536743,"connectStart":468.90000009536743,"domainLookupEnd":468.90000009536743,"domainLookupStart":468.90000009536743,"fetchStart":468.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":468.90000009536743,"responseEnd":1229.0999999046326,"responseStart":1229.0999999046326,"secureConnectionStart":468.90000009536743},{"duration":890.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":469.90000009536743,"connectEnd":469.90000009536743,"connectStart":469.90000009536743,"domainLookupEnd":469.90000009536743,"domainLookupStart":469.90000009536743,"fetchStart":469.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":469.90000009536743,"responseEnd":1360.8000001907349,"responseStart":1360.8000001907349,"secureConnectionStart":469.90000009536743},{"duration":1441.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":470.09999990463257,"connectEnd":470.09999990463257,"connectStart":470.09999990463257,"domainLookupEnd":470.09999990463257,"domainLookupStart":470.09999990463257,"fetchStart":470.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":470.09999990463257,"responseEnd":1911.5999999046326,"responseStart":1911.5999999046326,"secureConnectionStart":470.09999990463257},{"duration":387.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1313.5,"connectEnd":1313.5,"connectStart":1313.5,"domainLookupEnd":1313.5,"domainLookupStart":1313.5,"fetchStart":1313.5,"redirectEnd":0,"redirectStart":0,"requestStart":1313.5,"responseEnd":1700.9000000953674,"responseStart":1700.9000000953674,"secureConnectionStart":1313.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":14,"responseStart":248,"responseEnd":381,"domLoading":464,"domInteractive":2026,"domContentLoadedEventStart":2026,"domContentLoadedEventEnd":2083,"domComplete":3750,"loadEventStart":3751,"loadEventEnd":3753,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2011.0999999046326},{"name":"bigPipe.sidebar-id.end","time":2011.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":2012.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":2014.8000001907349},{"name":"activityTabFullyLoaded","time":2087.800000190735}],"measures":[],"correlationId":"6c163fcdb58733","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":91,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}