Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Show temp table info in infomation_schema.tables #41686

Open
bb7133 opened this issue Feb 23, 2023 · 3 comments · May be fixed by #43313
Open

[Enhancement] Show temp table info in infomation_schema.tables #41686

bb7133 opened this issue Feb 23, 2023 · 3 comments · May be fixed by #43313
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/compatibility type/enhancement The issue or PR belongs to an enhancement.

Comments

@bb7133
Copy link
Member

bb7133 commented Feb 23, 2023

Enhancement

TiDB supports the 'local temporary table'(compatible with MySQL) and 'global temporary table'(from ANSI SQL standard). However, there is no temporary table information in information_schema.tables, it's not very easy to manage them.

So we would like to add both local temporary and global temporary tables in information_schema.tables. For TABLE_TYPE column, we show LOCAL TEMPORARY for a local temporary table, GLOBAL TEMPORARY for a global temporary table

Note: this is not compatible with MySQL.

  • MySQL only supports local temporary table, and they do not show local temporary table in information_schema.tables. Instead, it provides information_schema.INNODB_TEMP_TABLE_INFO.
  • We think it is fine because we follow the SQL standard.
@bb7133 bb7133 added type/enhancement The issue or PR belongs to an enhancement. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Feb 23, 2023
@xuyukeviki
Copy link

I want to pick this Enhancement Task

@aynp
Copy link

aynp commented Apr 22, 2023

/assign

@kennedy8312
Copy link

/type compatibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/compatibility type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants