Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
Description
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/
There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs.
The example shows how to use 'INNODB_TEMP_TABLE_INFO' but it doesn't exist
BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement.
Summary from comments
This is what will be implemented:
1. list session ([#1]) temporary tables in I_S.TABLES with column TABLE_TYPE="TEMPORARY"([#2])
2. by design they will not be listed in I_S.COLUMNS and other I_S tables ([#3]). This MDEV will not implement changes related to the temporary table and I_S.COLUMNS .
3. issue a warning on CREATE if a new temp table shadows non-temp table ([#4]), not vice-versa.
References:
[#1] - No need for connection_id column to list all threads (MDEV-15623 should do that).
[#2] - Standard prescribes "GLOBAL TEMPORARY" or "LOCAL TEMPORARY" but our tables are neither, so let's just use "TEMPORARY".
[#3] - I_S.COLUMNS, I_S.STATISTICS, I_S.TABLE_CONSTRAINTS, I_S.KEY_COLUMN_USAGE, I_S.PARTITIONS, I_S.FILES ( ? ), I_S.CHECK_CONSTRAINTS. Comment.
MariaDB should be also able to show their fields in INFORMATION_SCHEMA.COLUMNS, and any other metadata associated to a normal table. But at least, implementing INFORMATION_SCHEMA.TABLES and INFORMATION_SCHEMA.COLUMNS will help a lot.
[#4] - Based on comment
Attachments
Issue Links
- causes
-
MDEV-28332 Alter on temporary table causes ER_TABLE_EXISTS_ERROR note
-
- Closed
-
-
MDEV-28334 SHOW TABLE STATUS shows all temporary tables ignoring database and conditions
-
- Closed
-
-
MDEV-28335 TABLE_TYPE for temporary sequences is the same as for permanent ones
-
- Closed
-
-
MDEV-28343 sys.create_synonym_db fails with ER_VIEW_SELECT_TMPTABLE when schema contains temporary tables
-
- Closed
-
-
MDEV-28351 Assertion `this->file->children_attached' failed in ha_myisammrg::info
-
- Closed
-
-
MDEV-28453 SHOW commands are inconsistent for temporary tables
-
- Closed
-
-
MDEV-31618 Server crashes in process_i_s_table_temporary_tables/get_all_tables
-
- Closed
-
-
MDEV-31837 Server crashes in process_i_s_table_temporary_tables/get_all_tables
-
- Closed
-
- is part of
-
MDEV-28112 prepare 10.9.0 preview releases
-
- Closed
-
- relates to
-
MDEV-10356 rpl.rpl_parallel_temptable failure due to incorrect commit optimization of temptables
-
- Closed
-
-
MDEV-11785 Remove INFORMATION_SCHEMA.INNODB_TEMP_TABLE_INFO (was: Server crashes in i_s_innodb_temp_table_info_fill_table)
-
- Closed
-
-
MDEV-15623 Show temporary tables for all sessions in information schema
-
- Open
-
-
MDEV-17805 Do not add temporary tables to dict_sys->table_hash
-
- Stalled
-
-
MDEV-23643 Column information of a TEMPORARY table as a server side CURSOR
-
- Open
-
-
MDEV-25064 rpl.rpl_parallel_temptable failed in bb, ASAN heap-use-after-free in std::__atomic_base<long>::store
-
- Closed
-
-
MDEV-28325 I_S.CHECK_CONSTRAINTS, COLUMNS etc. do not show temporary tables
-
- Closed
-
-
MDEV-28333 CREATE_TIME is not populated for temporary InnoDB tables
-
- Closed
-
-
MDEV-28455 CREATE TEMPORARY TABLES privilege is insufficient for SHOW COLUMNS
-
- Closed
-
-
CONJ-1108 Database metadata listing TEMPORARY tables/sequences
-
- Closed
-
-
MDEV-31773 sys.table_exists results for temporary sequence differ
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE_INFO' but it doesnt exist |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE_INFO' but it doesnt exist BTW way that implementation is very lmited, there no way you can query against temporary tables fields using a SELECT statement. |
Summary | Th information_schema table for getting temporary tables info is missing, at lets innodb is missing INNODB_TEMP_TABLE_INFO | The information_schema tables for getting temporary tables info is missing, at least for innodb there is no INNODB_TEMP_TABLE_INFO |
Description |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE_INFO' but it doesnt exist BTW way that implementation is very lmited, there no way you can query against temporary tables fields using a SELECT statement. |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. |
Link |
This issue relates to |
Fix Version/s | 10.2 [ 14601 ] | |
Assignee | Marko Mäkelä [ marko ] |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.2 [ 14601 ] |
Component/s | Data Definition - Temporary [ 10123 ] | |
Component/s | Storage Engine - InnoDB [ 10129 ] |
Assignee | Marko Mäkelä [ marko ] |
Affects Version/s | 10.2.4 [ 22116 ] | |
Affects Version/s | 10.2.5 [ 22117 ] | |
Environment | Windows 10 64 bit | |
Issue Type | Bug [ 1 ] | Task [ 3 ] |
Labels | beginner-friendly |
Fix Version/s | 10.3 [ 22126 ] |
Assignee | Anel Husakovic [ anel ] |
Support case ID | 27461 |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Assignee | Anel Husakovic [ anel ] | Vicentiu Ciorbaru [ cvicentiu ] |
Status | Confirmed [ 10101 ] | In Review [ 10002 ] |
Fix Version/s | 10.3 [ 22126 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Priority | Critical [ 2 ] | Major [ 3 ] |
Fix Version/s | 10.3 [ 22126 ] |
Fix Version/s | 10.6 [ 24028 ] |
Rank | Ranked lower |
Assignee | Vicențiu Ciorbaru [ cvicentiu ] | Sergei Golubchik [ serg ] |
Rank | Ranked higher |
Link | This issue relates to MDEV-23643 [ MDEV-23643 ] |
Link | This issue relates to MDEV-15623 [ MDEV-15623 ] |
Comment | [ will be done in MDEV-15623 ] |
Link | This issue duplicates MDEV-15623 [ MDEV-15623 ] |
Link | This issue duplicates MDEV-15623 [ MDEV-15623 ] |
Assignee | Sergei Golubchik [ serg ] | Anel Husakovic [ anel ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Labels | beginner-friendly | beginner-friendly foundation |
Assignee | Anel Husakovic [ anel ] | Sergei Golubchik [ serg ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Anel Husakovic [ anel ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Fix Version/s | 10.6 [ 24028 ] |
Assignee | Anel Husakovic [ anel ] | Sergei Golubchik [ serg ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Fix Version/s | 10.8 [ 26121 ] |
Assignee | Sergei Golubchik [ serg ] | Anel Husakovic [ anel ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Workflow | MariaDB v3 [ 80262 ] | MariaDB v4 [ 131671 ] |
Description |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session ([#1]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}([#2]) 2. list them in {{I_S.COLUMNS}} and other {{I_S}} tables ([#3]) if they don't shadow non-temp tables ([#4]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table ([#4]), not vice-versa. 4. remove column {{"Temporary"}} in a separate commit References: [#1] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). [#2] - Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. [#3] - {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I_S.PARTITIONS, I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. [#4] - Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Description |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session ([#1]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}([#2]) 2. list them in {{I_S.COLUMNS}} and other {{I_S}} tables ([#3]) if they don't shadow non-temp tables ([#4]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table ([#4]), not vice-versa. 4. remove column {{"Temporary"}} in a separate commit References: [#1] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). [#2] - Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. [#3] - {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I_S.PARTITIONS, I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. [#4] - Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session ([#1]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}([#2]) 2. list them in {{I_S.COLUMNS}} and other {{I_S}} tables ([#3]) if they don't shadow non-temp tables ([#4]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table ([#4]), not vice-versa. 4. remove column {{"Temporary"}} in a separate commit References: [#1] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). [#2] - Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. [#3] - {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. [#4] - Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Fix Version/s | 10.9 [ 26905 ] | |
Fix Version/s | 10.8 [ 26121 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Comment |
[ Why do "list session (1) temporary tables in I_S.TABLES with column TABLE_TYPE="TEMPORARY"(2)"
Information_schema.tables has already a column 'temporary'. There is no reason to add more information about temporary tables to it. If the TEMPORARY is a requirement by the standard, then it should be ok. If not, don't do, it as there may already be tools who uses the temporary column. However, we cannot just remove the 'temporary' column as there may be tools or programs depending on it. ] |
Comment |
[ Please describe the reason why we want to change the current format?
Yes, GLOBAL TEMPORARY and LOCAL TEMPORARY are standard, but as we have neither, what is wrong with just using the current temporary column? We should not remove the 'Temporary' column as there may be users, applications or tools that depends on this. Remember that it is as important to be backward compatible at is is to following the standard. Best if we can do both. ] |
Comment |
[ Please describe the reason why we want to change the current format?
Yes, GLOBAL TEMPORARY and LOCAL TEMPORARY are standard, but as we have neither, what is wrong with just using the current temporary column? We should not remove the 'Temporary' column as there may be users, applications or tools that depends on this. Remember that it is as important to be backward compatible at is is to following the standard. Best if we can do both. ] |
Link |
This issue relates to |
Link | This issue relates to MDEV-17805 [ MDEV-17805 ] |
Link |
This issue relates to |
Link |
This issue is part of |
Status | In Progress [ 3 ] | In Testing [ 10301 ] |
Status | In Testing [ 10301 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Testing [ 10301 ] |
Assignee | Anel Husakovic [ anel ] | Elena Stepanova [ elenst ] |
Description |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session ([#1]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}([#2]) 2. list them in {{I_S.COLUMNS}} and other {{I_S}} tables ([#3]) if they don't shadow non-temp tables ([#4]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table ([#4]), not vice-versa. 4. remove column {{"Temporary"}} in a separate commit References: [#1] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). [#2] - Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. [#3] - {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. [#4] - Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'. According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info\-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. list them in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) if they don't shadow non\-temp tables (\[#4\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. 4. remove column {{"Temporary"}} in a separate commit References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Description |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'. According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info\-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. list them in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) if they don't shadow non\-temp tables (\[#4\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. 4. remove column {{"Temporary"}} in a separate commit References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. list them in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) if they don't shadow non\-temp tables (\[#4\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. 4. remove column {{"Temporary"}} in a separate commit References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Link |
This issue relates to |
Description |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. list them in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) if they don't shadow non\-temp tables (\[#4\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. 4. remove column {{"Temporary"}} in a separate commit References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. by design they will not be listed in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. 4. remove column {{"Temporary"}} in a separate commit References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Link |
This issue causes |
Link |
This issue relates to |
Link |
This issue causes |
Link |
This issue causes |
Description |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. by design they will not be listed in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. 4. remove column {{"Temporary"}} in a separate commit References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. by design they will not be listed in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Link |
This issue causes |
Link |
This issue causes |
Link |
This issue causes |
Link |
This issue causes |
Assignee | Elena Stepanova [ elenst ] | Anel Husakovic [ anel ] |
Status | In Testing [ 10301 ] | Stalled [ 10000 ] |
Link |
This issue relates to |
Link |
This issue causes |
Fix Version/s | 10.10 [ 27530 ] | |
Fix Version/s | 10.9 [ 26905 ] |
Fix Version/s | 10.11 [ 27614 ] | |
Fix Version/s | 10.10 [ 27530 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Description |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. by design they will not be listed in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'. According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info\-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. by design they will not be listed in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Description |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'. According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info\-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. by design they will not be listed in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. by design they will not be listed in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Fix Version/s | 10.12 [ 28320 ] | |
Fix Version/s | 10.11 [ 27614 ] |
Description |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. by design they will not be listed in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]) 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Currently, before Mysql 5.7, there was no way to get information from a temporary table (session table) using the information_schema. Now with Mysql 5.7 there is a new table named 'INNODB_TEMP_TABLE_INFO'.
According to documentation: https://mariadb.com/kb/en/mariadb/information-schema-temp_tables_info-table/ There was a table names 'TEMP_TABLES_INFO' which was introduced in 10.2.2 but removed in 10.2.4. I think maybe you're thinking to implement another solution which can cover all the needs. The example shows how to use 'INNODB_TEMP_TABLE\_INFO' but it doesn't exist BTW that mysql's implementation is very limited, there no way you can query against temporary tables fields using a SELECT statement. ---- *Summary from comments* ---- This is what will be implemented: 1. list session (\[#1\]) temporary tables in {{I_S.TABLES}} with column {{TABLE_TYPE="TEMPORARY"}}(\[#2\]) 2. by design they will not be listed in {{I_S.COLUMNS}} and other {{I_S}} tables (\[#3\]). This MDEV will not implement changes related to the temporary table and {{I_S.COLUMNS}} . 3. issue a warning on {{CREATE}} if a new temp table shadows non-temp table (\[#4\]), not vice-versa. References: \[#1\] - No need for {{connection_id}} column to list all threads (MDEV-15623 should do that). \[#2\] \- Standard prescribes {{"GLOBAL TEMPORARY"}} or {{"LOCAL TEMPORARY"}} but our tables are neither, so let's just use {{"TEMPORARY"}}. \[#3\] \- {{I_S.COLUMNS}}, {{I_S.STATISTICS}}, {{I_S.TABLE_CONSTRAINTS}}, {{I_S.KEY_COLUMN_USAGE}}, I\_S.PARTITIONS, {{I_S.FILES}} ( ? ), {{I_S.CHECK_CONSTRAINTS}}. [Comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=167688&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-167688]. {{MariaDB}} should be also able to show their fields in {{INFORMATION_SCHEMA.COLUMNS}}, and any other metadata associated to a normal table. But at least, implementing {{INFORMATION_SCHEMA.TABLES}} and {{INFORMATION_SCHEMA.COLUMNS}} will help a lot. \[#4\] \- Based on [comment|https://jira.mariadb.org/browse/MDEV-12459?focusedCommentId=183124&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-183124] |
Labels | beginner-friendly foundation | Preview_removed_10.9 beginner-friendly foundation |
Assignee | Anel Husakovic [ anel ] | Vicențiu Ciorbaru [ cvicentiu ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Fix Version/s | 11.1 [ 28549 ] | |
Fix Version/s | 11.0 [ 28320 ] |
Labels | Preview_removed_10.9 beginner-friendly foundation | Preview_10.9 Preview_11.1 Preview_removed_10.9 beginner-friendly foundation |
Labels | Preview_10.9 Preview_11.1 Preview_removed_10.9 beginner-friendly foundation | Preview_10.9 Preview_11.1 beginner-friendly foundation |
Labels | Preview_10.9 Preview_11.1 beginner-friendly foundation | Preview_10.9 beginner-friendly foundation |
Fix Version/s | 11.2 [ 28603 ] | |
Fix Version/s | 11.1 [ 28549 ] |
Assignee | Vicențiu Ciorbaru [ cvicentiu ] | Anel Husakovic [ anel ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Anel Husakovic [ anel ] | Vicențiu Ciorbaru [ cvicentiu ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Status | In Review [ 10002 ] | In Testing [ 10301 ] |
Assignee | Vicențiu Ciorbaru [ cvicentiu ] | Ramesh Sivaraman [ JIRAUSER48189 ] |
Assignee | Ramesh Sivaraman [ JIRAUSER48189 ] | Alice Sherepa [ alice ] |
Labels | Preview_10.9 beginner-friendly foundation | Preview_10.9 Preview_11.2 beginner-friendly foundation |
Link |
This issue causes |
Link |
This issue relates to |
Link |
This issue includes |
Link |
This issue causes |
Link |
This issue includes |
Status | In Testing [ 10301 ] | Stalled [ 10000 ] |
Assignee | Alice Sherepa [ alice ] | Sergei Golubchik [ serg ] |
Fix Version/s | 11.2.1 [ 29034 ] | |
Fix Version/s | 11.2 [ 28603 ] | |
Assignee | Sergei Golubchik [ serg ] | Anel Husakovic [ anel ] |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Component/s | Information Schema [ 14413 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36726 ] |
Remote Link | This issue links to "Page (MariaDB Confluence)" [ 36726 ] |
Zendesk Related Tickets | 190605 |