mirror of
https://github.com/MariaDB/server.git
synced 2025-11-19 19:03:26 +03:00
and small collateral changes mysql-test/lib/My/Test.pm: somehow with "print" we get truncated writes sometimes mysql-test/suite/perfschema/r/digest_table_full.result: md5 hashes of statement digests differ, because yacc token codes are different in mariadb mysql-test/suite/perfschema/r/dml_handler.result: host table is not ported over yet mysql-test/suite/perfschema/r/information_schema.result: host table is not ported over yet mysql-test/suite/perfschema/r/nesting.result: this differs, because we don't rewrite general log queries, and multi-statement packets are logged as a one entry. this result file is identical to what mysql-5.6.5 produces with the --log-raw option. mysql-test/suite/perfschema/r/relaylog.result: MariaDB modifies the binlog index file directly, while MySQL 5.6 has a feature "crash-safe binlog index" and modifies a special "crash-safe" shadow copy of the index file and then moves it over. That's why this test shows "NONE" index file writes in MySQL and "MANY" in MariaDB. mysql-test/suite/perfschema/r/server_init.result: MariaDB initializes the "manager" resources from the "manager" thread, and starts this thread only when --flush-time is not 0. MySQL 5.6 initializes "manager" resources unconditionally on server startup. mysql-test/suite/perfschema/r/stage_mdl_global.result: this differs, because MariaDB disables query cache when query_cache_size=0. MySQL does not do that, and this causes useless mutex locks and waits. mysql-test/suite/perfschema/r/statement_digest.result: md5 hashes of statement digests differ, because yacc token codes are different in mariadb mysql-test/suite/perfschema/r/statement_digest_consumers.result: md5 hashes of statement digests differ, because yacc token codes are different in mariadb mysql-test/suite/perfschema/r/statement_digest_long_query.result: md5 hashes of statement digests differ, because yacc token codes are different in mariadb mysql-test/suite/rpl/r/rpl_mixed_drop_create_temp_table.result: will be updated to match 5.6 when alfranio.correia@oracle.com-20110512172919-c1b5kmum4h52g0ni and anders.song@greatopensource.com-20110105052107-zoab0bsf5a6xxk2y are merged mysql-test/suite/rpl/r/rpl_non_direct_mixed_mixing_engines.result: will be updated to match 5.6 when anders.song@greatopensource.com-20110105052107-zoab0bsf5a6xxk2y is merged
95 lines
3.4 KiB
Plaintext
95 lines
3.4 KiB
Plaintext
SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type
|
|
WHERE object_schema='test';
|
|
object_schema object_name
|
|
CREATE TABLE test.t_before(a INT);
|
|
INSERT INTO test.t_before VALUES (1);
|
|
SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type
|
|
WHERE object_schema='test';
|
|
object_schema object_name
|
|
test t_before
|
|
RENAME TABLE test.t_before TO test.t_after;
|
|
SELECT COUNT(*) FROM test.t_after;
|
|
COUNT(*)
|
|
1
|
|
SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type
|
|
WHERE object_schema='test';
|
|
object_schema object_name
|
|
test t_after
|
|
DROP TABLE test.t_after;
|
|
SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type
|
|
WHERE object_schema='test';
|
|
object_schema object_name
|
|
CREATE TABLE test.t1(a INT);
|
|
INSERT INTO test.t1 VALUES (1);
|
|
CREATE VIEW test.v1 AS SELECT * FROM test.t1;
|
|
SELECT COUNT(*) FROM test.v1;
|
|
COUNT(*)
|
|
1
|
|
SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type
|
|
WHERE object_schema='test';
|
|
object_schema object_name
|
|
test t1
|
|
DROP VIEW test.v1;
|
|
DROP TABLE test.t1;
|
|
SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type
|
|
WHERE object_schema='test';
|
|
object_schema object_name
|
|
SELECT EVENT_ID FROM performance_schema.events_waits_current
|
|
WHERE THREAD_ID IN
|
|
(SELECT THREAD_ID FROM performance_schema.threads)
|
|
AND EVENT_NAME IN
|
|
(SELECT NAME FROM performance_schema.setup_instruments
|
|
WHERE NAME LIKE "wait/synch/%")
|
|
LIMIT 1;
|
|
create table test.t1(a int) engine=performance_schema;
|
|
ERROR HY000: Can't create table 'test.t1' (errno: 131 "Command not supported by database")
|
|
SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type
|
|
WHERE object_schema='test';
|
|
object_schema object_name
|
|
create table test.t1 like performance_schema.events_waits_current;
|
|
ERROR HY000: Can't create table 'test.t1' (errno: 131 "Command not supported by database")
|
|
SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type
|
|
WHERE object_schema='test';
|
|
object_schema object_name
|
|
create table performance_schema.t1(a int);
|
|
ERROR 42000: CREATE command denied to user 'root'@'localhost' for table 't1'
|
|
SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type
|
|
WHERE object_schema='test';
|
|
object_schema object_name
|
|
drop table if exists test.ghost;
|
|
create table test.ghost (a int, b int);
|
|
alter table test.ghost add index index_a(a);
|
|
alter table test.ghost add index index_b(b);
|
|
insert into test.ghost values (1, 3);
|
|
insert into test.ghost values (2, 4);
|
|
select * from test.ghost;
|
|
a b
|
|
1 3
|
|
2 4
|
|
drop table test.ghost;
|
|
select * from performance_schema.file_instances
|
|
where file_name like "%ghost%";
|
|
FILE_NAME EVENT_NAME OPEN_COUNT
|
|
select * from performance_schema.no_such_table;
|
|
ERROR 42S02: Table 'performance_schema.no_such_table' doesn't exist
|
|
DROP TABLE IF EXISTS t_60905;
|
|
CREATE TABLE t_60905 (i INT, j INT, KEY(i)) ENGINE = InnoDB;
|
|
INSERT INTO t_60905 VALUES
|
|
(1,2), (3,4), (5,6), (7,8), (9,10);
|
|
DELETE FROM t_60905 WHERE i = 1;
|
|
DELETE FROM t_60905 WHERE j = 8;
|
|
SELECT object_schema,
|
|
object_name,
|
|
index_name,
|
|
count_fetch,
|
|
count_insert,
|
|
count_update,
|
|
count_delete
|
|
FROM performance_schema.table_io_waits_summary_by_index_usage
|
|
WHERE object_schema = 'test'
|
|
AND object_name = 't_60905';
|
|
object_schema object_name index_name count_fetch count_insert count_update count_delete
|
|
test t_60905 i 2 0 0 1
|
|
test t_60905 NULL 5 5 0 1
|
|
DROP TABLE t_60905;
|