2 Jun 2009 09:49
Re: About definition of I_S tables
Sergei Golubchik <serg <at> mysql.com>
2009-06-02 07:49:15 GMT
2009-06-02 07:49:15 GMT
Hi, scut_tang! First, don't cross-post in two lists, please. It would be sufficient to send this mail to internals <at> only, no need to send it also to soc <at> . On Jun 02, scut_tang wrote: > Hi, Sergei. > I found table definition of P_S storage engine is: > There is a directory named performance_schema in var directory, which > has lots of .frm files and each stands for one table of P_S. > After perform command "mysql_install_db", performance_schema directory > is created. > When user issue a query, like "SELECT * from > performance_schema.PROCESSLIST", rnd_init generates table_processlist > object and rnd_next gets data. What I want to point out here is > rnd_next uses TABLE *table. The member table of handler contains lots > of definitions of opened table. The MySQL server must get all P_S > tables definitions from .frm files in performance_schema directory. > How can P_S do that? How .frm files can be pre-created? I want I_S to > implement like this. I think it works well. It just has some .frm > files. No, I'd rather have I_S tables completely virtual, like they are now. Not "information_schema" subdirectory, no frm files. P_S has numerous problems because of physical frm files. There are quite a few bugs there, for example related to users doing CREATE/ALTER/DROP on P_S tables.(Continue reading)
RSS Feed