Create information_schema.rocksdb_datadic to print data dictionary
Closed this issue · 3 comments
This is rather for debugging purposes, but printing data dictionary via information_schema is often very useful.
We have support for printing out the index numbers and tables/databases they belong to in information_schema.rocksdb_ddl, but other parts of the data dictionary need to be added (such as binlog numbers, column family indexes, etc.).
In case this is not something urgent, I would like to try this out :)
First of all, can I know whether storage/rocksdb/rdb_i_s.cc
is the right file to begin with? I'm not familiar with the mysql code base.
Yes, rdb_i_s.cc is the right place to start. It has the basic structure for creating information schema tables. The table would need to retrieve the contents of the data dictionary and convert them into the appropriate table format and return it.