File: alter_table_progress.result

package info (click to toggle)
mariadb 1%3A10.11.11-0%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 597,064 kB
  • sloc: ansic: 2,386,076; cpp: 1,663,071; asm: 378,311; perl: 62,203; pascal: 38,769; sh: 37,071; java: 33,919; sql: 19,830; yacc: 19,727; xml: 10,509; python: 9,522; ruby: 8,544; cs: 5,855; makefile: 5,793; ada: 1,700; lex: 1,207; javascript: 1,039; objc: 80; tcl: 73; awk: 46; php: 22
file content (99 lines) | stat: -rw-r--r-- 3,753 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
connect  con1, localhost, root, , ;
drop table if exists t1;
create table t1(a int) engine = myisam;
insert into t1 values (1), (2), (3), (4), (5);
connection default;
update performance_schema.threads
set instrumented = 'NO'
  where processlist_id = connection_id();
truncate table performance_schema.events_statements_history_long;
truncate table performance_schema.events_stages_history_long;
connection con1;
SET DEBUG_SYNC='RESET';
SET DEBUG_SYNC='copy_data_between_tables_before SIGNAL found_row WAIT_FOR wait_row EXECUTE 5';
ALTER TABLE t1 engine = innodb;;
connection default;
SET DEBUG_SYNC='now WAIT_FOR found_row';
select event_id from performance_schema.events_statements_current
where thread_id = @con1_thread_id into @con1_stmt_id;
Warnings:
Warning	1287	'<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED
from performance_schema.events_stages_current
where (thread_id = @con1_thread_id);
EVENT_NAME	WORK_COMPLETED	WORK_ESTIMATED
stage/sql/copy to tmp table	0	5
SET DEBUG_SYNC='now SIGNAL wait_row';
SET DEBUG_SYNC='now WAIT_FOR found_row';
select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED
from performance_schema.events_stages_current
where (thread_id = @con1_thread_id);
EVENT_NAME	WORK_COMPLETED	WORK_ESTIMATED
stage/sql/copy to tmp table	1	5
SET DEBUG_SYNC='now SIGNAL wait_row';
SET DEBUG_SYNC='now WAIT_FOR found_row';
select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED
from performance_schema.events_stages_current
where (thread_id = @con1_thread_id);
EVENT_NAME	WORK_COMPLETED	WORK_ESTIMATED
stage/sql/copy to tmp table	2	5
SET DEBUG_SYNC='now SIGNAL wait_row';
SET DEBUG_SYNC='now WAIT_FOR found_row';
select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED
from performance_schema.events_stages_current
where (thread_id = @con1_thread_id);
EVENT_NAME	WORK_COMPLETED	WORK_ESTIMATED
stage/sql/copy to tmp table	3	5
SET DEBUG_SYNC='now SIGNAL wait_row';
SET DEBUG_SYNC='now WAIT_FOR found_row';
select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED
from performance_schema.events_stages_current
where (thread_id = @con1_thread_id);
EVENT_NAME	WORK_COMPLETED	WORK_ESTIMATED
stage/sql/copy to tmp table	4	5
SET DEBUG_SYNC='now SIGNAL wait_row';
connection con1;
select "After payload";
After payload
After payload
connection default;
# Dumping ALTER TABLE stages
select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED
from performance_schema.events_stages_history_long
where (thread_id = @con1_thread_id)
and (nesting_event_id = @con1_stmt_id)
order by thread_id, event_id;
EVENT_NAME	WORK_COMPLETED	WORK_ESTIMATED
stage/sql/starting	NULL	NULL
stage/sql/checking permissions	NULL	NULL
stage/sql/init for update	NULL	NULL
stage/sql/Opening tables	NULL	NULL
stage/sql/After opening tables	NULL	NULL
stage/sql/setup	NULL	NULL
stage/sql/creating table	NULL	NULL
stage/sql/After create	NULL	NULL
stage/sql/System lock	NULL	NULL
stage/sql/table lock	NULL	NULL
stage/sql/After create	NULL	NULL
stage/sql/copy to tmp table	5	5
stage/sql/Enabling keys	NULL	NULL
stage/sql/Rename result table	NULL	NULL
stage/sql/Unlocking tables	NULL	NULL
stage/sql/Rename result table	NULL	NULL
stage/sql/End of update loop	NULL	NULL
stage/sql/Query end	NULL	NULL
stage/sql/closing tables	NULL	NULL
stage/sql/Unlocking tables	NULL	NULL
stage/sql/closing tables	NULL	NULL
stage/sql/Query end	NULL	NULL
stage/sql/Starting cleanup	NULL	NULL
stage/sql/Freeing items	NULL	NULL
stage/sql/Reset for next command	NULL	NULL
SET DEBUG_SYNC='RESET';
connection con1;
drop table t1;
disconnect con1;
connection default;
update performance_schema.threads
set instrumented = 'YES'
  where processlist_id = connection_id();