You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In either case, this command is a noop in TiDB, which is unsafe, and breaks a contract with user expectations.
Describe the feature you'd like:
FR 1: This statement should produce an error if the table does not exist.
Option 1: Produce an error (since FLUSH TABLES WITH READ LOCK already errors). This means that mysqldump can no longer restore! This could be addressed via a compatibility mode similar to #10065 will when set downgrades the error to a warning.
Option 2: Produce a warning. This means that a compatibility mode is required. Or alternatively, the compatibility mode could exist but have a different default value to #10065 (default ON).
Option 3: Do nothing. LOCK TABLES as a feature is planned, so we could also consider doing nothing for the interim.
Describe alternatives you've considered:
I lean towards option 2, simply because I think backup restore-ability out of the box is paramount. I could be convinced otherwise.
Feature Request
Is your feature request related to a problem? Please describe:
The table t1 exists, the other table does not:
In either case, this command is a noop in TiDB, which is unsafe, and breaks a contract with user expectations.
Describe the feature you'd like:
FR 1: This statement should produce an error if the table does not exist.
Option 1: Produce an error (since
FLUSH TABLES WITH READ LOCK
already errors). This means that mysqldump can no longer restore! This could be addressed via a compatibility mode similar to #10065 will when set downgrades the error to a warning.Option 2: Produce a warning. This means that a compatibility mode is required. Or alternatively, the compatibility mode could exist but have a different default value to #10065 (default ON).
Option 3: Do nothing.
LOCK TABLES
as a feature is planned, so we could also consider doing nothing for the interim.Describe alternatives you've considered:
I lean towards option 2, simply because I think backup restore-ability out of the box is paramount. I could be convinced otherwise.
Teachability, Documentation, Adoption, Migration Strategy:
If a compatibility mode is chosen, the error message should say the mode name. This will help users discover the problem.
The text was updated successfully, but these errors were encountered: