begin;
insert into test.t1 values (1), (2), (3);
commit;
begin;
select * from test.t1 for update;
a
1
2
3
alter table test.t1 add column (b int);
call dump_one_thread('user1');
username	event_name	sql_text
user1	statement/sql/select	select * from test.t1 for update
username	event_name	nesting_event_type
username	event_name	nesting_event_type
user1	stage/sql/optimizing	STATEMENT
user1	stage/sql/statistics	STATEMENT
user1	stage/sql/preparing	STATEMENT
user1	stage/sql/executing	STATEMENT
user1	stage/sql/Sending data	STATEMENT
user1	stage/sql/end	STATEMENT
user1	stage/sql/query end	STATEMENT
user1	stage/sql/closing tables	STATEMENT
user1	stage/sql/freeing items	STATEMENT
user1	stage/sql/cleaning up	STATEMENT
call dump_one_thread('user2');
username	event_name	sql_text
user2	statement/sql/alter_table	alter table test.t1 add column (b int)
username	event_name	nesting_event_type
user2	stage/sql/Waiting for table metadata lock	STATEMENT
username	event_name	nesting_event_type
user2	stage/sql/init	STATEMENT
user2	stage/sql/checking permissions	STATEMENT
user2	stage/sql/checking permissions	STATEMENT
user2	stage/sql/init	STATEMENT
user2	stage/sql/Opening tables	STATEMENT
user2	stage/sql/setup	STATEMENT
user2	stage/sql/creating table	STATEMENT
user2	stage/sql/After create	STATEMENT
commit;
