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

Version and diff selector for the TiDB system variables #451

Open
3 tasks
likidu opened this issue Nov 20, 2023 · 2 comments
Open
3 tasks

Version and diff selector for the TiDB system variables #451

likidu opened this issue Nov 20, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@likidu
Copy link
Collaborator

likidu commented Nov 20, 2023

https://docs.pingcap.com/tidb/dev/system-variables

  • All variables for a certain version
  • Diff between two version
  • Fuzzy search variable name

A PR has been created for this: #445

@likidu likidu added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 20, 2023
@likidu
Copy link
Collaborator Author

likidu commented Nov 20, 2023

@lilin90 We can use git diff to compare the same file from two branches and output to a markdown file.

Here is a simple bash for this:

git diff -U6000 --word-diff release-7.4 release-7.1 -- system-variables.md --no-index |\
tail +6  |\
sed 's/\[-/~~/g;s/-]/~~/g;' |\
sed 's/{\+/__/g;s/+}/__/g' > ~/Repos/sys-var-new.md

The -U6000 is just provide the lines to compare, we can use wc -l <file> to calculate the actual lines of the file for each branch and use the greater number to have a more precise value.

Attached the output of this command to see the result.

sys-var-new.md

@likidu
Copy link
Collaborator Author

likidu commented Dec 1, 2023

User further asks about easy-to-find info of deprecated system variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant