-
Task
-
-
Major
-
Resolution:
Fixed
-
-
None
-
Implementation of CREATE OR REPLACE TABLE.
This is needed to make replication with GTID work reliable with CREATE ... SELECT.
Using CREATE OR REPLACE TABLE will be identical to
DROP TABLE IF EXISTS table_name;
CREATE TABLE ...;
Except that:
- The above will be atomic (now one can create the same table between drop and create).
- Temporary tables will not shadow the table name for the DROP
- The CREATE TABLE tells us already if we are using a temporary table or not.
- If this would not be the case, we could with the statement drop a temporary table but still not be able to create the original table.
- is part of
-
MDEV-5359
CREATE OR REPLACE, CREATE IF NOT EXISTS, DROP IF EXISTS
-
-
Closed
{"report":{"fcp":856,"ttfb":224.4000005722046,"pageVisibility":"visible","entityId":28445,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"dc862a01-30e2-4fbe-bfa8-4414ceba78a4","navigationType":0,"readyForUser":1029.4000005722046,"redirectCount":0,"resourceLoadedEnd":1090.1999998092651,"resourceLoadedStart":232.60000038146973,"resourceTiming":[{"duration":18.199999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":232.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":250.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":18.799999237060547,"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":232.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":251.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":117.09999942779541,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":233.10000038146973,"connectEnd":233.10000038146973,"connectStart":233.10000038146973,"domainLookupEnd":233.10000038146973,"domainLookupStart":233.10000038146973,"fetchStart":233.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":233.10000038146973,"responseEnd":350.19999980926514,"responseStart":350.19999980926514,"secureConnectionStart":233.10000038146973},{"duration":226.80000019073486,"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":233.30000019073486,"connectEnd":233.30000019073486,"connectStart":233.30000019073486,"domainLookupEnd":233.30000019073486,"domainLookupStart":233.30000019073486,"fetchStart":233.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":233.30000019073486,"responseEnd":460.1000003814697,"responseStart":460.1000003814697,"secureConnectionStart":233.30000019073486},{"duration":230.89999961853027,"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":233.60000038146973,"connectEnd":233.60000038146973,"connectStart":233.60000038146973,"domainLookupEnd":233.60000038146973,"domainLookupStart":233.60000038146973,"fetchStart":233.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":233.60000038146973,"responseEnd":464.5,"responseStart":464.5,"secureConnectionStart":233.60000038146973},{"duration":231.5,"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":233.69999980926514,"connectEnd":233.69999980926514,"connectStart":233.69999980926514,"domainLookupEnd":233.69999980926514,"domainLookupStart":233.69999980926514,"fetchStart":233.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":233.69999980926514,"responseEnd":465.19999980926514,"responseStart":465.19999980926514,"secureConnectionStart":233.69999980926514},{"duration":231.80000019073486,"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":233.80000019073486,"connectEnd":233.80000019073486,"connectStart":233.80000019073486,"domainLookupEnd":233.80000019073486,"domainLookupStart":233.80000019073486,"fetchStart":233.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":233.80000019073486,"responseEnd":465.6000003814697,"responseStart":465.6000003814697,"secureConnectionStart":233.80000019073486},{"duration":276,"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":234,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":234,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":510,"responseStart":0,"secureConnectionStart":0},{"duration":232.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":234.10000038146973,"connectEnd":234.10000038146973,"connectStart":234.10000038146973,"domainLookupEnd":234.10000038146973,"domainLookupStart":234.10000038146973,"fetchStart":234.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":234.10000038146973,"responseEnd":466.5,"responseStart":466.5,"secureConnectionStart":234.10000038146973},{"duration":268.4000005722046,"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":241.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":241.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":510.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":225.29999923706055,"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":241.9000005722046,"connectEnd":241.9000005722046,"connectStart":241.9000005722046,"domainLookupEnd":241.9000005722046,"domainLookupStart":241.9000005722046,"fetchStart":241.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":241.9000005722046,"responseEnd":467.19999980926514,"responseStart":467.19999980926514,"secureConnectionStart":241.9000005722046},{"duration":571.6999998092651,"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":243.30000019073486,"connectEnd":243.30000019073486,"connectStart":243.30000019073486,"domainLookupEnd":243.30000019073486,"domainLookupStart":243.30000019073486,"fetchStart":243.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":243.30000019073486,"responseEnd":815,"responseStart":815,"secureConnectionStart":243.30000019073486},{"duration":585.6999998092651,"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":243.30000019073486,"connectEnd":243.30000019073486,"connectStart":243.30000019073486,"domainLookupEnd":243.30000019073486,"domainLookupStart":243.30000019073486,"fetchStart":243.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":243.30000019073486,"responseEnd":829,"responseStart":829,"secureConnectionStart":243.30000019073486},{"duration":295.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":522.3000001907349,"connectEnd":522.3000001907349,"connectStart":522.3000001907349,"domainLookupEnd":522.3000001907349,"domainLookupStart":522.3000001907349,"fetchStart":522.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":522.3000001907349,"responseEnd":817.8000001907349,"responseStart":817.8000001907349,"secureConnectionStart":522.3000001907349},{"duration":252,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":847.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":847.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1099.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":216.0999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":874.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":874.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1090.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":153.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":875.5,"connectEnd":875.5,"connectStart":875.5,"domainLookupEnd":875.5,"domainLookupStart":875.5,"fetchStart":875.5,"redirectEnd":0,"redirectStart":0,"requestStart":875.5,"responseEnd":1029.3000001907349,"responseStart":1029.3000001907349,"secureConnectionStart":875.5},{"duration":194.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":876.1999998092651,"connectEnd":876.1999998092651,"connectStart":876.1999998092651,"domainLookupEnd":876.1999998092651,"domainLookupStart":876.1999998092651,"fetchStart":876.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":876.1999998092651,"responseEnd":1070.3000001907349,"responseStart":1070.3000001907349,"secureConnectionStart":876.1999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":40,"responseStart":225,"responseEnd":228,"domLoading":231,"domInteractive":1134,"domContentLoadedEventStart":1134,"domContentLoadedEventEnd":1193,"domComplete":2357,"loadEventStart":2357,"loadEventEnd":2358,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1106},{"name":"bigPipe.sidebar-id.end","time":1106.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":1107},{"name":"bigPipe.activity-panel-pipe-id.end","time":1110.4000005722046},{"name":"activityTabFullyLoaded","time":1217.1999998092651}],"measures":[],"correlationId":"c4c0fe0ae0fbe2","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":10,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}