-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Temporary table management #117
Description
Hey, Happy Birthday to your company and thanks for making an awesome DBMS!
It'd be great to have better control over the native TEMPORARY TABLEs.
For instance, if you create one using CREATE TEMPORARY TABLE temp_table (id UInt8);,
you won't be able to
- execute
SHOW CREATE TABLE temp_table;
#107: Cannot open file /.../metadata/default/temp_table.sql, errno: 2, strerror: No such file or directory.
Judging by the exception, it may look like it supports just the permanently-stored ones, but you certainly can do SHOW CREATE TABLE over the regular tables with the Memory engine.
Also I've thought that the table was already deleted, but it was the same session and SELECT * FROM temp_table; works OK.
-
Same with
SHOW TABLES;- the temporary tables aren't there. -
You can't run
DROP TABLEover a temporary table. You can over aMemoryone though.
Of course, I'm free to end the session to make it disappear, but nevertheless...
I understand that it's not a big deal, and I guess I can send a pull request later that reflects these issues in the documentation. Just wanted to let you know.