mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-6274 Collation usage statistics
Adding collation usage statistics into the feedback plugin I_S table.
This commit is contained in:
@ -8,3 +8,16 @@ select plugin_status from information_schema.plugins where plugin_name='feedback
|
||||
--sorted_result
|
||||
select * from information_schema.feedback where variable_name like 'feed%'
|
||||
and variable_name not like '%_uid';
|
||||
|
||||
|
||||
# Embedded server does not use the table mysqld.user and thus
|
||||
# does not automatically use latin1_bin on startup. Use it manually.
|
||||
--disable_query_log
|
||||
if (`SELECT VERSION() LIKE '%embedded%'`)
|
||||
{
|
||||
DO _latin1'test' COLLATE latin1_bin;
|
||||
}
|
||||
--enable_query_log
|
||||
SELECT VARIABLE_VALUE>0, VARIABLE_NAME FROM INFORMATION_SCHEMA.FEEDBACK
|
||||
WHERE VARIABLE_NAME LIKE 'Collation used %'
|
||||
ORDER BY VARIABLE_NAME;
|
||||
|
Reference in New Issue
Block a user