[MDEV-26946] Various small mysqldump manual improvements for the --as-of and --tz-utc options Created: 2021-10-31 Updated: 2023-12-15 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients, Versioned Tables |
| Affects Version/s: | 10.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Roel Van de Paar | Assignee: | Joe Cotellese |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | documentation, mysqldump | ||
| Issue Links: |
|
||||||||||||||||||||
| Sub-Tasks: |
|
||||||||||||||||||||
| Description |
|
The documentation lists the --as-of option to mysqldump as:
1. It needs to be clarified that this option is only applicable to the data, not the table structure. The table structure is always dumped, irrespective of the date/time specified. @serg fyi, in case this is considered a bug.
Followed by:
Will dump the table structure but not the data. 2. In regards timestamps, the connection with -tz-utc / -skip-tz-utc would best be clarified to make it easier for users to understand why their timestamps are not working when dumping data. Perhaps something like:
3. Please change "table" to "table(s)". 4. The mysqldump binary's help for -as-of should be changed in a similar matter as items 1 to 3 above.
4. The mysqldump binary's help for -skip-tz-utc should be changed as currently it only tells part of the story, and forgets to mention that the TZ for mysqldump is changed, which is significant (i.e. it does not just add something on the top of the dump, it actually changes the dump as the timezone values will be different. See below for proposed text.).
The documentation explains it more clearly. The first two lines from the documentation could be used as the new mysqldump help:
5. (Cosmetic) Re: 4 add "top of the" in the manual and in the binary help, and add "before commencing the dump" to clarify further i.e. manual and binary help text could become:
Inline this would look something like this:
|
| Comments |
| Comment by Roel Van de Paar [ 2022-02-04 ] |
|
ralf.gebhardt@mariadb.com Thank you. I created a subtask for the same. |