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
It's kind of like a hierarchical lock and intention lock, but it is still a table level lock in most case, and multiple ddl on different table can execute concurrently.
session1 session2
select*from t;
altertable t2 add column d int(ok)
altertable t add column d int(block)
+-------------+--------------------+----------------+---------------------+
| OBJECT_TYPE | OBJECT_SCHEMA | OBJECT_NAME | LOCK_TYPE |
+-------------+--------------------+----------------+---------------------+
| TABLE | test | t | SHARED_READ |
| GLOBAL | NULL | NULL | INTENTION_EXCLUSIVE |
| BACKUP LOCK | NULL | NULL | INTENTION_EXCLUSIVE |
| SCHEMA | test | NULL | INTENTION_EXCLUSIVE |
| TABLE | test | t | SHARED_UPGRADABLE |
| TABLESPACE | NULL | test/t | INTENTION_EXCLUSIVE |
| TABLE | test | #sql-790d_b | EXCLUSIVE |
| TABLE | test | t | EXCLUSIVE |
| TABLE | performance_schema | metadata_locks | SHARED_READ |
+-------------+--------------------+----------------+---------------------+
I don't think implicitly submiting is a good thing, you can't even rollback(even when you kill it, it is crazy).
It's kind of like a hierarchical lock and intention lock, but it is still a table level lock in most case, and multiple ddl on different table can execute concurrently.
I don't think implicitly submiting is a good thing, you can't even rollback(even when you kill it, it is crazy).
Originally posted by @crwen in #171 (comment)
The text was updated successfully, but these errors were encountered: