Bug #71294 Manual page for P_S.FILE_INSTANCES table does not explain '~' in FILE_NAME
Description:
mysql> select * from performance_schema.file_instances where event_name like '%parse%';
+----------------------------+------------------------------+------------+
| FILE_NAME | EVENT_NAME | OPEN_COUNT |
+----------------------------+------------------------------+------------+
| /var/lib/mysql/test/ti.TRG | wait/io/file/sql/file_parser | 0 |
+----------------------------+------------------------------+------------+
1 row in set (0,00 sec)
mysql> create view v2 as select * from ti;
Query OK, 0 rows affected (0,04 sec)
mysql> select * from performance_schema.file_instances where event_name like '%parse%';
+-----------------------------+------------------------------+------------+
| FILE_NAME | EVENT_NAME | OPEN_COUNT |
+-----------------------------+------------------------------+------------+
| /var/lib/mysql/test/ti.TRG | wait/io/file/sql/file_parser | 0 |
| /var/lib/mysql/test/v2.frm~ | wait/io/file/sql/file_parser | 0 |
+-----------------------------+------------------------------+------------+
2 rows in set (0,00 sec)
How to repeat:
mysql> create view v2 as select * from ti;
Query OK, 0 rows affected (0,04 sec)
mysql> select * from performance_schema.file_instances where event_name like '%parse%';
+-----------------------------+------------------------------+------------+
| FILE_NAME | EVENT_NAME | OPEN_COUNT |
+-----------------------------+------------------------------+------------+
| /var/lib/mysql/test/ti.TRG | wait/io/file/sql/file_parser | 0 |
| /var/lib/mysql/test/v2.frm~ | wait/io/file/sql/file_parser | 0 |
+-----------------------------+------------------------------+------------+
2 rows in set (0,00 sec)
Now, what does that name with ~ at the end:
/var/lib/mysql/test/v2.frm~
means? I surely do not have file with this name in the database directory, just v2.frm just created for a new view.
Suggested fix:
Explain in details what kinds of files we may see in this table and what '~' at the end of the file name means.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.