-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
want to record the committer of sql #6673
Comments
Hi, @powqabc , thank you for your feedback. |
Yes. |
@powqabc Good suggestion! |
Json format is recommended to facilitate parsing |
@lysu the host is included in the user string. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now,we can set @@tidb_general_log=1 and record all the SQL statements in the log. But the committer of SQL is not recorded in the log. We want to make analysis on the details of the SQL.
Can tidb support to the committer of every SQL?The demo of log can add the committer of SQL based on the tidb_slow_query.log
Like this:
[info] cost_time:582.76183ms succ:true connection_id:457 txn_start_ts:399880415363465346 database:a table_ids:[] index_ids:[] committer:xxx sql:select count(1) from a.b;
The text was updated successfully, but these errors were encountered: