From: scut_tang Date: June 2 2009 7:11am Subject: About definition of I_S tables List-Archive: http://lists.mysql.com/soc/374 Message-Id: <33426659.934261243926717120.JavaMail.coremail@bj126app106.126.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_249710_2455632.1243926717120" ------=_Part_249710_2455632.1243926717120 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit 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 piont 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. Regards Robin ------=_Part_249710_2455632.1243926717120--