Page MenuHomePhabricator

refactor Database::duplicateTableStructure() to get a separate Database::createTemporaryTable()
Closed, DeclinedPublicFeature

Description

From https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Mediawiki_Database_abstraction_layer_wrapper_functions:_how_to_CREATE_TEMPORARY_TABLE a developer was able to get temporary tables in a db agnostic fashion by using Database::duplicateTableStructure(). In the underlying code, most databases seem to do something like CREATE TEMPORARY TABLE. This should code should be refactored so that we have Database::createTemporaryTable().


Version: 1.21.x
Severity: enhancement

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:28 AM
bzimport set Reference to bz44585.
bzimport added a subscriber: Unknown Object (MLST).

Change 490679 had a related patch set uploaded (by D3r1ck01; owner: Derick Alangi):
[mediawiki/core@master] database: Introduce creation/deletion of temporary tables in MySQL

https://gerrit.wikimedia.org/r/490679

Change 490679 abandoned by D3r1ck01:
rdbms: Introduce creation/deletion of temporary tables for MySQL

Reason:
I can safely abandon this now! Next time, I'll use [DNM] or [DNR] for such cases.

https://gerrit.wikimedia.org/r/490679

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM

Declining for now. If this feature request is still needed or if current mechanisms don't support temporary table in the way needed, feel free to reopen or file a new task.