Open sanikolaev opened 1 year ago
As discussed on "Dev call of January the 26th, 2023", it would be quite difficult to implement LOCK, so that write queries are waiting for the table to be unlocked. What's easier and may even make more sense at least as the default is to reject those queries while the table is locked.
We have FREEZE which prevents the table from being updated on disk, so it can be safely copied when frozen. It's great for physical backup. Now that we support logical backup via mysqldump it makes sense to implement LOCK which would prevent the table from being modified in any way while it's locked. A better specification is to be discussed.