Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create information_schema.rocksdb_datadic to print data dictionary #45

Closed
hermanlee opened this issue Sep 28, 2015 · 4 comments
Closed

Comments

@hermanlee
Copy link
Contributor

Issue by yoshinorim
Monday Jun 15, 2015 at 17:37 GMT
Originally opened as MySQLOnRocksDB#83


This is rather for debugging purposes, but printing data dictionary via information_schema is often very useful.

@hermanlee
Copy link
Contributor Author

Comment by hermanlee
Monday Jun 15, 2015 at 17:45 GMT


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.).

@hermanlee
Copy link
Contributor Author

Comment by yhchiang
Thursday Jul 23, 2015 at 08:25 GMT


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.

@hermanlee
Copy link
Contributor Author

Comment by hermanlee
Thursday Jul 23, 2015 at 17:14 GMT


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.

@hermanlee
Copy link
Contributor Author

information_schema.global_info supports printing out the binlog information, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant