Provide more details on temporary tables created
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
||||
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Won't Fix
|
Wishlist
|
Unassigned | |||
5.6 |
Triaged
|
Wishlist
|
Unassigned | |||
5.7 |
Triaged
|
Wishlist
|
Unassigned | |||
8.0 |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Originally reported at https:/
Description:
Currently we can know how many disk-based temporary tables were created while statement were running, can know about files, touched by the server. But it is hard to say how large they were and if they created simultaneously. It makes hard to troubleshoot space issues under high load.
How to repeat:
Use standard database employees.
flush status;
(select emp_no, first_name, count(*) from employees join titles using(emp_no) join dept_emp using(emp_no) group by emp_no, first_name order by last_name) union all (select emp_no, last_name, count(*) from employees join titles using(emp_no) join dept_emp using(emp_no) group by emp_no, last_name order by first_name);
show status like 'Created_tmp%';
You will find out how many tables were created, but to know their sizes you will need to watch lsof output while query is running. If many queries are running in parallel it is hard to identify which one creates larger tables.
tags: | added: i213856 |
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PS-2514