('ts21','phppos_location_items','PRIMARY','2021-01-17 22:33:53','n_diff_pfx01',3,29,'location_id'),('ts21','phppos_location_items','PRIMARY','2021-01-17 22:33:53','n_diff_pfx02',9826,29,'location_id,item_id'),('ts21','phppos_location_items','PRIMARY','2021-01-17 22:33:53','n_leaf_pages',29,NULL,'Number of leaf pages in the index'),('ts21','phppos_location_items','PRIMARY','2021-01-17 22:33:53','size',30,NULL,'Number of pages in the index'),('ts21','phppos_location_items','phppos_location_items_ibfk_2','2021-01-17 22:33:53','n_diff_pfx01',4642,9,'item_id'),('ts21','phppos_location_items','phppos_location_items_ibfk_2','2021-01-17 22:33:53','n_diff_pfx02',9826,9,'item_id,location_id'),('ts21','phppos_location_items','phppos_location_items_ibfk_2','2021-01-17 22:33:53','n_leaf_pages',9,NULL,'Number of leaf pages in the index'),('ts21','phppos_location_items','phppos_location_items_ibfk_2','2021-01-17 22:33:53','size',10,NULL,'Number of pages in the index'),('ts21','phppos_location_items','phppos_location_items_ibfk_3','2021-01-17 22:33:53','n_diff_pfx01',1,9,'tax_class_id'),('ts21','phppos_location_items','phppos_location_items_ibfk_3','2021-01-17 22:33:53','n_diff_pfx02',3,9,'tax_class_id,location_id'),('ts21','phppos_location_items','phppos_location_items_ibfk_3','2021-01-17 22:33:53','n_diff_pfx03',9826,9,'tax_class_id,location_id,item_id'),('ts21','phppos_location_items','phppos_location_items_ibfk_3','2021-01-17 22:33:53','n_leaf_pages',9,NULL,'Number of leaf pages in the index'),('ts21','phppos_location_items','phppos_location_items_ibfk_3','2021-01-17 22:33:53','size',10,NULL,'Number of pages in the index'),('ts21','phppos_location_items','quantity','2021-01-17 22:33:53','n_diff_pfx01',151,16,'quantity'),('ts21','phppos_location_items','quantity','2021-01-17 22:33:53','n_diff_pfx02',302,16,'quantity,location_id'),('ts21','phppos_location_items','quantity','2021-01-17 22:33:53','n_diff_pfx03',9826,16,'quantity,location_id,item_id'),('ts21','phppos_location_items','quantity','2021-01-17 22:33:53','n_leaf_pages',16,NULL,'Number of leaf pages in the index'),('ts21','phppos_location_items','quantity','2021-01-17 22:33:53','size',17,NULL,'Number of pages in the index'),('ts21','phppos_location_items_taxes','PRIMARY','2021-01-17 21:37:44','n_diff_pfx01',0,1,'id'),('ts21','phppos_location_items_taxes','PRIMARY','2021-01-17 21:37:44','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_location_items_taxes','PRIMARY','2021-01-17 21:37:44','size',1,NULL,'Number of pages in the index'),('ts21','phppos_location_items_taxes','phppos_location_items_taxes_ibfk_2','2021-01-17 21:37:44','n_diff_pfx01',0,1,'item_id'),('ts21','phppos_location_items_taxes','phppos_location_items_taxes_ibfk_2','2021-01-17 21:37:44','n_diff_pfx02',0,1,'item_id,id'),('ts21','phppos_location_items_taxes','phppos_location_items_taxes_ibfk_2','2021-01-17 21:37:44','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_location_items_taxes','phppos_location_items_taxes_ibfk_2','2021-01-17 21:37:44','size',1,NULL,'Number of pages in the index'),('ts21','phppos_location_items_taxes','unique_tax','2021-01-17 21:37:44','n_diff_pfx01',0,1,'location_id'),('ts21','phppos_location_items_taxes','unique_tax','2021-01-17 21:37:44','n_diff_pfx02',0,1,'location_id,item_id'),('ts21','phppos_location_items_taxes','unique_tax','2021-01-17 21:37:44','n_diff_pfx03',0,1,'location_id,item_id,name'),('ts21','phppos_location_items_taxes','unique_tax','2021-01-17 21:37:44','n_diff_pfx04',0,1,'location_id,item_id,name,percent'),('ts21','phppos_location_items_taxes','unique_tax','2021-01-17 21:37:44','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_location_items_taxes','unique_tax','2021-01-17 21:37:44','size',1,NULL,'Number of pages in the index'),('ts21','phppos_location_items_tier_prices','PRIMARY','2021-01-17 21:37:46','n_diff_pfx01',0,1,'tier_id'),('ts21','phppos_location_items_tier_prices','PRIMARY','2021-01-17 21:37:46','n_diff_pfx02',0,1,'tier_id,item_id'),('ts21','phppos_location_items_tier_prices','PRIMARY','2021-01-17 21:37:46','n_diff_pfx03',0,1,'tier_id,item_id,location_id'),('ts21','phppos_location_items_tier_prices','PRIMARY','2021-01-17 21:37:46','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_location_items_tier_prices','PRIMARY','2021-01-17 21:37:46','size',1,NULL,'Number of pages in the index'),('ts21','phppos_location_items_tier_prices','phppos_location_items_tier_prices_ibfk_2','2021-01-17 21:37:46','n_diff_pfx01',0,1,'location_id'),('ts21','phppos_location_items_tier_prices','phppos_location_items_tier_prices_ibfk_2','2021-01-17 21:37:46','n_diff_pfx02',0,1,'location_id,tier_id'),('ts21','phppos_location_items_tier_prices','phppos_location_items_tier_prices_ibfk_2','2021-01-17 21:37:46','n_diff_pfx03',0,1,'location_id,tier_id,item_id'),('ts21','phppos_location_items_tier_prices','phppos_location_items_tier_prices_ibfk_2','2021-01-17 21:37:46','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_location_items_tier_prices','phppos_location_items_tier_prices_ibfk_2','2021-01-17 21:37:46','size',1,NULL,'Number of pages in the index'),('ts21','phppos_location_items_tier_prices','phppos_location_items_tier_prices_ibfk_3','2021-01-17 21:37:46','n_diff_pfx01',0,1,'item_id'),('ts21','phppos_location_items_tier_prices','phppos_location_items_tier_prices_ibfk_3','2021-01-17 21:37:46','n_diff_pfx02',0,1,'item_id,tier_id'),('ts21','phppos_location_items_tier_prices','phppos_location_items_tier_prices_ibfk_3','2021-01-17 21:37:46','n_diff_pfx03',0,1,'item_id,tier_id,location_id'),('ts21','phppos_location_items_tier_prices','phppos_location_items_tier_prices_ibfk_3','2021-01-17 21:37:46','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_location_items_tier_prices','phppos_location_items_tier_prices_ibfk_3','2021-01-17 21:37:46','size',1,NULL,'Number of pages in the index'),('ts21','phppos_locations','PRIMARY','2021-01-17 22:40:52','n_diff_pfx01',3,1,'location_id'),('ts21','phppos_locations','PRIMARY','2021-01-17 22:40:52','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_locations','PRIMARY','2021-01-17 22:40:52','size',1,NULL,'Number of pages in the index'),('ts21','phppos_locations','address','2021-01-17 22:40:52','n_diff_pfx01',3,1,'address'),('ts21','phppos_locations','address','2021-01-17 22:40:52','n_diff_pfx02',3,1,'address,location_id'),('ts21','phppos_locations','address','2021-01-17 22:40:52','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_locations','address','2021-01-17 22:40:52','size',1,NULL,'Number of pages in the index'),('ts21','phppos_locations','deleted','2021-01-17 22:40:52','n_diff_pfx01',1,1,'deleted'),('ts21','phppos_locations','deleted','2021-01-17 22:40:52','n_diff_pfx02',3,1,'deleted,location_id'),('ts21','phppos_locations','deleted','2021-01-17 22:40:52','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_locations','deleted','2021-01-17 22:40:52','size',1,NULL,'Number of pages in the index'),('ts21','phppos_locations','email','2021-01-17 22:40:52','n_diff_pfx01',2,1,'email'),('ts21','phppos_locations','email','2021-01-17 22:40:52','n_diff_pfx02',3,1,'email,location_id'),('ts21','phppos_locations','email','2021-01-17 22:40:52','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_locations','email','2021-01-17 22:40:52','size',1,NULL,'Number of pages in the index'),('ts21','phppos_locations','name','2021-01-17 22:40:52','n_diff_pfx01',3,1,'name'),('ts21','phppos_locations','name','2021-01-17 22:40:52','n_diff_pfx02',3,1,'name,location_id'),('ts21','phppos_locations','name','2021-01-17 22:40:52','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_locations','name','2021-01-17 22:40:52','size',1,NULL,'Number of pages in the index'),('ts21','phppos_locations','phone','2021-01-17 22:40:52','n_diff_pfx01',2,1,'phone'),('ts21','phppos_locations','phone','2021-01-17 22:40:52','n_diff_pfx02',3,1,'phone,location_id'),('ts21','phppos_locations','phone','2021-01-17 22:40:52','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_locations','phone','2021-01-17 22:40:52','size',1,NULL,'Number of pages in the index'),('ts21','phppos_locations','phppos_locations_ibfk_1','2021-01-17 22:40:52','n_diff_pfx01',1,1,'company_logo'),('ts21','phppos_locations','phppos_locations_ibfk_1','2021-01-17 22:40:52','n_diff_pfx02',3,1,'company_logo,location_id'),('ts21','phppos_locations','phppos_locations_ibfk_1','2021-01-17 22:40:52','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_locations','phppos_locations_ibfk_1','2021-01-17 22:40:52','size',1,NULL,'Number of pages in the index'),('ts21','phppos_locations','phppos_locations_ibfk_2','2021-01-17 22:40:52','n_diff_pfx01',1,1,'tax_class_id'),('ts21','phppos_locations','phppos_locations_ibfk_2','2021-01-17 22:40:52','n_diff_pfx02',3,1,'tax_class_id,location_id'),('ts21','phppos_locations','phppos_locations_ibfk_2','2021-01-17 22:40:52','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_locations','phppos_locations_ibfk_2','2021-01-17 22:40:52','size',1,NULL,'Number of pages in the index'),('ts21','phppos_logs','PRIMARY','2021-01-17 21:37:55','n_diff_pfx01',0,1,'id'),('ts21','phppos_logs','PRIMARY','2021-01-17 21:37:55','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_logs','PRIMARY','2021-01-17 21:37:55','size',1,NULL,'Number of pages in the index'),('ts21','phppos_manufacturers','PRIMARY','2021-01-17 21:38:08','n_diff_pfx01',228,1,'id'),('ts21','phppos_manufacturers','PRIMARY','2021-01-17 21:38:08','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_manufacturers','PRIMARY','2021-01-17 21:38:08','size',1,NULL,'Number of pages in the index'),('ts21','phppos_manufacturers','deleted','2021-01-17 21:38:08','n_diff_pfx01',2,1,'deleted'),('ts21','phppos_manufacturers','deleted','2021-01-17 21:38:08','n_diff_pfx02',228,1,'deleted,id'),('ts21','phppos_manufacturers','deleted','2021-01-17 21:38:08','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_manufacturers','deleted','2021-01-17 21:38:08','size',1,NULL,'Number of pages in the index'),('ts21','phppos_manufacturers','name','2021-01-17 21:38:08','n_diff_pfx01',222,1,'name'),('ts21','phppos_manufacturers','name','2021-01-17 21:38:08','n_diff_pfx02',228,1,'name,id'),('ts21','phppos_manufacturers','name','2021-01-17 21:38:08','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_manufacturers','name','2021-01-17 21:38:08','size',1,NULL,'Number of pages in the index'),('ts21','phppos_message_receiver','PRIMARY','2021-01-17 21:38:04','n_diff_pfx01',0,1,'id'),('ts21','phppos_message_receiver','PRIMARY','2021-01-17 21:38:04','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_message_receiver','PRIMARY','2021-01-17 21:38:04','size',1,NULL,'Number of pages in the index'),('ts21','phppos_message_receiver','phppos_message_receiver_ibfk_2','2021-01-17 21:38:04','n_diff_pfx01',0,1,'receiver_id'),('ts21','phppos_message_receiver','phppos_message_receiver_ibfk_2','2021-01-17 21:38:04','n_diff_pfx02',0,1,'receiver_id,id'),('ts21','phppos_message_receiver','phppos_message_receiver_ibfk_2','2021-01-17 21:38:04','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_message_receiver','phppos_message_receiver_ibfk_2','2021-01-17 21:38:04','size',1,NULL,'Number of pages in the index'),('ts21','phppos_message_receiver','phppos_message_receiver_key_1','2021-01-17 21:38:04','n_diff_pfx01',0,1,'message_id'),('ts21','phppos_message_receiver','phppos_message_receiver_key_1','2021-01-17 21:38:04','n_diff_pfx02',0,1,'message_id,receiver_id'),('ts21','phppos_message_receiver','phppos_message_receiver_key_1','2021-01-17 21:38:04','n_diff_pfx03',0,1,'message_id,receiver_id,id'),('ts21','phppos_message_receiver','phppos_message_receiver_key_1','2021-01-17 21:38:04','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_message_receiver','phppos_message_receiver_key_1','2021-01-17 21:38:04','size',1,NULL,'Number of pages in the index'),('ts21','phppos_messages','PRIMARY','2021-01-17 21:38:01','n_diff_pfx01',0,1,'id'),('ts21','phppos_messages','PRIMARY','2021-01-17 21:38:01','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_messages','PRIMARY','2021-01-17 21:38:01','size',1,NULL,'Number of pages in the index'),('ts21','phppos_messages','phppos_messages_ibfk_1','2021-01-17 21:38:01','n_diff_pfx01',0,1,'sender_id'),('ts21','phppos_messages','phppos_messages_ibfk_1','2021-01-17 21:38:01','n_diff_pfx02',0,1,'sender_id,id'),('ts21','phppos_messages','phppos_messages_ibfk_1','2021-01-17 21:38:01','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_messages','phppos_messages_ibfk_1','2021-01-17 21:38:01','size',1,NULL,'Number of pages in the index'),('ts21','phppos_messages','phppos_messages_key_1','2021-01-17 21:38:01','n_diff_pfx01',0,1,'deleted'),('ts21','phppos_messages','phppos_messages_key_1','2021-01-17 21:38:01','n_diff_pfx02',0,1,'deleted,created_at'),('ts21','phppos_messages','phppos_messages_key_1','2021-01-17 21:38:01','n_diff_pfx03',0,1,'deleted,created_at,id'),('ts21','phppos_messages','phppos_messages_key_1','2021-01-17 21:38:01','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_messages','phppos_messages_key_1','2021-01-17 21:38:01','size',1,NULL,'Number of pages in the index'),('ts21','phppos_migrations','GEN_CLUST_INDEX','2021-01-17 21:38:05','n_diff_pfx01',0,1,'DB_ROW_ID'),('ts21','phppos_migrations','GEN_CLUST_INDEX','2021-01-17 21:38:05','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_migrations','GEN_CLUST_INDEX','2021-01-17 21:38:05','size',1,NULL,'Number of pages in the index'),('ts21','phppos_modifier_items','PRIMARY','2021-01-17 22:38:13','n_diff_pfx01',0,1,'id'),('ts21','phppos_modifier_items','PRIMARY','2021-01-17 22:38:13','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_modifier_items','PRIMARY','2021-01-17 22:38:13','size',1,NULL,'Number of pages in the index'),('ts21','phppos_modifier_items','phppos_modifier_items_ibfk_1','2021-01-17 22:38:13','n_diff_pfx01',0,1,'modifier_id'),('ts21','phppos_modifier_items','phppos_modifier_items_ibfk_1','2021-01-17 22:38:13','n_diff_pfx02',0,1,'modifier_id,id'),('ts21','phppos_modifier_items','phppos_modifier_items_ibfk_1','2021-01-17 22:38:13','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_modifier_items','phppos_modifier_items_ibfk_1','2021-01-17 22:38:13','size',1,NULL,'Number of pages in the index'),('ts21','phppos_modifier_items','sort_index','2021-01-17 22:38:13','n_diff_pfx01',0,1,'deleted'),('ts21','phppos_modifier_items','sort_index','2021-01-17 22:38:13','n_diff_pfx02',0,1,'deleted,modifier_id'),('ts21','phppos_modifier_items','sort_index','2021-01-17 22:38:13','n_diff_pfx03',0,1,'deleted,modifier_id,sort_order'),('ts21','phppos_modifier_items','sort_index','2021-01-17 22:38:13','n_diff_pfx04',0,1,'deleted,modifier_id,sort_order,id'),('ts21','phppos_modifier_items','sort_index','2021-01-17 22:38:13','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_modifier_items','sort_index','2021-01-17 22:38:13','size',1,NULL,'Number of pages in the index'),('ts21','phppos_modifiers','PRIMARY','2021-01-17 22:38:13','n_diff_pfx01',0,1,'id'),('ts21','phppos_modifiers','PRIMARY','2021-01-17 22:38:13','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_modifiers','PRIMARY','2021-01-17 22:38:13','size',1,NULL,'Number of pages in the index'),('ts21','phppos_modifiers','name','2021-01-17 22:38:13','n_diff_pfx01',0,1,'name'),('ts21','phppos_modifiers','name','2021-01-17 22:38:13','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_modifiers','name','2021-01-17 22:38:13','size',1,NULL,'Number of pages in the index'),('ts21','phppos_modifiers','sort_index','2021-01-17 22:38:13','n_diff_pfx01',0,1,'deleted'),('ts21','phppos_modifiers','sort_index','2021-01-17 22:38:13','n_diff_pfx02',0,1,'deleted,sort_order'),('ts21','phppos_modifiers','sort_index','2021-01-17 22:38:13','n_diff_pfx03',0,1,'deleted,sort_order,id'),('ts21','phppos_modifiers','sort_index','2021-01-17 22:38:13','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_modifiers','sort_index','2021-01-17 22:38:13','size',1,NULL,'Number of pages in the index'),('ts21','phppos_modules','PRIMARY','2021-01-17 21:38:17','n_diff_pfx01',15,1,'module_id'),('ts21','phppos_modules','PRIMARY','2021-01-17 21:38:17','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_modules','PRIMARY','2021-01-17 21:38:17','size',1,NULL,'Number of pages in the index'),('ts21','phppos_modules','desc_lang_key','2021-01-17 21:38:17','n_diff_pfx01',15,1,'desc_lang_key'),('ts21','phppos_modules','desc_lang_key','2021-01-17 21:38:17','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_modules','desc_lang_key','2021-01-17 21:38:17','size',1,NULL,'Number of pages in the index'),('ts21','phppos_modules','name_lang_key','2021-01-17 21:38:17','n_diff_pfx01',15,1,'name_lang_key'),('ts21','phppos_modules','name_lang_key','2021-01-17 21:38:17','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_modules','name_lang_key','2021-01-17 21:38:17','size',1,NULL,'Number of pages in the index'),('ts21','phppos_modules_actions','PRIMARY','2021-01-17 22:37:47','n_diff_pfx01',91,1,'action_id'),('ts21','phppos_modules_actions','PRIMARY','2021-01-17 22:37:47','n_diff_pfx02',133,1,'action_id,module_id'),('ts21','phppos_modules_actions','PRIMARY','2021-01-17 22:37:47','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_modules_actions','PRIMARY','2021-01-17 22:37:47','size',1,NULL,'Number of pages in the index'),('ts21','phppos_modules_actions','phppos_modules_actions_ibfk_1','2021-01-17 22:37:47','n_diff_pfx01',15,1,'module_id'),('ts21','phppos_modules_actions','phppos_modules_actions_ibfk_1','2021-01-17 22:37:47','n_diff_pfx02',133,1,'module_id,action_id'),('ts21','phppos_modules_actions','phppos_modules_actions_ibfk_1','2021-01-17 22:37:47','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_modules_actions','phppos_modules_actions_ibfk_1','2021-01-17 22:37:47','size',1,NULL,'Number of pages in the index'),('ts21','phppos_people','PRIMARY','2021-01-17 21:38:21','n_diff_pfx01',613,4,'person_id'),('ts21','phppos_people','PRIMARY','2021-01-17 21:38:21','n_leaf_pages',4,NULL,'Number of leaf pages in the index'),('ts21','phppos_people','PRIMARY','2021-01-17 21:38:21','size',5,NULL,'Number of pages in the index'),('ts21','phppos_people','email','2021-01-17 21:38:21','n_diff_pfx01',33,1,'email'),('ts21','phppos_people','email','2021-01-17 21:38:21','n_diff_pfx02',613,1,'email,person_id'),('ts21','phppos_people','email','2021-01-17 21:38:21','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_people','email','2021-01-17 21:38:21','size',1,NULL,'Number of pages in the index'),('ts21','phppos_people','first_name','2021-01-17 21:38:21','n_diff_pfx01',413,1,'first_name'),('ts21','phppos_people','first_name','2021-01-17 21:38:21','n_diff_pfx02',613,1,'first_name,person_id'),('ts21','phppos_people','first_name','2021-01-17 21:38:21','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_people','first_name','2021-01-17 21:38:21','size',1,NULL,'Number of pages in the index'),('ts21','phppos_people','full_name','2021-01-17 21:38:21','n_diff_pfx01',527,1,'full_name'),('ts21','phppos_people','full_name','2021-01-17 21:38:21','n_diff_pfx02',613,1,'full_name,person_id'),('ts21','phppos_people','full_name','2021-01-17 21:38:21','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_people','full_name','2021-01-17 21:38:21','size',1,NULL,'Number of pages in the index'),('ts21','phppos_people','last_name','2021-01-17 21:38:21','n_diff_pfx01',282,1,'last_name'),('ts21','phppos_people','last_name','2021-01-17 21:38:21','n_diff_pfx02',613,1,'last_name,person_id'),('ts21','phppos_people','last_name','2021-01-17 21:38:21','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_people','last_name','2021-01-17 21:38:21','size',1,NULL,'Number of pages in the index'),('ts21','phppos_people','phone_number','2021-01-17 21:38:21','n_diff_pfx01',140,1,'phone_number'),('ts21','phppos_people','phone_number','2021-01-17 21:38:21','n_diff_pfx02',613,1,'phone_number,person_id'),('ts21','phppos_people','phone_number','2021-01-17 21:38:21','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_people','phone_number','2021-01-17 21:38:21','size',1,NULL,'Number of pages in the index'),('ts21','phppos_people','phppos_people_ibfk_1','2021-01-17 21:38:21','n_diff_pfx01',18,1,'image_id'),('ts21','phppos_people','phppos_people_ibfk_1','2021-01-17 21:38:21','n_diff_pfx02',613,1,'image_id,person_id'),('ts21','phppos_people','phppos_people_ibfk_1','2021-01-17 21:38:21','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_people','phppos_people_ibfk_1','2021-01-17 21:38:21','size',1,NULL,'Number of pages in the index'),('ts21','phppos_people_files','PRIMARY','2021-01-17 21:38:14','n_diff_pfx01',0,1,'id'),('ts21','phppos_people_files','PRIMARY','2021-01-17 21:38:14','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_people_files','PRIMARY','2021-01-17 21:38:14','size',1,NULL,'Number of pages in the index'),('ts21','phppos_people_files','phppos_people_files_ibfk_1','2021-01-17 21:38:14','n_diff_pfx01',0,1,'file_id'),('ts21','phppos_people_files','phppos_people_files_ibfk_1','2021-01-17 21:38:14','n_diff_pfx02',0,1,'file_id,id'),('ts21','phppos_people_files','phppos_people_files_ibfk_1','2021-01-17 21:38:14','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_people_files','phppos_people_files_ibfk_1','2021-01-17 21:38:14','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions','PRIMARY','2021-01-17 21:38:27','n_diff_pfx01',12,1,'module_id'),('ts21','phppos_permissions','PRIMARY','2021-01-17 21:38:27','n_diff_pfx02',44,1,'module_id,person_id'),('ts21','phppos_permissions','PRIMARY','2021-01-17 21:38:27','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions','PRIMARY','2021-01-17 21:38:27','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions','person_id','2021-01-17 21:38:27','n_diff_pfx01',8,1,'person_id'),('ts21','phppos_permissions','person_id','2021-01-17 21:38:27','n_diff_pfx02',44,1,'person_id,module_id'),('ts21','phppos_permissions','person_id','2021-01-17 21:38:27','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions','person_id','2021-01-17 21:38:27','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_actions','PRIMARY','2021-01-17 22:40:35','n_diff_pfx01',12,2,'module_id'),('ts21','phppos_permissions_actions','PRIMARY','2021-01-17 22:40:35','n_diff_pfx02',56,2,'module_id,person_id'),('ts21','phppos_permissions_actions','PRIMARY','2021-01-17 22:40:35','n_diff_pfx03',569,2,'module_id,person_id,action_id'),('ts21','phppos_permissions_actions','PRIMARY','2021-01-17 22:40:35','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_actions','PRIMARY','2021-01-17 22:40:35','size',3,NULL,'Number of pages in the index'),('ts21','phppos_permissions_actions','phppos_permissions_actions_ibfk_2','2021-01-17 22:40:35','n_diff_pfx01',9,2,'person_id'),('ts21','phppos_permissions_actions','phppos_permissions_actions_ibfk_2','2021-01-17 22:40:35','n_diff_pfx02',56,2,'person_id,module_id'),('ts21','phppos_permissions_actions','phppos_permissions_actions_ibfk_2','2021-01-17 22:40:35','n_diff_pfx03',569,2,'person_id,module_id,action_id'),('ts21','phppos_permissions_actions','phppos_permissions_actions_ibfk_2','2021-01-17 22:40:35','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_actions','phppos_permissions_actions_ibfk_2','2021-01-17 22:40:35','size',3,NULL,'Number of pages in the index'),('ts21','phppos_permissions_actions','phppos_permissions_actions_ibfk_3','2021-01-17 22:40:35','n_diff_pfx01',98,2,'action_id'),('ts21','phppos_permissions_actions','phppos_permissions_actions_ibfk_3','2021-01-17 22:40:35','n_diff_pfx02',128,2,'action_id,module_id'),('ts21','phppos_permissions_actions','phppos_permissions_actions_ibfk_3','2021-01-17 22:40:35','n_diff_pfx03',569,2,'action_id,module_id,person_id'),('ts21','phppos_permissions_actions','phppos_permissions_actions_ibfk_3','2021-01-17 22:40:35','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_actions','phppos_permissions_actions_ibfk_3','2021-01-17 22:40:35','size',3,NULL,'Number of pages in the index'),('ts21','phppos_permissions_actions_locations','PRIMARY','2021-01-17 22:36:49','n_diff_pfx01',0,1,'module_id'),('ts21','phppos_permissions_actions_locations','PRIMARY','2021-01-17 22:36:49','n_diff_pfx02',0,1,'module_id,person_id'),('ts21','phppos_permissions_actions_locations','PRIMARY','2021-01-17 22:36:49','n_diff_pfx03',0,1,'module_id,person_id,action_id'),('ts21','phppos_permissions_actions_locations','PRIMARY','2021-01-17 22:36:49','n_diff_pfx04',0,1,'module_id,person_id,action_id,location_id'),('ts21','phppos_permissions_actions_locations','PRIMARY','2021-01-17 22:36:49','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_actions_locations','PRIMARY','2021-01-17 22:36:49','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_2','2021-01-17 22:36:49','n_diff_pfx01',0,1,'person_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_2','2021-01-17 22:36:49','n_diff_pfx02',0,1,'person_id,module_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_2','2021-01-17 22:36:49','n_diff_pfx03',0,1,'person_id,module_id,action_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_2','2021-01-17 22:36:49','n_diff_pfx04',0,1,'person_id,module_id,action_id,location_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_2','2021-01-17 22:36:49','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_2','2021-01-17 22:36:49','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_3','2021-01-17 22:36:49','n_diff_pfx01',0,1,'action_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_3','2021-01-17 22:36:49','n_diff_pfx02',0,1,'action_id,module_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_3','2021-01-17 22:36:49','n_diff_pfx03',0,1,'action_id,module_id,person_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_3','2021-01-17 22:36:49','n_diff_pfx04',0,1,'action_id,module_id,person_id,location_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_3','2021-01-17 22:36:49','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_3','2021-01-17 22:36:49','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_4','2021-01-17 22:36:49','n_diff_pfx01',0,1,'location_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_4','2021-01-17 22:36:49','n_diff_pfx02',0,1,'location_id,module_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_4','2021-01-17 22:36:49','n_diff_pfx03',0,1,'location_id,module_id,person_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_4','2021-01-17 22:36:49','n_diff_pfx04',0,1,'location_id,module_id,person_id,action_id'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_4','2021-01-17 22:36:49','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_actions_locations','phppos_permissions_actions_locations_ibfk_4','2021-01-17 22:36:49','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_locations','PRIMARY','2021-01-17 22:36:49','n_diff_pfx01',0,1,'module_id'),('ts21','phppos_permissions_locations','PRIMARY','2021-01-17 22:36:49','n_diff_pfx02',0,1,'module_id,person_id'),('ts21','phppos_permissions_locations','PRIMARY','2021-01-17 22:36:49','n_diff_pfx03',0,1,'module_id,person_id,location_id'),('ts21','phppos_permissions_locations','PRIMARY','2021-01-17 22:36:49','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_locations','PRIMARY','2021-01-17 22:36:49','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_locations','phppos_permissions_locations_ibfk_1','2021-01-17 22:36:49','n_diff_pfx01',0,1,'person_id'),('ts21','phppos_permissions_locations','phppos_permissions_locations_ibfk_1','2021-01-17 22:36:49','n_diff_pfx02',0,1,'person_id,module_id'),('ts21','phppos_permissions_locations','phppos_permissions_locations_ibfk_1','2021-01-17 22:36:49','n_diff_pfx03',0,1,'person_id,module_id,location_id'),('ts21','phppos_permissions_locations','phppos_permissions_locations_ibfk_1','2021-01-17 22:36:49','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_locations','phppos_permissions_locations_ibfk_1','2021-01-17 22:36:49','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_locations','phppos_permissions_locations_ibfk_3','2021-01-17 22:36:49','n_diff_pfx01',0,1,'location_id'),('ts21','phppos_permissions_locations','phppos_permissions_locations_ibfk_3','2021-01-17 22:36:49','n_diff_pfx02',0,1,'location_id,module_id'),('ts21','phppos_permissions_locations','phppos_permissions_locations_ibfk_3','2021-01-17 22:36:49','n_diff_pfx03',0,1,'location_id,module_id,person_id'),('ts21','phppos_permissions_locations','phppos_permissions_locations_ibfk_3','2021-01-17 22:36:49','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_locations','phppos_permissions_locations_ibfk_3','2021-01-17 22:36:49','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template','PRIMARY','2021-01-17 22:39:34','n_diff_pfx01',0,1,'template_id'),('ts21','phppos_permissions_template','PRIMARY','2021-01-17 22:39:34','n_diff_pfx02',0,1,'template_id,module_id'),('ts21','phppos_permissions_template','PRIMARY','2021-01-17 22:39:34','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template','PRIMARY','2021-01-17 22:39:34','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template','phppos_permissions_template_ibfk_1','2021-01-17 22:39:34','n_diff_pfx01',0,1,'module_id'),('ts21','phppos_permissions_template','phppos_permissions_template_ibfk_1','2021-01-17 22:39:34','n_diff_pfx02',0,1,'module_id,template_id'),('ts21','phppos_permissions_template','phppos_permissions_template_ibfk_1','2021-01-17 22:39:34','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template','phppos_permissions_template_ibfk_1','2021-01-17 22:39:34','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_actions','PRIMARY','2021-01-17 22:39:34','n_diff_pfx01',0,1,'template_id'),('ts21','phppos_permissions_template_actions','PRIMARY','2021-01-17 22:39:34','n_diff_pfx02',0,1,'template_id,module_id'),('ts21','phppos_permissions_template_actions','PRIMARY','2021-01-17 22:39:34','n_diff_pfx03',0,1,'template_id,module_id,action_id'),('ts21','phppos_permissions_template_actions','PRIMARY','2021-01-17 22:39:34','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_actions','PRIMARY','2021-01-17 22:39:34','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_1','2021-01-17 22:39:34','n_diff_pfx01',0,1,'module_id'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_1','2021-01-17 22:39:34','n_diff_pfx02',0,1,'module_id,template_id'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_1','2021-01-17 22:39:34','n_diff_pfx03',0,1,'module_id,template_id,action_id'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_1','2021-01-17 22:39:34','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_1','2021-01-17 22:39:34','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_2','2021-01-17 22:39:34','n_diff_pfx01',0,1,'action_id'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_2','2021-01-17 22:39:34','n_diff_pfx02',0,1,'action_id,template_id'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_2','2021-01-17 22:39:34','n_diff_pfx03',0,1,'action_id,template_id,module_id'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_2','2021-01-17 22:39:34','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_2','2021-01-17 22:39:34','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_3','2021-01-17 22:39:34','n_diff_pfx01',0,1,'template_id'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_3','2021-01-17 22:39:34','n_diff_pfx02',0,1,'template_id,module_id'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_3','2021-01-17 22:39:34','n_diff_pfx03',0,1,'template_id,module_id,action_id'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_3','2021-01-17 22:39:34','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_actions','phppos_permissions_template_actions_ibfk_3','2021-01-17 22:39:34','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_actions_locations','PRIMARY','2021-01-17 22:39:35','n_diff_pfx01',0,1,'template_id'),('ts21','phppos_permissions_template_actions_locations','PRIMARY','2021-01-17 22:39:35','n_diff_pfx02',0,1,'template_id,module_id'),('ts21','phppos_permissions_template_actions_locations','PRIMARY','2021-01-17 22:39:35','n_diff_pfx03',0,1,'template_id,module_id,action_id'),('ts21','phppos_permissions_template_actions_locations','PRIMARY','2021-01-17 22:39:35','n_diff_pfx04',0,1,'template_id,module_id,action_id,location_id'),('ts21','phppos_permissions_template_actions_locations','PRIMARY','2021-01-17 22:39:35','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_actions_locations','PRIMARY','2021-01-17 22:39:35','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_1','2021-01-17 22:39:35','n_diff_pfx01',0,1,'module_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_1','2021-01-17 22:39:35','n_diff_pfx02',0,1,'module_id,template_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_1','2021-01-17 22:39:35','n_diff_pfx03',0,1,'module_id,template_id,action_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_1','2021-01-17 22:39:35','n_diff_pfx04',0,1,'module_id,template_id,action_id,location_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_1','2021-01-17 22:39:35','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_1','2021-01-17 22:39:35','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_2','2021-01-17 22:39:35','n_diff_pfx01',0,1,'action_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_2','2021-01-17 22:39:35','n_diff_pfx02',0,1,'action_id,template_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_2','2021-01-17 22:39:35','n_diff_pfx03',0,1,'action_id,template_id,module_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_2','2021-01-17 22:39:35','n_diff_pfx04',0,1,'action_id,template_id,module_id,location_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_2','2021-01-17 22:39:35','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_2','2021-01-17 22:39:35','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_3','2021-01-17 22:39:35','n_diff_pfx01',0,1,'location_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_3','2021-01-17 22:39:35','n_diff_pfx02',0,1,'location_id,template_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_3','2021-01-17 22:39:35','n_diff_pfx03',0,1,'location_id,template_id,module_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_3','2021-01-17 22:39:35','n_diff_pfx04',0,1,'location_id,template_id,module_id,action_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_3','2021-01-17 22:39:35','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_3','2021-01-17 22:39:35','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_4','2021-01-17 22:39:35','n_diff_pfx01',0,1,'template_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_4','2021-01-17 22:39:35','n_diff_pfx02',0,1,'template_id,module_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_4','2021-01-17 22:39:35','n_diff_pfx03',0,1,'template_id,module_id,action_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_4','2021-01-17 22:39:35','n_diff_pfx04',0,1,'template_id,module_id,action_id,location_id'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_4','2021-01-17 22:39:35','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_actions_locations','phppos_permissions_template_actions_locations_ibfk_4','2021-01-17 22:39:35','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_locations','PRIMARY','2021-01-17 22:39:36','n_diff_pfx01',0,1,'template_id'),('ts21','phppos_permissions_template_locations','PRIMARY','2021-01-17 22:39:36','n_diff_pfx02',0,1,'template_id,module_id'),('ts21','phppos_permissions_template_locations','PRIMARY','2021-01-17 22:39:36','n_diff_pfx03',0,1,'template_id,module_id,location_id'),('ts21','phppos_permissions_template_locations','PRIMARY','2021-01-17 22:39:36','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_locations','PRIMARY','2021-01-17 22:39:36','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_1','2021-01-17 22:39:36','n_diff_pfx01',0,1,'module_id'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_1','2021-01-17 22:39:36','n_diff_pfx02',0,1,'module_id,template_id'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_1','2021-01-17 22:39:36','n_diff_pfx03',0,1,'module_id,template_id,location_id'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_1','2021-01-17 22:39:36','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_1','2021-01-17 22:39:36','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_2','2021-01-17 22:39:36','n_diff_pfx01',0,1,'location_id'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_2','2021-01-17 22:39:36','n_diff_pfx02',0,1,'location_id,template_id'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_2','2021-01-17 22:39:36','n_diff_pfx03',0,1,'location_id,template_id,module_id'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_2','2021-01-17 22:39:36','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_2','2021-01-17 22:39:36','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_3','2021-01-17 22:39:36','n_diff_pfx01',0,1,'template_id'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_3','2021-01-17 22:39:36','n_diff_pfx02',0,1,'template_id,module_id'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_3','2021-01-17 22:39:36','n_diff_pfx03',0,1,'template_id,module_id,location_id'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_3','2021-01-17 22:39:36','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_template_locations','phppos_permissions_template_locations_ibfk_3','2021-01-17 22:39:36','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_templates','PRIMARY','2021-01-17 22:39:33','n_diff_pfx01',0,1,'id'),('ts21','phppos_permissions_templates','PRIMARY','2021-01-17 22:39:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_templates','PRIMARY','2021-01-17 22:39:33','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_templates','deleted','2021-01-17 22:39:33','n_diff_pfx01',0,1,'deleted'),('ts21','phppos_permissions_templates','deleted','2021-01-17 22:39:33','n_diff_pfx02',0,1,'deleted,id'),('ts21','phppos_permissions_templates','deleted','2021-01-17 22:39:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_templates','deleted','2021-01-17 22:39:33','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_templates','name','2021-01-17 22:39:33','n_diff_pfx01',0,1,'name'),('ts21','phppos_permissions_templates','name','2021-01-17 22:39:33','n_diff_pfx02',0,1,'name,id'),('ts21','phppos_permissions_templates','name','2021-01-17 22:39:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_templates','name','2021-01-17 22:39:33','size',1,NULL,'Number of pages in the index'),('ts21','phppos_permissions_templates','name_deleted','2021-01-17 22:39:33','n_diff_pfx01',0,1,'name'),('ts21','phppos_permissions_templates','name_deleted','2021-01-17 22:39:33','n_diff_pfx02',0,1,'name,deleted'),('ts21','phppos_permissions_templates','name_deleted','2021-01-17 22:39:33','n_diff_pfx03',0,1,'name,deleted,id'),('ts21','phppos_permissions_templates','name_deleted','2021-01-17 22:39:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_permissions_templates','name_deleted','2021-01-17 22:39:33','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules','PRIMARY','2021-01-17 22:38:48','n_diff_pfx01',3,1,'id'),('ts21','phppos_price_rules','PRIMARY','2021-01-17 22:38:48','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules','PRIMARY','2021-01-17 22:38:48','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules','end_date','2021-01-17 22:38:48','n_diff_pfx01',3,1,'end_date'),('ts21','phppos_price_rules','end_date','2021-01-17 22:38:48','n_diff_pfx02',3,1,'end_date,id'),('ts21','phppos_price_rules','end_date','2021-01-17 22:38:48','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules','end_date','2021-01-17 22:38:48','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules','name','2021-01-17 22:38:48','n_diff_pfx01',3,1,'name'),('ts21','phppos_price_rules','name','2021-01-17 22:38:48','n_diff_pfx02',3,1,'name,id'),('ts21','phppos_price_rules','name','2021-01-17 22:38:48','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules','name','2021-01-17 22:38:48','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules','start_date','2021-01-17 22:38:48','n_diff_pfx01',3,1,'start_date'),('ts21','phppos_price_rules','start_date','2021-01-17 22:38:48','n_diff_pfx02',3,1,'start_date,id'),('ts21','phppos_price_rules','start_date','2021-01-17 22:38:48','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules','start_date','2021-01-17 22:38:48','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules','type','2021-01-17 22:38:48','n_diff_pfx01',2,1,'type'),('ts21','phppos_price_rules','type','2021-01-17 22:38:48','n_diff_pfx02',3,1,'type,id'),('ts21','phppos_price_rules','type','2021-01-17 22:38:48','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules','type','2021-01-17 22:38:48','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_categories','PRIMARY','2021-01-17 21:38:23','n_diff_pfx01',0,1,'id'),('ts21','phppos_price_rules_categories','PRIMARY','2021-01-17 21:38:23','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_categories','PRIMARY','2021-01-17 21:38:23','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_categories','phppos_price_rules_categories_ibfk_1','2021-01-17 21:38:23','n_diff_pfx01',0,1,'rule_id'),('ts21','phppos_price_rules_categories','phppos_price_rules_categories_ibfk_1','2021-01-17 21:38:23','n_diff_pfx02',0,1,'rule_id,id'),('ts21','phppos_price_rules_categories','phppos_price_rules_categories_ibfk_1','2021-01-17 21:38:23','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_categories','phppos_price_rules_categories_ibfk_1','2021-01-17 21:38:23','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_categories','phppos_price_rules_categories_ibfk_2','2021-01-17 21:38:23','n_diff_pfx01',0,1,'category_id'),('ts21','phppos_price_rules_categories','phppos_price_rules_categories_ibfk_2','2021-01-17 21:38:23','n_diff_pfx02',0,1,'category_id,id'),('ts21','phppos_price_rules_categories','phppos_price_rules_categories_ibfk_2','2021-01-17 21:38:23','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_categories','phppos_price_rules_categories_ibfk_2','2021-01-17 21:38:23','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_item_kits','PRIMARY','2021-01-17 21:38:28','n_diff_pfx01',0,1,'id'),('ts21','phppos_price_rules_item_kits','PRIMARY','2021-01-17 21:38:28','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_item_kits','PRIMARY','2021-01-17 21:38:28','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_item_kits','phppos_price_rules_item_kits_ibfk_1','2021-01-17 21:38:28','n_diff_pfx01',0,1,'rule_id'),('ts21','phppos_price_rules_item_kits','phppos_price_rules_item_kits_ibfk_1','2021-01-17 21:38:28','n_diff_pfx02',0,1,'rule_id,id'),('ts21','phppos_price_rules_item_kits','phppos_price_rules_item_kits_ibfk_1','2021-01-17 21:38:28','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_item_kits','phppos_price_rules_item_kits_ibfk_1','2021-01-17 21:38:28','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_item_kits','phppos_price_rules_item_kits_ibfk_2','2021-01-17 21:38:28','n_diff_pfx01',0,1,'item_kit_id'),('ts21','phppos_price_rules_item_kits','phppos_price_rules_item_kits_ibfk_2','2021-01-17 21:38:28','n_diff_pfx02',0,1,'item_kit_id,id'),('ts21','phppos_price_rules_item_kits','phppos_price_rules_item_kits_ibfk_2','2021-01-17 21:38:28','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_item_kits','phppos_price_rules_item_kits_ibfk_2','2021-01-17 21:38:28','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_items','PRIMARY','2021-01-17 21:38:42','n_diff_pfx01',22,1,'id'),('ts21','phppos_price_rules_items','PRIMARY','2021-01-17 21:38:42','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_items','PRIMARY','2021-01-17 21:38:42','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_items','phppos_price_rules_items_ibfk_1','2021-01-17 21:38:42','n_diff_pfx01',3,1,'rule_id'),('ts21','phppos_price_rules_items','phppos_price_rules_items_ibfk_1','2021-01-17 21:38:42','n_diff_pfx02',22,1,'rule_id,id'),('ts21','phppos_price_rules_items','phppos_price_rules_items_ibfk_1','2021-01-17 21:38:42','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_items','phppos_price_rules_items_ibfk_1','2021-01-17 21:38:42','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_items','phppos_price_rules_items_ibfk_2','2021-01-17 21:38:42','n_diff_pfx01',22,1,'item_id'),('ts21','phppos_price_rules_items','phppos_price_rules_items_ibfk_2','2021-01-17 21:38:42','n_diff_pfx02',22,1,'item_id,id'),('ts21','phppos_price_rules_items','phppos_price_rules_items_ibfk_2','2021-01-17 21:38:42','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_items','phppos_price_rules_items_ibfk_2','2021-01-17 21:38:42','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_locations','PRIMARY','2021-01-17 22:32:47','n_diff_pfx01',0,1,'id'),('ts21','phppos_price_rules_locations','PRIMARY','2021-01-17 22:32:47','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_locations','PRIMARY','2021-01-17 22:32:47','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_locations','phppos_price_rules_locations_ibfk_1','2021-01-17 22:32:47','n_diff_pfx01',0,1,'rule_id'),('ts21','phppos_price_rules_locations','phppos_price_rules_locations_ibfk_1','2021-01-17 22:32:47','n_diff_pfx02',0,1,'rule_id,id'),('ts21','phppos_price_rules_locations','phppos_price_rules_locations_ibfk_1','2021-01-17 22:32:47','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_locations','phppos_price_rules_locations_ibfk_1','2021-01-17 22:32:47','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_locations','phppos_price_rules_locations_ibfk_2','2021-01-17 22:32:47','n_diff_pfx01',0,1,'location_id'),('ts21','phppos_price_rules_locations','phppos_price_rules_locations_ibfk_2','2021-01-17 22:32:47','n_diff_pfx02',0,1,'location_id,id'),('ts21','phppos_price_rules_locations','phppos_price_rules_locations_ibfk_2','2021-01-17 22:32:47','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_locations','phppos_price_rules_locations_ibfk_2','2021-01-17 22:32:47','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_manufacturers','PRIMARY','2021-01-17 22:37:36','n_diff_pfx01',0,1,'id'),('ts21','phppos_price_rules_manufacturers','PRIMARY','2021-01-17 22:37:36','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_manufacturers','PRIMARY','2021-01-17 22:37:36','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_manufacturers','phppos_price_rules_manufacturers_ibfk_1','2021-01-17 22:37:36','n_diff_pfx01',0,1,'rule_id'),('ts21','phppos_price_rules_manufacturers','phppos_price_rules_manufacturers_ibfk_1','2021-01-17 22:37:36','n_diff_pfx02',0,1,'rule_id,id'),('ts21','phppos_price_rules_manufacturers','phppos_price_rules_manufacturers_ibfk_1','2021-01-17 22:37:36','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_manufacturers','phppos_price_rules_manufacturers_ibfk_1','2021-01-17 22:37:36','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_manufacturers','phppos_price_rules_manufacturers_ibfk_2','2021-01-17 22:37:36','n_diff_pfx01',0,1,'manufacturer_id'),('ts21','phppos_price_rules_manufacturers','phppos_price_rules_manufacturers_ibfk_2','2021-01-17 22:37:36','n_diff_pfx02',0,1,'manufacturer_id,id'),('ts21','phppos_price_rules_manufacturers','phppos_price_rules_manufacturers_ibfk_2','2021-01-17 22:37:36','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_manufacturers','phppos_price_rules_manufacturers_ibfk_2','2021-01-17 22:37:36','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_price_breaks','PRIMARY','2021-01-17 21:38:47','n_diff_pfx01',2,1,'id'),('ts21','phppos_price_rules_price_breaks','PRIMARY','2021-01-17 21:38:47','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_price_breaks','PRIMARY','2021-01-17 21:38:47','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_price_breaks','phppos_price_rules_custom_ibfk_1','2021-01-17 21:38:47','n_diff_pfx01',1,1,'rule_id'),('ts21','phppos_price_rules_price_breaks','phppos_price_rules_custom_ibfk_1','2021-01-17 21:38:47','n_diff_pfx02',2,1,'rule_id,id'),('ts21','phppos_price_rules_price_breaks','phppos_price_rules_custom_ibfk_1','2021-01-17 21:38:47','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_price_breaks','phppos_price_rules_custom_ibfk_1','2021-01-17 21:38:47','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_tags','PRIMARY','2021-01-17 21:38:33','n_diff_pfx01',0,1,'id'),('ts21','phppos_price_rules_tags','PRIMARY','2021-01-17 21:38:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_tags','PRIMARY','2021-01-17 21:38:33','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_tags','phppos_price_rules_tags_ibfk_1','2021-01-17 21:38:33','n_diff_pfx01',0,1,'rule_id'),('ts21','phppos_price_rules_tags','phppos_price_rules_tags_ibfk_1','2021-01-17 21:38:33','n_diff_pfx02',0,1,'rule_id,id'),('ts21','phppos_price_rules_tags','phppos_price_rules_tags_ibfk_1','2021-01-17 21:38:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_tags','phppos_price_rules_tags_ibfk_1','2021-01-17 21:38:33','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_tags','phppos_price_rules_tags_ibfk_2','2021-01-17 21:38:33','n_diff_pfx01',0,1,'tag_id'),('ts21','phppos_price_rules_tags','phppos_price_rules_tags_ibfk_2','2021-01-17 21:38:33','n_diff_pfx02',0,1,'tag_id,id'),('ts21','phppos_price_rules_tags','phppos_price_rules_tags_ibfk_2','2021-01-17 21:38:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_tags','phppos_price_rules_tags_ibfk_2','2021-01-17 21:38:33','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_tiers_exclude','PRIMARY','2021-01-17 22:40:34','n_diff_pfx01',0,1,'price_rule_id'),('ts21','phppos_price_rules_tiers_exclude','PRIMARY','2021-01-17 22:40:34','n_diff_pfx02',0,1,'price_rule_id,tier_id'),('ts21','phppos_price_rules_tiers_exclude','PRIMARY','2021-01-17 22:40:34','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_tiers_exclude','PRIMARY','2021-01-17 22:40:34','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_rules_tiers_exclude','phppos_price_rules_tiers_ibfk_2','2021-01-17 22:40:34','n_diff_pfx01',0,1,'tier_id'),('ts21','phppos_price_rules_tiers_exclude','phppos_price_rules_tiers_ibfk_2','2021-01-17 22:40:34','n_diff_pfx02',0,1,'tier_id,price_rule_id'),('ts21','phppos_price_rules_tiers_exclude','phppos_price_rules_tiers_ibfk_2','2021-01-17 22:40:34','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_rules_tiers_exclude','phppos_price_rules_tiers_ibfk_2','2021-01-17 22:40:34','size',1,NULL,'Number of pages in the index'),('ts21','phppos_price_tiers','PRIMARY','2021-01-17 21:38:35','n_diff_pfx01',0,1,'id'),('ts21','phppos_price_tiers','PRIMARY','2021-01-17 21:38:35','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_price_tiers','PRIMARY','2021-01-17 21:38:35','size',1,NULL,'Number of pages in the index'),('ts21','phppos_receivings','PRIMARY','2021-01-17 22:40:00','n_diff_pfx01',1682,19,'receiving_id'),('ts21','phppos_receivings','PRIMARY','2021-01-17 22:40:00','n_leaf_pages',19,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','PRIMARY','2021-01-17 22:40:00','size',20,NULL,'Number of pages in the index'),('ts21','phppos_receivings','custom_field_10_value','2021-01-17 22:40:00','n_diff_pfx01',1,2,'custom_field_10_value'),('ts21','phppos_receivings','custom_field_10_value','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'custom_field_10_value,receiving_id'),('ts21','phppos_receivings','custom_field_10_value','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','custom_field_10_value','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','custom_field_1_value','2021-01-17 22:40:00','n_diff_pfx01',94,2,'custom_field_1_value'),('ts21','phppos_receivings','custom_field_1_value','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'custom_field_1_value,receiving_id'),('ts21','phppos_receivings','custom_field_1_value','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','custom_field_1_value','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','custom_field_2_value','2021-01-17 22:40:00','n_diff_pfx01',2,2,'custom_field_2_value'),('ts21','phppos_receivings','custom_field_2_value','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'custom_field_2_value,receiving_id'),('ts21','phppos_receivings','custom_field_2_value','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','custom_field_2_value','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','custom_field_3_value','2021-01-17 22:40:00','n_diff_pfx01',13,2,'custom_field_3_value'),('ts21','phppos_receivings','custom_field_3_value','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'custom_field_3_value,receiving_id'),('ts21','phppos_receivings','custom_field_3_value','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','custom_field_3_value','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','custom_field_4_value','2021-01-17 22:40:00','n_diff_pfx01',3,2,'custom_field_4_value'),('ts21','phppos_receivings','custom_field_4_value','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'custom_field_4_value,receiving_id'),('ts21','phppos_receivings','custom_field_4_value','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','custom_field_4_value','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','custom_field_5_value','2021-01-17 22:40:00','n_diff_pfx01',53,2,'custom_field_5_value'),('ts21','phppos_receivings','custom_field_5_value','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'custom_field_5_value,receiving_id'),('ts21','phppos_receivings','custom_field_5_value','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','custom_field_5_value','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','custom_field_6_value','2021-01-17 22:40:00','n_diff_pfx01',1,2,'custom_field_6_value'),('ts21','phppos_receivings','custom_field_6_value','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'custom_field_6_value,receiving_id'),('ts21','phppos_receivings','custom_field_6_value','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','custom_field_6_value','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','custom_field_7_value','2021-01-17 22:40:00','n_diff_pfx01',1,2,'custom_field_7_value'),('ts21','phppos_receivings','custom_field_7_value','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'custom_field_7_value,receiving_id'),('ts21','phppos_receivings','custom_field_7_value','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','custom_field_7_value','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','custom_field_8_value','2021-01-17 22:40:00','n_diff_pfx01',1,2,'custom_field_8_value'),('ts21','phppos_receivings','custom_field_8_value','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'custom_field_8_value,receiving_id'),('ts21','phppos_receivings','custom_field_8_value','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','custom_field_8_value','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','custom_field_9_value','2021-01-17 22:40:00','n_diff_pfx01',1,2,'custom_field_9_value'),('ts21','phppos_receivings','custom_field_9_value','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'custom_field_9_value,receiving_id'),('ts21','phppos_receivings','custom_field_9_value','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','custom_field_9_value','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','deleted','2021-01-17 22:40:00','n_diff_pfx01',2,2,'deleted'),('ts21','phppos_receivings','deleted','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'deleted,receiving_id'),('ts21','phppos_receivings','deleted','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','deleted','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','employee_id','2021-01-17 22:40:00','n_diff_pfx01',4,2,'employee_id'),('ts21','phppos_receivings','employee_id','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'employee_id,receiving_id'),('ts21','phppos_receivings','employee_id','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','employee_id','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','location_id','2021-01-17 22:40:00','n_diff_pfx01',3,2,'location_id'),('ts21','phppos_receivings','location_id','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'location_id,receiving_id'),('ts21','phppos_receivings','location_id','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','location_id','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','recv_search','2021-01-17 22:40:00','n_diff_pfx01',3,7,'location_id'),('ts21','phppos_receivings','recv_search','2021-01-17 22:40:00','n_diff_pfx02',4,7,'location_id,deleted'),('ts21','phppos_receivings','recv_search','2021-01-17 22:40:00','n_diff_pfx03',1679,7,'location_id,deleted,receiving_time'),('ts21','phppos_receivings','recv_search','2021-01-17 22:40:00','n_diff_pfx04',1679,7,'location_id,deleted,receiving_time,suspended'),('ts21','phppos_receivings','recv_search','2021-01-17 22:40:00','n_diff_pfx05',1680,7,'location_id,deleted,receiving_time,suspended,store_account_payment'),('ts21','phppos_receivings','recv_search','2021-01-17 22:40:00','n_diff_pfx06',1681,7,'location_id,deleted,receiving_time,suspended,store_account_payment,total_quantity_purchased'),('ts21','phppos_receivings','recv_search','2021-01-17 22:40:00','n_diff_pfx07',1682,7,'location_id,deleted,receiving_time,suspended,store_account_payment,total_quantity_purchased,receiving_id'),('ts21','phppos_receivings','recv_search','2021-01-17 22:40:00','n_leaf_pages',7,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','recv_search','2021-01-17 22:40:00','size',8,NULL,'Number of pages in the index'),('ts21','phppos_receivings','signature_image_id','2021-01-17 22:40:00','n_diff_pfx01',1,2,'signature_image_id'),('ts21','phppos_receivings','signature_image_id','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'signature_image_id,receiving_id'),('ts21','phppos_receivings','signature_image_id','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','signature_image_id','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','supplier_id','2021-01-17 22:40:00','n_diff_pfx01',130,2,'supplier_id'),('ts21','phppos_receivings','supplier_id','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'supplier_id,receiving_id'),('ts21','phppos_receivings','supplier_id','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','supplier_id','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings','transfer_to_location_id','2021-01-17 22:40:00','n_diff_pfx01',4,2,'transfer_to_location_id'),('ts21','phppos_receivings','transfer_to_location_id','2021-01-17 22:40:00','n_diff_pfx02',1682,2,'transfer_to_location_id,receiving_id'),('ts21','phppos_receivings','transfer_to_location_id','2021-01-17 22:40:00','n_leaf_pages',2,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings','transfer_to_location_id','2021-01-17 22:40:00','size',3,NULL,'Number of pages in the index'),('ts21','phppos_receivings_items','PRIMARY','2021-01-17 22:36:48','n_diff_pfx01',1608,20,'receiving_id'),('ts21','phppos_receivings_items','PRIMARY','2021-01-17 22:36:48','n_diff_pfx02',10083,20,'receiving_id,item_id'),('ts21','phppos_receivings_items','PRIMARY','2021-01-17 22:36:48','n_diff_pfx03',14133,20,'receiving_id,item_id,line'),('ts21','phppos_receivings_items','PRIMARY','2021-01-17 22:36:48','n_leaf_pages',122,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings_items','PRIMARY','2021-01-17 22:36:48','size',161,NULL,'Number of pages in the index'),('ts21','phppos_receivings_items','item_id','2021-01-17 22:36:48','n_diff_pfx01',3691,26,'item_id'),('ts21','phppos_receivings_items','item_id','2021-01-17 22:36:48','n_diff_pfx02',9646,26,'item_id,receiving_id'),('ts21','phppos_receivings_items','item_id','2021-01-17 22:36:48','n_diff_pfx03',14073,26,'item_id,receiving_id,line'),('ts21','phppos_receivings_items','item_id','2021-01-17 22:36:48','n_leaf_pages',26,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings_items','item_id','2021-01-17 22:36:48','size',27,NULL,'Number of pages in the index'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_3','2021-01-17 22:36:48','n_diff_pfx01',2801,25,'item_variation_id'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_3','2021-01-17 22:36:48','n_diff_pfx02',4511,25,'item_variation_id,receiving_id'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_3','2021-01-17 22:36:48','n_diff_pfx03',11978,25,'item_variation_id,receiving_id,item_id'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_3','2021-01-17 22:36:48','n_diff_pfx04',14073,25,'item_variation_id,receiving_id,item_id,line'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_3','2021-01-17 22:36:48','n_leaf_pages',25,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_3','2021-01-17 22:36:48','size',26,NULL,'Number of pages in the index'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_4','2021-01-17 22:36:48','n_diff_pfx01',1,17,'items_quantity_units_id'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_4','2021-01-17 22:36:48','n_diff_pfx02',1682,17,'items_quantity_units_id,receiving_id'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_4','2021-01-17 22:36:48','n_diff_pfx03',9646,17,'items_quantity_units_id,receiving_id,item_id'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_4','2021-01-17 22:36:48','n_diff_pfx04',14073,17,'items_quantity_units_id,receiving_id,item_id,line'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_4','2021-01-17 22:36:48','n_leaf_pages',17,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings_items','phppos_receivings_items_ibfk_4','2021-01-17 22:36:48','size',18,NULL,'Number of pages in the index'),('ts21','phppos_receivings_items','serialnumber','2021-01-17 22:40:48','n_diff_pfx01',2,17,'serialnumber'),('ts21','phppos_receivings_items','serialnumber','2021-01-17 22:40:48','n_diff_pfx02',1682,17,'serialnumber,receiving_id'),('ts21','phppos_receivings_items','serialnumber','2021-01-17 22:40:48','n_diff_pfx03',9646,17,'serialnumber,receiving_id,item_id'),('ts21','phppos_receivings_items','serialnumber','2021-01-17 22:40:48','n_diff_pfx04',14073,17,'serialnumber,receiving_id,item_id,line'),('ts21','phppos_receivings_items','serialnumber','2021-01-17 22:40:48','n_leaf_pages',17,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings_items','serialnumber','2021-01-17 22:40:48','size',18,NULL,'Number of pages in the index'),('ts21','phppos_receivings_items_taxes','PRIMARY','2021-01-17 21:39:01','n_diff_pfx01',1249,36,'receiving_id'),('ts21','phppos_receivings_items_taxes','PRIMARY','2021-01-17 21:39:01','n_diff_pfx02',8620,36,'receiving_id,item_id'),('ts21','phppos_receivings_items_taxes','PRIMARY','2021-01-17 21:39:01','n_diff_pfx03',11551,36,'receiving_id,item_id,line'),('ts21','phppos_receivings_items_taxes','PRIMARY','2021-01-17 21:39:01','n_diff_pfx04',11551,36,'receiving_id,item_id,line,name'),('ts21','phppos_receivings_items_taxes','PRIMARY','2021-01-17 21:39:01','n_diff_pfx05',11551,36,'receiving_id,item_id,line,name,percent'),('ts21','phppos_receivings_items_taxes','PRIMARY','2021-01-17 21:39:01','n_leaf_pages',36,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings_items_taxes','PRIMARY','2021-01-17 21:39:01','size',97,NULL,'Number of pages in the index'),('ts21','phppos_receivings_items_taxes','item_id','2021-01-17 21:39:01','n_diff_pfx01',3442,39,'item_id'),('ts21','phppos_receivings_items_taxes','item_id','2021-01-17 21:39:01','n_diff_pfx02',8620,39,'item_id,receiving_id'),('ts21','phppos_receivings_items_taxes','item_id','2021-01-17 21:39:01','n_diff_pfx03',11551,39,'item_id,receiving_id,line'),('ts21','phppos_receivings_items_taxes','item_id','2021-01-17 21:39:01','n_diff_pfx04',11551,39,'item_id,receiving_id,line,name'),('ts21','phppos_receivings_items_taxes','item_id','2021-01-17 21:39:01','n_diff_pfx05',11551,39,'item_id,receiving_id,line,name,percent'),('ts21','phppos_receivings_items_taxes','item_id','2021-01-17 21:39:01','n_leaf_pages',39,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings_items_taxes','item_id','2021-01-17 21:39:01','size',97,NULL,'Number of pages in the index'),('ts21','phppos_receivings_payments','PRIMARY','2021-01-17 21:39:04','n_diff_pfx01',1031,5,'payment_id'),('ts21','phppos_receivings_payments','PRIMARY','2021-01-17 21:39:04','n_leaf_pages',5,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings_payments','PRIMARY','2021-01-17 21:39:04','size',6,NULL,'Number of pages in the index'),('ts21','phppos_receivings_payments','payment_date','2021-01-17 21:39:04','n_diff_pfx01',1031,1,'payment_date'),('ts21','phppos_receivings_payments','payment_date','2021-01-17 21:39:04','n_diff_pfx02',1031,1,'payment_date,payment_id'),('ts21','phppos_receivings_payments','payment_date','2021-01-17 21:39:04','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings_payments','payment_date','2021-01-17 21:39:04','size',1,NULL,'Number of pages in the index'),('ts21','phppos_receivings_payments','receiving_id','2021-01-17 21:39:04','n_diff_pfx01',960,1,'receiving_id'),('ts21','phppos_receivings_payments','receiving_id','2021-01-17 21:39:04','n_diff_pfx02',1031,1,'receiving_id,payment_id'),('ts21','phppos_receivings_payments','receiving_id','2021-01-17 21:39:04','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_receivings_payments','receiving_id','2021-01-17 21:39:04','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_currency_denominations','PRIMARY','2021-01-17 22:37:25','n_diff_pfx01',0,1,'id'),('ts21','phppos_register_currency_denominations','PRIMARY','2021-01-17 22:37:25','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_currency_denominations','PRIMARY','2021-01-17 22:37:25','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log','PRIMARY','2021-01-17 21:39:07','n_diff_pfx01',0,1,'register_log_id'),('ts21','phppos_register_log','PRIMARY','2021-01-17 21:39:07','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log','PRIMARY','2021-01-17 21:39:07','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log','phppos_register_log_ibfk_1','2021-01-17 21:39:07','n_diff_pfx01',0,1,'employee_id_open'),('ts21','phppos_register_log','phppos_register_log_ibfk_1','2021-01-17 21:39:07','n_diff_pfx02',0,1,'employee_id_open,register_log_id'),('ts21','phppos_register_log','phppos_register_log_ibfk_1','2021-01-17 21:39:07','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log','phppos_register_log_ibfk_1','2021-01-17 21:39:07','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log','phppos_register_log_ibfk_2','2021-01-17 21:39:07','n_diff_pfx01',0,1,'register_id'),('ts21','phppos_register_log','phppos_register_log_ibfk_2','2021-01-17 21:39:07','n_diff_pfx02',0,1,'register_id,register_log_id'),('ts21','phppos_register_log','phppos_register_log_ibfk_2','2021-01-17 21:39:07','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log','phppos_register_log_ibfk_2','2021-01-17 21:39:07','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log','phppos_register_log_ibfk_3','2021-01-17 21:39:07','n_diff_pfx01',0,1,'employee_id_close'),('ts21','phppos_register_log','phppos_register_log_ibfk_3','2021-01-17 21:39:07','n_diff_pfx02',0,1,'employee_id_close,register_log_id'),('ts21','phppos_register_log','phppos_register_log_ibfk_3','2021-01-17 21:39:07','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log','phppos_register_log_ibfk_3','2021-01-17 21:39:07','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log_audit','PRIMARY','2021-01-17 21:39:09','n_diff_pfx01',0,1,'id'),('ts21','phppos_register_log_audit','PRIMARY','2021-01-17 21:39:09','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log_audit','PRIMARY','2021-01-17 21:39:09','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log_audit','register_log_audit_ibfk_1','2021-01-17 21:39:09','n_diff_pfx01',0,1,'register_log_id'),('ts21','phppos_register_log_audit','register_log_audit_ibfk_1','2021-01-17 21:39:09','n_diff_pfx02',0,1,'register_log_id,id'),('ts21','phppos_register_log_audit','register_log_audit_ibfk_1','2021-01-17 21:39:09','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log_audit','register_log_audit_ibfk_1','2021-01-17 21:39:09','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log_audit','register_log_audit_ibfk_2','2021-01-17 21:39:09','n_diff_pfx01',0,1,'employee_id'),('ts21','phppos_register_log_audit','register_log_audit_ibfk_2','2021-01-17 21:39:09','n_diff_pfx02',0,1,'employee_id,id'),('ts21','phppos_register_log_audit','register_log_audit_ibfk_2','2021-01-17 21:39:09','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log_audit','register_log_audit_ibfk_2','2021-01-17 21:39:09','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log_denoms','PRIMARY','2021-01-17 22:37:25','n_diff_pfx01',0,1,'id'),('ts21','phppos_register_log_denoms','PRIMARY','2021-01-17 22:37:25','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log_denoms','PRIMARY','2021-01-17 22:37:25','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log_denoms','phppos_register_log_denoms_ibfk_1','2021-01-17 22:37:25','n_diff_pfx01',0,1,'register_log_id'),('ts21','phppos_register_log_denoms','phppos_register_log_denoms_ibfk_1','2021-01-17 22:37:25','n_diff_pfx02',0,1,'register_log_id,id'),('ts21','phppos_register_log_denoms','phppos_register_log_denoms_ibfk_1','2021-01-17 22:37:25','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log_denoms','phppos_register_log_denoms_ibfk_1','2021-01-17 22:37:25','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log_denoms','phppos_register_log_denoms_ibfk_2','2021-01-17 22:37:25','n_diff_pfx01',0,1,'register_currency_denominations_id'),('ts21','phppos_register_log_denoms','phppos_register_log_denoms_ibfk_2','2021-01-17 22:37:25','n_diff_pfx02',0,1,'register_currency_denominations_id,id'),('ts21','phppos_register_log_denoms','phppos_register_log_denoms_ibfk_2','2021-01-17 22:37:25','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log_denoms','phppos_register_log_denoms_ibfk_2','2021-01-17 22:37:25','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log_payments','PRIMARY','2021-01-17 22:36:24','n_diff_pfx01',0,1,'id'),('ts21','phppos_register_log_payments','PRIMARY','2021-01-17 22:36:24','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log_payments','PRIMARY','2021-01-17 22:36:24','size',1,NULL,'Number of pages in the index'),('ts21','phppos_register_log_payments','phppos_register_log_payments_ibfk_1','2021-01-17 22:36:24','n_diff_pfx01',0,1,'register_log_id'),('ts21','phppos_register_log_payments','phppos_register_log_payments_ibfk_1','2021-01-17 22:36:24','n_diff_pfx02',0,1,'register_log_id,id'),('ts21','phppos_register_log_payments','phppos_register_log_payments_ibfk_1','2021-01-17 22:36:24','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_register_log_payments','phppos_register_log_payments_ibfk_1','2021-01-17 22:36:24','size',1,NULL,'Number of pages in the index'),('ts21','phppos_registers','PRIMARY','2021-01-17 22:40:21','n_diff_pfx01',3,1,'register_id'),('ts21','phppos_registers','PRIMARY','2021-01-17 22:40:21','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_registers','PRIMARY','2021-01-17 22:40:21','size',1,NULL,'Number of pages in the index'),('ts21','phppos_registers','deleted','2021-01-17 22:40:21','n_diff_pfx01',1,1,'deleted'),('ts21','phppos_registers','deleted','2021-01-17 22:40:21','n_diff_pfx02',3,1,'deleted,register_id'),('ts21','phppos_registers','deleted','2021-01-17 22:40:21','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_registers','deleted','2021-01-17 22:40:21','size',1,NULL,'Number of pages in the index'),('ts21','phppos_registers','phppos_registers_ibfk_1','2021-01-17 22:40:21','n_diff_pfx01',3,1,'location_id'),('ts21','phppos_registers','phppos_registers_ibfk_1','2021-01-17 22:40:21','n_diff_pfx02',3,1,'location_id,register_id'),('ts21','phppos_registers','phppos_registers_ibfk_1','2021-01-17 22:40:21','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_registers','phppos_registers_ibfk_1','2021-01-17 22:40:21','size',1,NULL,'Number of pages in the index'),('ts21','phppos_registers_cart','PRIMARY','2021-01-17 21:39:17','n_diff_pfx01',3,1,'id'),('ts21','phppos_registers_cart','PRIMARY','2021-01-17 21:39:17','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_registers_cart','PRIMARY','2021-01-17 21:39:17','size',1,NULL,'Number of pages in the index'),('ts21','phppos_registers_cart','register_id','2021-01-17 21:39:17','n_diff_pfx01',3,1,'register_id'),('ts21','phppos_registers_cart','register_id','2021-01-17 21:39:17','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_registers_cart','register_id','2021-01-17 21:39:17','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sale_types','PRIMARY','2021-01-17 21:40:24','n_diff_pfx01',3,1,'id'),('ts21','phppos_sale_types','PRIMARY','2021-01-17 21:40:24','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sale_types','PRIMARY','2021-01-17 21:40:24','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales','PRIMARY','2021-01-17 22:37:21','n_diff_pfx01',20306,20,'sale_id'),('ts21','phppos_sales','PRIMARY','2021-01-17 22:37:21','n_leaf_pages',339,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','PRIMARY','2021-01-17 22:37:21','size',417,NULL,'Number of pages in the index'),('ts21','phppos_sales','custom_field_10_value','2021-01-17 22:37:21','n_diff_pfx01',1,14,'custom_field_10_value'),('ts21','phppos_sales','custom_field_10_value','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'custom_field_10_value,sale_id'),('ts21','phppos_sales','custom_field_10_value','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','custom_field_10_value','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','custom_field_1_value','2021-01-17 22:37:21','n_diff_pfx01',1,14,'custom_field_1_value'),('ts21','phppos_sales','custom_field_1_value','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'custom_field_1_value,sale_id'),('ts21','phppos_sales','custom_field_1_value','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','custom_field_1_value','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','custom_field_2_value','2021-01-17 22:37:21','n_diff_pfx01',1,14,'custom_field_2_value'),('ts21','phppos_sales','custom_field_2_value','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'custom_field_2_value,sale_id'),('ts21','phppos_sales','custom_field_2_value','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','custom_field_2_value','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','custom_field_3_value','2021-01-17 22:37:21','n_diff_pfx01',1,14,'custom_field_3_value'),('ts21','phppos_sales','custom_field_3_value','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'custom_field_3_value,sale_id'),('ts21','phppos_sales','custom_field_3_value','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','custom_field_3_value','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','custom_field_4_value','2021-01-17 22:37:21','n_diff_pfx01',1,14,'custom_field_4_value'),('ts21','phppos_sales','custom_field_4_value','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'custom_field_4_value,sale_id'),('ts21','phppos_sales','custom_field_4_value','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','custom_field_4_value','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','custom_field_5_value','2021-01-17 22:37:21','n_diff_pfx01',1,14,'custom_field_5_value'),('ts21','phppos_sales','custom_field_5_value','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'custom_field_5_value,sale_id'),('ts21','phppos_sales','custom_field_5_value','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','custom_field_5_value','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','custom_field_6_value','2021-01-17 22:37:21','n_diff_pfx01',1,14,'custom_field_6_value'),('ts21','phppos_sales','custom_field_6_value','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'custom_field_6_value,sale_id'),('ts21','phppos_sales','custom_field_6_value','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','custom_field_6_value','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','custom_field_7_value','2021-01-17 22:37:21','n_diff_pfx01',1,14,'custom_field_7_value'),('ts21','phppos_sales','custom_field_7_value','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'custom_field_7_value,sale_id'),('ts21','phppos_sales','custom_field_7_value','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','custom_field_7_value','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','custom_field_8_value','2021-01-17 22:37:21','n_diff_pfx01',1,14,'custom_field_8_value'),('ts21','phppos_sales','custom_field_8_value','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'custom_field_8_value,sale_id'),('ts21','phppos_sales','custom_field_8_value','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','custom_field_8_value','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','custom_field_9_value','2021-01-17 22:37:21','n_diff_pfx01',1,14,'custom_field_9_value'),('ts21','phppos_sales','custom_field_9_value','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'custom_field_9_value,sale_id'),('ts21','phppos_sales','custom_field_9_value','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','custom_field_9_value','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','customer_id','2021-01-17 22:37:21','n_diff_pfx01',384,19,'customer_id'),('ts21','phppos_sales','customer_id','2021-01-17 22:37:21','n_diff_pfx02',20551,19,'customer_id,sale_id'),('ts21','phppos_sales','customer_id','2021-01-17 22:37:21','n_leaf_pages',19,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','customer_id','2021-01-17 22:37:21','size',20,NULL,'Number of pages in the index'),('ts21','phppos_sales','deleted','2021-01-17 22:37:21','n_diff_pfx01',2,18,'deleted'),('ts21','phppos_sales','deleted','2021-01-17 22:37:21','n_diff_pfx02',20551,18,'deleted,sale_id'),('ts21','phppos_sales','deleted','2021-01-17 22:37:21','n_leaf_pages',18,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','deleted','2021-01-17 22:37:21','size',19,NULL,'Number of pages in the index'),('ts21','phppos_sales','ecommerce_order_id','2021-01-17 22:40:37','n_diff_pfx01',1,14,'ecommerce_order_id'),('ts21','phppos_sales','ecommerce_order_id','2021-01-17 22:40:37','n_diff_pfx02',20551,14,'ecommerce_order_id,sale_id'),('ts21','phppos_sales','ecommerce_order_id','2021-01-17 22:40:37','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','ecommerce_order_id','2021-01-17 22:40:37','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','employee_id','2021-01-17 22:37:21','n_diff_pfx01',8,18,'employee_id'),('ts21','phppos_sales','employee_id','2021-01-17 22:37:21','n_diff_pfx02',20551,18,'employee_id,sale_id'),('ts21','phppos_sales','employee_id','2021-01-17 22:37:21','n_leaf_pages',18,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','employee_id','2021-01-17 22:37:21','size',19,NULL,'Number of pages in the index'),('ts21','phppos_sales','location_id','2021-01-17 22:37:21','n_diff_pfx01',2,18,'location_id'),('ts21','phppos_sales','location_id','2021-01-17 22:37:21','n_diff_pfx02',20551,18,'location_id,sale_id'),('ts21','phppos_sales','location_id','2021-01-17 22:37:21','n_leaf_pages',18,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','location_id','2021-01-17 22:37:21','size',19,NULL,'Number of pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_10','2021-01-17 22:37:21','n_diff_pfx01',2,18,'suspended'),('ts21','phppos_sales','phppos_sales_ibfk_10','2021-01-17 22:37:21','n_diff_pfx02',20551,18,'suspended,sale_id'),('ts21','phppos_sales','phppos_sales_ibfk_10','2021-01-17 22:37:21','n_leaf_pages',18,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_10','2021-01-17 22:37:21','size',19,NULL,'Number of pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_11','2021-01-17 22:37:21','n_diff_pfx01',1,14,'return_sale_id'),('ts21','phppos_sales','phppos_sales_ibfk_11','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'return_sale_id,sale_id'),('ts21','phppos_sales','phppos_sales_ibfk_11','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_11','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_4','2021-01-17 22:37:21','n_diff_pfx01',4,14,'deleted_by'),('ts21','phppos_sales','phppos_sales_ibfk_4','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'deleted_by,sale_id'),('ts21','phppos_sales','phppos_sales_ibfk_4','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_4','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_5','2021-01-17 22:37:21','n_diff_pfx01',1,14,'tier_id'),('ts21','phppos_sales','phppos_sales_ibfk_5','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'tier_id,sale_id'),('ts21','phppos_sales','phppos_sales_ibfk_5','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_5','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_6','2021-01-17 22:37:21','n_diff_pfx01',74,19,'sold_by_employee_id'),('ts21','phppos_sales','phppos_sales_ibfk_6','2021-01-17 22:37:21','n_diff_pfx02',20551,19,'sold_by_employee_id,sale_id'),('ts21','phppos_sales','phppos_sales_ibfk_6','2021-01-17 22:37:21','n_leaf_pages',19,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_6','2021-01-17 22:37:21','size',20,NULL,'Number of pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_7','2021-01-17 22:37:21','n_diff_pfx01',3,19,'register_id'),('ts21','phppos_sales','phppos_sales_ibfk_7','2021-01-17 22:37:21','n_diff_pfx02',20551,19,'register_id,sale_id'),('ts21','phppos_sales','phppos_sales_ibfk_7','2021-01-17 22:37:21','n_leaf_pages',19,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_7','2021-01-17 22:37:21','size',20,NULL,'Number of pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_8','2021-01-17 22:37:21','n_diff_pfx01',1,14,'signature_image_id'),('ts21','phppos_sales','phppos_sales_ibfk_8','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'signature_image_id,sale_id'),('ts21','phppos_sales','phppos_sales_ibfk_8','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_8','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_9','2021-01-17 22:37:21','n_diff_pfx01',1,14,'rule_id'),('ts21','phppos_sales','phppos_sales_ibfk_9','2021-01-17 22:37:21','n_diff_pfx02',20551,14,'rule_id,sale_id'),('ts21','phppos_sales','phppos_sales_ibfk_9','2021-01-17 22:37:21','n_leaf_pages',14,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','phppos_sales_ibfk_9','2021-01-17 22:37:21','size',15,NULL,'Number of pages in the index'),('ts21','phppos_sales','sales_search','2021-01-17 22:37:21','n_diff_pfx01',2,52,'location_id'),('ts21','phppos_sales','sales_search','2021-01-17 22:37:21','n_diff_pfx02',3,52,'location_id,deleted'),('ts21','phppos_sales','sales_search','2021-01-17 22:37:21','n_diff_pfx03',20542,52,'location_id,deleted,sale_time'),('ts21','phppos_sales','sales_search','2021-01-17 22:37:21','n_diff_pfx04',20542,52,'location_id,deleted,sale_time,suspended'),('ts21','phppos_sales','sales_search','2021-01-17 22:37:21','n_diff_pfx05',20542,52,'location_id,deleted,sale_time,suspended,store_account_payment'),('ts21','phppos_sales','sales_search','2021-01-17 22:37:21','n_diff_pfx06',20549,52,'location_id,deleted,sale_time,suspended,store_account_payment,total_quantity_purchased'),('ts21','phppos_sales','sales_search','2021-01-17 22:37:21','n_diff_pfx07',20551,52,'location_id,deleted,sale_time,suspended,store_account_payment,total_quantity_purchased,sale_id'),('ts21','phppos_sales','sales_search','2021-01-17 22:37:21','n_leaf_pages',52,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','sales_search','2021-01-17 22:37:21','size',97,NULL,'Number of pages in the index'),('ts21','phppos_sales','was_estimate','2021-01-17 22:37:21','n_diff_pfx01',1,18,'was_estimate'),('ts21','phppos_sales','was_estimate','2021-01-17 22:37:21','n_diff_pfx02',20551,18,'was_estimate,sale_id'),('ts21','phppos_sales','was_estimate','2021-01-17 22:37:21','n_leaf_pages',18,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','was_estimate','2021-01-17 22:37:21','size',19,NULL,'Number of pages in the index'),('ts21','phppos_sales','was_layaway','2021-01-17 22:37:21','n_diff_pfx01',2,18,'was_layaway'),('ts21','phppos_sales','was_layaway','2021-01-17 22:37:21','n_diff_pfx02',20551,18,'was_layaway,sale_id'),('ts21','phppos_sales','was_layaway','2021-01-17 22:37:21','n_leaf_pages',18,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales','was_layaway','2021-01-17 22:37:21','size',19,NULL,'Number of pages in the index'),('ts21','phppos_sales_coupons','PRIMARY','2021-01-17 21:39:25','n_diff_pfx01',0,1,'id'),('ts21','phppos_sales_coupons','PRIMARY','2021-01-17 21:39:25','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_coupons','PRIMARY','2021-01-17 21:39:25','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_coupons','phppos_sales_coupons_ibfk_1','2021-01-17 21:39:25','n_diff_pfx01',0,1,'sale_id'),('ts21','phppos_sales_coupons','phppos_sales_coupons_ibfk_1','2021-01-17 21:39:25','n_diff_pfx02',0,1,'sale_id,id'),('ts21','phppos_sales_coupons','phppos_sales_coupons_ibfk_1','2021-01-17 21:39:25','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_coupons','phppos_sales_coupons_ibfk_1','2021-01-17 21:39:25','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_coupons','phppos_sales_coupons_ibfk_2','2021-01-17 21:39:25','n_diff_pfx01',0,1,'rule_id'),('ts21','phppos_sales_coupons','phppos_sales_coupons_ibfk_2','2021-01-17 21:39:25','n_diff_pfx02',0,1,'rule_id,id'),('ts21','phppos_sales_coupons','phppos_sales_coupons_ibfk_2','2021-01-17 21:39:25','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_coupons','phppos_sales_coupons_ibfk_2','2021-01-17 21:39:25','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_deliveries','PRIMARY','2021-01-17 21:39:29','n_diff_pfx01',0,1,'id'),('ts21','phppos_sales_deliveries','PRIMARY','2021-01-17 21:39:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_deliveries','PRIMARY','2021-01-17 21:39:29','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_deliveries','deleted','2021-01-17 21:39:29','n_diff_pfx01',0,1,'deleted'),('ts21','phppos_sales_deliveries','deleted','2021-01-17 21:39:29','n_diff_pfx02',0,1,'deleted,id'),('ts21','phppos_sales_deliveries','deleted','2021-01-17 21:39:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_deliveries','deleted','2021-01-17 21:39:29','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_1','2021-01-17 21:39:29','n_diff_pfx01',0,1,'sale_id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_1','2021-01-17 21:39:29','n_diff_pfx02',0,1,'sale_id,id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_1','2021-01-17 21:39:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_1','2021-01-17 21:39:29','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_2','2021-01-17 21:39:29','n_diff_pfx01',0,1,'shipping_address_person_id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_2','2021-01-17 21:39:29','n_diff_pfx02',0,1,'shipping_address_person_id,id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_2','2021-01-17 21:39:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_2','2021-01-17 21:39:29','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_3','2021-01-17 21:39:29','n_diff_pfx01',0,1,'shipping_method_id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_3','2021-01-17 21:39:29','n_diff_pfx02',0,1,'shipping_method_id,id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_3','2021-01-17 21:39:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_3','2021-01-17 21:39:29','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_4','2021-01-17 21:39:29','n_diff_pfx01',0,1,'shipping_zone_id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_4','2021-01-17 21:39:29','n_diff_pfx02',0,1,'shipping_zone_id,id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_4','2021-01-17 21:39:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_4','2021-01-17 21:39:29','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_5','2021-01-17 21:39:29','n_diff_pfx01',0,1,'tax_class_id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_5','2021-01-17 21:39:29','n_diff_pfx02',0,1,'tax_class_id,id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_5','2021-01-17 21:39:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_5','2021-01-17 21:39:29','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_6','2021-01-17 21:39:29','n_diff_pfx01',0,1,'delivery_employee_person_id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_6','2021-01-17 21:39:29','n_diff_pfx02',0,1,'delivery_employee_person_id,id'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_6','2021-01-17 21:39:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_deliveries','phppos_sales_deliveries_ibfk_6','2021-01-17 21:39:29','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_deliveries','search_index','2021-01-17 21:39:29','n_diff_pfx01',0,1,'status'),('ts21','phppos_sales_deliveries','search_index','2021-01-17 21:39:29','n_diff_pfx02',0,1,'status,shipping_address_person_id'),('ts21','phppos_sales_deliveries','search_index','2021-01-17 21:39:29','n_diff_pfx03',0,1,'status,shipping_address_person_id,id'),('ts21','phppos_sales_deliveries','search_index','2021-01-17 21:39:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_deliveries','search_index','2021-01-17 21:39:29','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_item_kits','PRIMARY','2021-01-17 22:40:09','n_diff_pfx01',9,1,'sale_id'),('ts21','phppos_sales_item_kits','PRIMARY','2021-01-17 22:40:09','n_diff_pfx02',9,1,'sale_id,item_kit_id'),('ts21','phppos_sales_item_kits','PRIMARY','2021-01-17 22:40:09','n_diff_pfx03',9,1,'sale_id,item_kit_id,line'),('ts21','phppos_sales_item_kits','PRIMARY','2021-01-17 22:40:09','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_item_kits','PRIMARY','2021-01-17 22:40:09','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_item_kits','item_kit_id','2021-01-17 22:40:09','n_diff_pfx01',3,1,'item_kit_id'),('ts21','phppos_sales_item_kits','item_kit_id','2021-01-17 22:40:09','n_diff_pfx02',9,1,'item_kit_id,sale_id'),('ts21','phppos_sales_item_kits','item_kit_id','2021-01-17 22:40:09','n_diff_pfx03',9,1,'item_kit_id,sale_id,line'),('ts21','phppos_sales_item_kits','item_kit_id','2021-01-17 22:40:09','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_item_kits','item_kit_id','2021-01-17 22:40:09','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_item_kits','phppos_sales_item_kits_ibfk_3','2021-01-17 22:40:09','n_diff_pfx01',1,1,'rule_id'),('ts21','phppos_sales_item_kits','phppos_sales_item_kits_ibfk_3','2021-01-17 22:40:09','n_diff_pfx02',9,1,'rule_id,sale_id'),('ts21','phppos_sales_item_kits','phppos_sales_item_kits_ibfk_3','2021-01-17 22:40:09','n_diff_pfx03',9,1,'rule_id,sale_id,item_kit_id'),('ts21','phppos_sales_item_kits','phppos_sales_item_kits_ibfk_3','2021-01-17 22:40:09','n_diff_pfx04',9,1,'rule_id,sale_id,item_kit_id,line'),('ts21','phppos_sales_item_kits','phppos_sales_item_kits_ibfk_3','2021-01-17 22:40:09','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_item_kits','phppos_sales_item_kits_ibfk_3','2021-01-17 22:40:09','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_item_kits_modifier_items','PRIMARY','2021-01-17 22:38:15','n_diff_pfx01',0,1,'item_kit_id'),('ts21','phppos_sales_item_kits_modifier_items','PRIMARY','2021-01-17 22:38:15','n_diff_pfx02',0,1,'item_kit_id,sale_id'),('ts21','phppos_sales_item_kits_modifier_items','PRIMARY','2021-01-17 22:38:15','n_diff_pfx03',0,1,'item_kit_id,sale_id,line'),('ts21','phppos_sales_item_kits_modifier_items','PRIMARY','2021-01-17 22:38:15','n_diff_pfx04',0,1,'item_kit_id,sale_id,line,modifier_item_id'),('ts21','phppos_sales_item_kits_modifier_items','PRIMARY','2021-01-17 22:38:15','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_item_kits_modifier_items','PRIMARY','2021-01-17 22:38:15','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_2','2021-01-17 22:38:15','n_diff_pfx01',0,1,'sale_id'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_2','2021-01-17 22:38:15','n_diff_pfx02',0,1,'sale_id,item_kit_id'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_2','2021-01-17 22:38:15','n_diff_pfx03',0,1,'sale_id,item_kit_id,line'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_2','2021-01-17 22:38:15','n_diff_pfx04',0,1,'sale_id,item_kit_id,line,modifier_item_id'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_2','2021-01-17 22:38:15','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_2','2021-01-17 22:38:15','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_3','2021-01-17 22:38:15','n_diff_pfx01',0,1,'modifier_item_id'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_3','2021-01-17 22:38:15','n_diff_pfx02',0,1,'modifier_item_id,item_kit_id'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_3','2021-01-17 22:38:15','n_diff_pfx03',0,1,'modifier_item_id,item_kit_id,sale_id'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_3','2021-01-17 22:38:15','n_diff_pfx04',0,1,'modifier_item_id,item_kit_id,sale_id,line'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_3','2021-01-17 22:38:15','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_item_kits_modifier_items','phppos_sales_item_kits_modifier_items_ibfk_3','2021-01-17 22:38:15','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_item_kits_taxes','PRIMARY','2021-01-17 21:39:57','n_diff_pfx01',9,1,'sale_id'),('ts21','phppos_sales_item_kits_taxes','PRIMARY','2021-01-17 21:39:57','n_diff_pfx02',9,1,'sale_id,item_kit_id'),('ts21','phppos_sales_item_kits_taxes','PRIMARY','2021-01-17 21:39:57','n_diff_pfx03',9,1,'sale_id,item_kit_id,line'),('ts21','phppos_sales_item_kits_taxes','PRIMARY','2021-01-17 21:39:57','n_diff_pfx04',9,1,'sale_id,item_kit_id,line,name'),('ts21','phppos_sales_item_kits_taxes','PRIMARY','2021-01-17 21:39:57','n_diff_pfx05',9,1,'sale_id,item_kit_id,line,name,percent'),('ts21','phppos_sales_item_kits_taxes','PRIMARY','2021-01-17 21:39:57','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_item_kits_taxes','PRIMARY','2021-01-17 21:39:57','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_item_kits_taxes','item_id','2021-01-17 21:39:57','n_diff_pfx01',3,1,'item_kit_id'),('ts21','phppos_sales_item_kits_taxes','item_id','2021-01-17 21:39:57','n_diff_pfx02',9,1,'item_kit_id,sale_id'),('ts21','phppos_sales_item_kits_taxes','item_id','2021-01-17 21:39:57','n_diff_pfx03',9,1,'item_kit_id,sale_id,line'),('ts21','phppos_sales_item_kits_taxes','item_id','2021-01-17 21:39:57','n_diff_pfx04',9,1,'item_kit_id,sale_id,line,name'),('ts21','phppos_sales_item_kits_taxes','item_id','2021-01-17 21:39:57','n_diff_pfx05',9,1,'item_kit_id,sale_id,line,name,percent'),('ts21','phppos_sales_item_kits_taxes','item_id','2021-01-17 21:39:57','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_item_kits_taxes','item_id','2021-01-17 21:39:57','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_items','PRIMARY','2021-01-17 22:40:19','n_diff_pfx01',21574,20,'sale_id'),('ts21','phppos_sales_items','PRIMARY','2021-01-17 22:40:19','n_diff_pfx02',42210,20,'sale_id,item_id'),('ts21','phppos_sales_items','PRIMARY','2021-01-17 22:40:19','n_diff_pfx03',49151,20,'sale_id,item_id,line'),('ts21','phppos_sales_items','PRIMARY','2021-01-17 22:40:19','n_leaf_pages',536,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items','PRIMARY','2021-01-17 22:40:19','size',673,NULL,'Number of pages in the index'),('ts21','phppos_sales_items','item_id','2021-01-17 22:40:19','n_diff_pfx01',3985,54,'item_id'),('ts21','phppos_sales_items','item_id','2021-01-17 22:40:19','n_diff_pfx02',43998,54,'item_id,sale_id'),('ts21','phppos_sales_items','item_id','2021-01-17 22:40:19','n_diff_pfx03',49745,54,'item_id,sale_id,line'),('ts21','phppos_sales_items','item_id','2021-01-17 22:40:19','n_leaf_pages',54,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items','item_id','2021-01-17 22:40:19','size',97,NULL,'Number of pages in the index'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_3','2021-01-17 22:40:19','n_diff_pfx01',3,57,'rule_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_3','2021-01-17 22:40:19','n_diff_pfx02',20561,57,'rule_id,sale_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_3','2021-01-17 22:40:19','n_diff_pfx03',43998,57,'rule_id,sale_id,item_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_3','2021-01-17 22:40:19','n_diff_pfx04',49745,57,'rule_id,sale_id,item_id,line'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_3','2021-01-17 22:40:19','n_leaf_pages',57,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_3','2021-01-17 22:40:19','size',97,NULL,'Number of pages in the index'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_4','2021-01-17 22:40:19','n_diff_pfx01',2360,58,'item_variation_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_4','2021-01-17 22:40:19','n_diff_pfx02',24072,58,'item_variation_id,sale_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_4','2021-01-17 22:40:19','n_diff_pfx03',44394,58,'item_variation_id,sale_id,item_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_4','2021-01-17 22:40:19','n_diff_pfx04',49745,58,'item_variation_id,sale_id,item_id,line'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_4','2021-01-17 22:40:19','n_leaf_pages',58,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_4','2021-01-17 22:40:19','size',97,NULL,'Number of pages in the index'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_5','2021-01-17 22:40:19','n_diff_pfx01',1,57,'series_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_5','2021-01-17 22:40:19','n_diff_pfx02',20547,57,'series_id,sale_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_5','2021-01-17 22:40:19','n_diff_pfx03',43998,57,'series_id,sale_id,item_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_5','2021-01-17 22:40:19','n_diff_pfx04',49745,57,'series_id,sale_id,item_id,line'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_5','2021-01-17 22:40:19','n_leaf_pages',57,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_5','2021-01-17 22:40:19','size',97,NULL,'Number of pages in the index'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_6','2021-01-17 22:40:19','n_diff_pfx01',1,57,'items_quantity_units_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_6','2021-01-17 22:40:19','n_diff_pfx02',20547,57,'items_quantity_units_id,sale_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_6','2021-01-17 22:40:19','n_diff_pfx03',43998,57,'items_quantity_units_id,sale_id,item_id'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_6','2021-01-17 22:40:19','n_diff_pfx04',49745,57,'items_quantity_units_id,sale_id,item_id,line'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_6','2021-01-17 22:40:19','n_leaf_pages',57,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items','phppos_sales_items_ibfk_6','2021-01-17 22:40:19','size',97,NULL,'Number of pages in the index'),('ts21','phppos_sales_items','serialnumber','2021-01-17 22:40:46','n_diff_pfx01',2,59,'serialnumber'),('ts21','phppos_sales_items','serialnumber','2021-01-17 22:40:46','n_diff_pfx02',20548,59,'serialnumber,sale_id'),('ts21','phppos_sales_items','serialnumber','2021-01-17 22:40:46','n_diff_pfx03',43998,59,'serialnumber,sale_id,item_id'),('ts21','phppos_sales_items','serialnumber','2021-01-17 22:40:46','n_diff_pfx04',49745,59,'serialnumber,sale_id,item_id,line'),('ts21','phppos_sales_items','serialnumber','2021-01-17 22:40:46','n_leaf_pages',59,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items','serialnumber','2021-01-17 22:40:46','size',97,NULL,'Number of pages in the index'),('ts21','phppos_sales_items_modifier_items','PRIMARY','2021-01-17 22:38:15','n_diff_pfx01',0,1,'item_id'),('ts21','phppos_sales_items_modifier_items','PRIMARY','2021-01-17 22:38:15','n_diff_pfx02',0,1,'item_id,sale_id'),('ts21','phppos_sales_items_modifier_items','PRIMARY','2021-01-17 22:38:15','n_diff_pfx03',0,1,'item_id,sale_id,line'),('ts21','phppos_sales_items_modifier_items','PRIMARY','2021-01-17 22:38:15','n_diff_pfx04',0,1,'item_id,sale_id,line,modifier_item_id'),('ts21','phppos_sales_items_modifier_items','PRIMARY','2021-01-17 22:38:15','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items_modifier_items','PRIMARY','2021-01-17 22:38:15','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_2','2021-01-17 22:38:15','n_diff_pfx01',0,1,'sale_id'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_2','2021-01-17 22:38:15','n_diff_pfx02',0,1,'sale_id,item_id'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_2','2021-01-17 22:38:15','n_diff_pfx03',0,1,'sale_id,item_id,line'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_2','2021-01-17 22:38:15','n_diff_pfx04',0,1,'sale_id,item_id,line,modifier_item_id'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_2','2021-01-17 22:38:15','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_2','2021-01-17 22:38:15','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_3','2021-01-17 22:38:15','n_diff_pfx01',0,1,'modifier_item_id'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_3','2021-01-17 22:38:15','n_diff_pfx02',0,1,'modifier_item_id,item_id'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_3','2021-01-17 22:38:15','n_diff_pfx03',0,1,'modifier_item_id,item_id,sale_id'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_3','2021-01-17 22:38:15','n_diff_pfx04',0,1,'modifier_item_id,item_id,sale_id,line'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_3','2021-01-17 22:38:15','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items_modifier_items','phppos_sales_items_modifier_items_ibfk_3','2021-01-17 22:38:15','size',1,NULL,'Number of pages in the index'),('ts21','phppos_sales_items_taxes','PRIMARY','2021-01-17 21:39:56','n_diff_pfx01',19995,20,'sale_id'),('ts21','phppos_sales_items_taxes','PRIMARY','2021-01-17 21:39:56','n_diff_pfx02',38990,20,'sale_id,item_id'),('ts21','phppos_sales_items_taxes','PRIMARY','2021-01-17 21:39:56','n_diff_pfx03',44662,20,'sale_id,item_id,line'),('ts21','phppos_sales_items_taxes','PRIMARY','2021-01-17 21:39:56','n_diff_pfx04',43524,20,'sale_id,item_id,line,name'),('ts21','phppos_sales_items_taxes','PRIMARY','2021-01-17 21:39:56','n_diff_pfx05',44662,20,'sale_id,item_id,line,name,percent'),('ts21','phppos_sales_items_taxes','PRIMARY','2021-01-17 21:39:56','n_leaf_pages',137,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items_taxes','PRIMARY','2021-01-17 21:39:56','size',161,NULL,'Number of pages in the index'),('ts21','phppos_sales_items_taxes','item_id','2021-01-17 21:39:56','n_diff_pfx01',4289,20,'item_id'),('ts21','phppos_sales_items_taxes','item_id','2021-01-17 21:39:56','n_diff_pfx02',40714,20,'item_id,sale_id'),('ts21','phppos_sales_items_taxes','item_id','2021-01-17 21:39:56','n_diff_pfx03',48784,20,'item_id,sale_id,line'),('ts21','phppos_sales_items_taxes','item_id','2021-01-17 21:39:56','n_diff_pfx04',38645,20,'item_id,sale_id,line,name'),('ts21','phppos_sales_items_taxes','item_id','2021-01-17 21:39:56','n_diff_pfx05',41055,20,'item_id,sale_id,line,name,percent'),('ts21','phppos_sales_items_taxes','item_id','2021-01-17 21:39:56','n_leaf_pages',131,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_items_taxes','item_id','2021-01-17 21:39:56','size',161,NULL,'Number of pages in the index'),('ts21','phppos_sales_payments','PRIMARY','2021-01-17 21:40:07','n_diff_pfx01',24503,20,'payment_id'),('ts21','phppos_sales_payments','PRIMARY','2021-01-17 21:40:07','n_leaf_pages',107,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_payments','PRIMARY','2021-01-17 21:40:07','size',161,NULL,'Number of pages in the index'),('ts21','phppos_sales_payments','payment_date','2021-01-17 21:40:07','n_diff_pfx01',24898,32,'payment_date'),('ts21','phppos_sales_payments','payment_date','2021-01-17 21:40:07','n_diff_pfx02',24994,32,'payment_date,payment_id'),('ts21','phppos_sales_payments','payment_date','2021-01-17 21:40:07','n_leaf_pages',32,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_payments','payment_date','2021-01-17 21:40:07','size',33,NULL,'Number of pages in the index'),('ts21','phppos_sales_payments','sale_id','2021-01-17 21:40:07','n_diff_pfx01',20384,35,'sale_id'),('ts21','phppos_sales_payments','sale_id','2021-01-17 21:40:07','n_diff_pfx02',24994,35,'sale_id,payment_id'),('ts21','phppos_sales_payments','sale_id','2021-01-17 21:40:07','n_leaf_pages',35,NULL,'Number of leaf pages in the index'),('ts21','phppos_sales_payments','sale_id','2021-01-17 21:40:07','size',97,NULL,'Number of pages in the index'),('ts21','phppos_sessions','PRIMARY','2021-01-17 21:40:27','n_diff_pfx01',11495,20,'id'),('ts21','phppos_sessions','PRIMARY','2021-01-17 21:40:27','n_leaf_pages',6503,NULL,'Number of leaf pages in the index'),('ts21','phppos_sessions','PRIMARY','2021-01-17 21:40:27','size',7203,NULL,'Number of pages in the index'),('ts21','phppos_sessions','phppos_sessions_timestamp','2021-01-17 21:40:27','n_diff_pfx01',9565,20,'timestamp'),('ts21','phppos_sessions','phppos_sessions_timestamp','2021-01-17 21:40:27','n_diff_pfx02',11453,20,'timestamp,id'),('ts21','phppos_sessions','phppos_sessions_timestamp','2021-01-17 21:40:27','n_leaf_pages',42,NULL,'Number of leaf pages in the index'),('ts21','phppos_sessions','phppos_sessions_timestamp','2021-01-17 21:40:27','size',97,NULL,'Number of pages in the index'),('ts21','phppos_shipping_methods','PRIMARY','2021-01-17 21:40:15','n_diff_pfx01',0,1,'id'),('ts21','phppos_shipping_methods','PRIMARY','2021-01-17 21:40:15','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_shipping_methods','PRIMARY','2021-01-17 21:40:15','size',1,NULL,'Number of pages in the index'),('ts21','phppos_shipping_methods','phppos_shipping_methods_ibfk_1','2021-01-17 21:40:15','n_diff_pfx01',0,1,'shipping_provider_id'),('ts21','phppos_shipping_methods','phppos_shipping_methods_ibfk_1','2021-01-17 21:40:15','n_diff_pfx02',0,1,'shipping_provider_id,id'),('ts21','phppos_shipping_methods','phppos_shipping_methods_ibfk_1','2021-01-17 21:40:15','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_shipping_methods','phppos_shipping_methods_ibfk_1','2021-01-17 21:40:15','size',1,NULL,'Number of pages in the index'),('ts21','phppos_shipping_methods','phppos_shipping_methods_ibfk_2','2021-01-17 21:40:15','n_diff_pfx01',0,1,'fee_tax_class_id'),('ts21','phppos_shipping_methods','phppos_shipping_methods_ibfk_2','2021-01-17 21:40:15','n_diff_pfx02',0,1,'fee_tax_class_id,id'),('ts21','phppos_shipping_methods','phppos_shipping_methods_ibfk_2','2021-01-17 21:40:15','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_shipping_methods','phppos_shipping_methods_ibfk_2','2021-01-17 21:40:15','size',1,NULL,'Number of pages in the index'),('ts21','phppos_shipping_providers','PRIMARY','2021-01-17 21:40:19','n_diff_pfx01',0,1,'id'),('ts21','phppos_shipping_providers','PRIMARY','2021-01-17 21:40:19','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_shipping_providers','PRIMARY','2021-01-17 21:40:19','size',1,NULL,'Number of pages in the index'),('ts21','phppos_shipping_zones','PRIMARY','2021-01-17 21:40:21','n_diff_pfx01',0,1,'id'),('ts21','phppos_shipping_zones','PRIMARY','2021-01-17 21:40:21','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_shipping_zones','PRIMARY','2021-01-17 21:40:21','size',1,NULL,'Number of pages in the index'),('ts21','phppos_shipping_zones','phppos_shipping_zones_ibfk_1','2021-01-17 21:40:21','n_diff_pfx01',0,1,'tax_class_id'),('ts21','phppos_shipping_zones','phppos_shipping_zones_ibfk_1','2021-01-17 21:40:21','n_diff_pfx02',0,1,'tax_class_id,id'),('ts21','phppos_shipping_zones','phppos_shipping_zones_ibfk_1','2021-01-17 21:40:21','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_shipping_zones','phppos_shipping_zones_ibfk_1','2021-01-17 21:40:21','size',1,NULL,'Number of pages in the index'),('ts21','phppos_store_accounts','PRIMARY','2021-01-17 21:40:31','n_diff_pfx01',660,4,'sno'),('ts21','phppos_store_accounts','PRIMARY','2021-01-17 21:40:31','n_leaf_pages',4,NULL,'Number of leaf pages in the index'),('ts21','phppos_store_accounts','PRIMARY','2021-01-17 21:40:31','size',5,NULL,'Number of pages in the index'),('ts21','phppos_store_accounts','phppos_store_accounts_ibfk_1','2021-01-17 21:40:31','n_diff_pfx01',575,1,'sale_id'),('ts21','phppos_store_accounts','phppos_store_accounts_ibfk_1','2021-01-17 21:40:31','n_diff_pfx02',660,1,'sale_id,sno'),('ts21','phppos_store_accounts','phppos_store_accounts_ibfk_1','2021-01-17 21:40:31','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_store_accounts','phppos_store_accounts_ibfk_1','2021-01-17 21:40:31','size',1,NULL,'Number of pages in the index'),('ts21','phppos_store_accounts','phppos_store_accounts_ibfk_2','2021-01-17 21:40:31','n_diff_pfx01',76,1,'customer_id'),('ts21','phppos_store_accounts','phppos_store_accounts_ibfk_2','2021-01-17 21:40:31','n_diff_pfx02',660,1,'customer_id,sno'),('ts21','phppos_store_accounts','phppos_store_accounts_ibfk_2','2021-01-17 21:40:31','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_store_accounts','phppos_store_accounts_ibfk_2','2021-01-17 21:40:31','size',1,NULL,'Number of pages in the index'),('ts21','phppos_store_accounts_paid_sales','PRIMARY','2021-01-17 22:35:16','n_diff_pfx01',170,1,'id'),('ts21','phppos_store_accounts_paid_sales','PRIMARY','2021-01-17 22:35:16','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_store_accounts_paid_sales','PRIMARY','2021-01-17 22:35:16','size',1,NULL,'Number of pages in the index'),('ts21','phppos_store_accounts_paid_sales','phppos_store_accounts_sales_ibfk_1','2021-01-17 22:35:16','n_diff_pfx01',170,1,'sale_id'),('ts21','phppos_store_accounts_paid_sales','phppos_store_accounts_sales_ibfk_1','2021-01-17 22:35:16','n_diff_pfx02',170,1,'sale_id,id'),('ts21','phppos_store_accounts_paid_sales','phppos_store_accounts_sales_ibfk_1','2021-01-17 22:35:16','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_store_accounts_paid_sales','phppos_store_accounts_sales_ibfk_1','2021-01-17 22:35:16','size',1,NULL,'Number of pages in the index'),('ts21','phppos_store_accounts_paid_sales','phppos_store_accounts_sales_ibfk_2','2021-01-17 22:35:16','n_diff_pfx01',100,1,'store_account_payment_sale_id'),('ts21','phppos_store_accounts_paid_sales','phppos_store_accounts_sales_ibfk_2','2021-01-17 22:35:16','n_diff_pfx02',170,1,'store_account_payment_sale_id,id'),('ts21','phppos_store_accounts_paid_sales','phppos_store_accounts_sales_ibfk_2','2021-01-17 22:35:16','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_store_accounts_paid_sales','phppos_store_accounts_sales_ibfk_2','2021-01-17 22:35:16','size',1,NULL,'Number of pages in the index'),('ts21','phppos_supplier_store_accounts','PRIMARY','2021-01-17 21:40:44','n_diff_pfx01',644,5,'sno'),('ts21','phppos_supplier_store_accounts','PRIMARY','2021-01-17 21:40:44','n_leaf_pages',5,NULL,'Number of leaf pages in the index'),('ts21','phppos_supplier_store_accounts','PRIMARY','2021-01-17 21:40:44','size',6,NULL,'Number of pages in the index'),('ts21','phppos_supplier_store_accounts','phppos_supplier_store_accounts_ibfk_1','2021-01-17 21:40:44','n_diff_pfx01',578,1,'receiving_id'),('ts21','phppos_supplier_store_accounts','phppos_supplier_store_accounts_ibfk_1','2021-01-17 21:40:44','n_diff_pfx02',644,1,'receiving_id,sno'),('ts21','phppos_supplier_store_accounts','phppos_supplier_store_accounts_ibfk_1','2021-01-17 21:40:44','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_supplier_store_accounts','phppos_supplier_store_accounts_ibfk_1','2021-01-17 21:40:44','size',1,NULL,'Number of pages in the index'),('ts21','phppos_supplier_store_accounts','phppos_supplier_store_accounts_ibfk_2','2021-01-17 21:40:44','n_diff_pfx01',105,1,'supplier_id'),('ts21','phppos_supplier_store_accounts','phppos_supplier_store_accounts_ibfk_2','2021-01-17 21:40:44','n_diff_pfx02',644,1,'supplier_id,sno'),('ts21','phppos_supplier_store_accounts','phppos_supplier_store_accounts_ibfk_2','2021-01-17 21:40:44','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_supplier_store_accounts','phppos_supplier_store_accounts_ibfk_2','2021-01-17 21:40:44','size',1,NULL,'Number of pages in the index'),('ts21','phppos_supplier_store_accounts_paid_receivings','PRIMARY','2021-01-17 22:35:17','n_diff_pfx01',250,1,'id'),('ts21','phppos_supplier_store_accounts_paid_receivings','PRIMARY','2021-01-17 22:35:17','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_supplier_store_accounts_paid_receivings','PRIMARY','2021-01-17 22:35:17','size',1,NULL,'Number of pages in the index'),('ts21','phppos_supplier_store_accounts_paid_receivings','phppos_supplier_store_accounts_paid_receivings_ibfk_1','2021-01-17 22:35:17','n_diff_pfx01',250,1,'receiving_id'),('ts21','phppos_supplier_store_accounts_paid_receivings','phppos_supplier_store_accounts_paid_receivings_ibfk_1','2021-01-17 22:35:17','n_diff_pfx02',250,1,'receiving_id,id'),('ts21','phppos_supplier_store_accounts_paid_receivings','phppos_supplier_store_accounts_paid_receivings_ibfk_1','2021-01-17 22:35:17','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_supplier_store_accounts_paid_receivings','phppos_supplier_store_accounts_paid_receivings_ibfk_1','2021-01-17 22:35:17','size',1,NULL,'Number of pages in the index'),('ts21','phppos_supplier_store_accounts_paid_receivings','phppos_supplier_store_accounts_paid_receivings_ibfk_2','2021-01-17 22:35:17','n_diff_pfx01',222,1,'store_account_payment_receiving_id'),('ts21','phppos_supplier_store_accounts_paid_receivings','phppos_supplier_store_accounts_paid_receivings_ibfk_2','2021-01-17 22:35:17','n_diff_pfx02',250,1,'store_account_payment_receiving_id,id'),('ts21','phppos_supplier_store_accounts_paid_receivings','phppos_supplier_store_accounts_paid_receivings_ibfk_2','2021-01-17 22:35:17','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_supplier_store_accounts_paid_receivings','phppos_supplier_store_accounts_paid_receivings_ibfk_2','2021-01-17 22:35:17','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','PRIMARY','2021-01-17 22:33:20','n_diff_pfx01',141,1,'id'),('ts21','phppos_suppliers','PRIMARY','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','PRIMARY','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','account_number','2021-01-17 22:33:20','n_diff_pfx01',119,1,'account_number'),('ts21','phppos_suppliers','account_number','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','account_number','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','custom_field_10_value','2021-01-17 22:33:20','n_diff_pfx01',6,1,'custom_field_10_value'),('ts21','phppos_suppliers','custom_field_10_value','2021-01-17 22:33:20','n_diff_pfx02',141,1,'custom_field_10_value,id'),('ts21','phppos_suppliers','custom_field_10_value','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','custom_field_10_value','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','custom_field_1_value','2021-01-17 22:33:20','n_diff_pfx01',2,1,'custom_field_1_value'),('ts21','phppos_suppliers','custom_field_1_value','2021-01-17 22:33:20','n_diff_pfx02',141,1,'custom_field_1_value,id'),('ts21','phppos_suppliers','custom_field_1_value','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','custom_field_1_value','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','custom_field_2_value','2021-01-17 22:33:20','n_diff_pfx01',3,1,'custom_field_2_value'),('ts21','phppos_suppliers','custom_field_2_value','2021-01-17 22:33:20','n_diff_pfx02',141,1,'custom_field_2_value,id'),('ts21','phppos_suppliers','custom_field_2_value','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','custom_field_2_value','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','custom_field_3_value','2021-01-17 22:33:20','n_diff_pfx01',6,1,'custom_field_3_value'),('ts21','phppos_suppliers','custom_field_3_value','2021-01-17 22:33:20','n_diff_pfx02',141,1,'custom_field_3_value,id'),('ts21','phppos_suppliers','custom_field_3_value','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','custom_field_3_value','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','custom_field_4_value','2021-01-17 22:33:20','n_diff_pfx01',3,1,'custom_field_4_value'),('ts21','phppos_suppliers','custom_field_4_value','2021-01-17 22:33:20','n_diff_pfx02',141,1,'custom_field_4_value,id'),('ts21','phppos_suppliers','custom_field_4_value','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','custom_field_4_value','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','custom_field_5_value','2021-01-17 22:33:20','n_diff_pfx01',1,1,'custom_field_5_value'),('ts21','phppos_suppliers','custom_field_5_value','2021-01-17 22:33:20','n_diff_pfx02',141,1,'custom_field_5_value,id'),('ts21','phppos_suppliers','custom_field_5_value','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','custom_field_5_value','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','custom_field_6_value','2021-01-17 22:33:20','n_diff_pfx01',1,1,'custom_field_6_value'),('ts21','phppos_suppliers','custom_field_6_value','2021-01-17 22:33:20','n_diff_pfx02',141,1,'custom_field_6_value,id'),('ts21','phppos_suppliers','custom_field_6_value','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','custom_field_6_value','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','custom_field_7_value','2021-01-17 22:33:20','n_diff_pfx01',1,1,'custom_field_7_value'),('ts21','phppos_suppliers','custom_field_7_value','2021-01-17 22:33:20','n_diff_pfx02',141,1,'custom_field_7_value,id'),('ts21','phppos_suppliers','custom_field_7_value','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','custom_field_7_value','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','custom_field_8_value','2021-01-17 22:33:20','n_diff_pfx01',1,1,'custom_field_8_value'),('ts21','phppos_suppliers','custom_field_8_value','2021-01-17 22:33:20','n_diff_pfx02',141,1,'custom_field_8_value,id'),('ts21','phppos_suppliers','custom_field_8_value','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','custom_field_8_value','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','custom_field_9_value','2021-01-17 22:33:20','n_diff_pfx01',3,1,'custom_field_9_value'),('ts21','phppos_suppliers','custom_field_9_value','2021-01-17 22:33:20','n_diff_pfx02',141,1,'custom_field_9_value,id'),('ts21','phppos_suppliers','custom_field_9_value','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','custom_field_9_value','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','deleted','2021-01-17 22:33:20','n_diff_pfx01',1,1,'deleted'),('ts21','phppos_suppliers','deleted','2021-01-17 22:33:20','n_diff_pfx02',141,1,'deleted,id'),('ts21','phppos_suppliers','deleted','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','deleted','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','person_id','2021-01-17 22:33:20','n_diff_pfx01',141,1,'person_id'),('ts21','phppos_suppliers','person_id','2021-01-17 22:33:20','n_diff_pfx02',141,1,'person_id,id'),('ts21','phppos_suppliers','person_id','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','person_id','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers','phppos_suppliers_ibfk_2','2021-01-17 22:33:20','n_diff_pfx01',1,1,'tax_class_id'),('ts21','phppos_suppliers','phppos_suppliers_ibfk_2','2021-01-17 22:33:20','n_diff_pfx02',141,1,'tax_class_id,id'),('ts21','phppos_suppliers','phppos_suppliers_ibfk_2','2021-01-17 22:33:20','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers','phppos_suppliers_ibfk_2','2021-01-17 22:33:20','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers_taxes','PRIMARY','2021-01-17 21:40:33','n_diff_pfx01',0,1,'id'),('ts21','phppos_suppliers_taxes','PRIMARY','2021-01-17 21:40:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers_taxes','PRIMARY','2021-01-17 21:40:33','size',1,NULL,'Number of pages in the index'),('ts21','phppos_suppliers_taxes','unique_tax','2021-01-17 21:40:33','n_diff_pfx01',0,1,'supplier_id'),('ts21','phppos_suppliers_taxes','unique_tax','2021-01-17 21:40:33','n_diff_pfx02',0,1,'supplier_id,name'),('ts21','phppos_suppliers_taxes','unique_tax','2021-01-17 21:40:33','n_diff_pfx03',0,1,'supplier_id,name,percent'),('ts21','phppos_suppliers_taxes','unique_tax','2021-01-17 21:40:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_suppliers_taxes','unique_tax','2021-01-17 21:40:33','size',1,NULL,'Number of pages in the index'),('ts21','phppos_tags','PRIMARY','2021-01-17 21:40:56','n_diff_pfx01',122,1,'id'),('ts21','phppos_tags','PRIMARY','2021-01-17 21:40:56','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_tags','PRIMARY','2021-01-17 21:40:56','size',1,NULL,'Number of pages in the index'),('ts21','phppos_tags','deleted','2021-01-17 21:40:56','n_diff_pfx01',1,1,'deleted'),('ts21','phppos_tags','deleted','2021-01-17 21:40:56','n_diff_pfx02',122,1,'deleted,id'),('ts21','phppos_tags','deleted','2021-01-17 21:40:56','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_tags','deleted','2021-01-17 21:40:56','size',1,NULL,'Number of pages in the index'),('ts21','phppos_tags','tag_name','2021-01-17 21:40:56','n_diff_pfx01',122,1,'name'),('ts21','phppos_tags','tag_name','2021-01-17 21:40:56','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_tags','tag_name','2021-01-17 21:40:56','size',1,NULL,'Number of pages in the index'),('ts21','phppos_tax_classes','PRIMARY','2021-01-17 21:40:47','n_diff_pfx01',0,1,'id'),('ts21','phppos_tax_classes','PRIMARY','2021-01-17 21:40:47','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_tax_classes','PRIMARY','2021-01-17 21:40:47','size',1,NULL,'Number of pages in the index'),('ts21','phppos_tax_classes','phppos_tax_classes_ibfk_1','2021-01-17 21:40:47','n_diff_pfx01',0,1,'location_id'),('ts21','phppos_tax_classes','phppos_tax_classes_ibfk_1','2021-01-17 21:40:47','n_diff_pfx02',0,1,'location_id,id'),('ts21','phppos_tax_classes','phppos_tax_classes_ibfk_1','2021-01-17 21:40:47','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_tax_classes','phppos_tax_classes_ibfk_1','2021-01-17 21:40:47','size',1,NULL,'Number of pages in the index'),('ts21','phppos_tax_classes_taxes','PRIMARY','2021-01-17 21:40:50','n_diff_pfx01',0,1,'id'),('ts21','phppos_tax_classes_taxes','PRIMARY','2021-01-17 21:40:50','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_tax_classes_taxes','PRIMARY','2021-01-17 21:40:50','size',1,NULL,'Number of pages in the index'),('ts21','phppos_tax_classes_taxes','unique_tax','2021-01-17 21:40:50','n_diff_pfx01',0,1,'tax_class_id'),('ts21','phppos_tax_classes_taxes','unique_tax','2021-01-17 21:40:50','n_diff_pfx02',0,1,'tax_class_id,name'),('ts21','phppos_tax_classes_taxes','unique_tax','2021-01-17 21:40:50','n_diff_pfx03',0,1,'tax_class_id,name,percent'),('ts21','phppos_tax_classes_taxes','unique_tax','2021-01-17 21:40:50','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_tax_classes_taxes','unique_tax','2021-01-17 21:40:50','size',1,NULL,'Number of pages in the index'),('ts21','phppos_zips','PRIMARY','2021-01-17 21:40:52','n_diff_pfx01',0,1,'name'),('ts21','phppos_zips','PRIMARY','2021-01-17 21:40:52','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_zips','PRIMARY','2021-01-17 21:40:52','size',1,NULL,'Number of pages in the index'),('ts21','phppos_zips','name','2021-01-17 21:40:52','n_diff_pfx01',0,1,'name'),('ts21','phppos_zips','name','2021-01-17 21:40:52','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_zips','name','2021-01-17 21:40:52','size',1,NULL,'Number of pages in the index'),('ts21','phppos_zips','phppos_zips_ibfk_1','2021-01-17 21:40:52','n_diff_pfx01',0,1,'shipping_zone_id'),('ts21','phppos_zips','phppos_zips_ibfk_1','2021-01-17 21:40:52','n_diff_pfx02',0,1,'shipping_zone_id,name'),('ts21','phppos_zips','phppos_zips_ibfk_1','2021-01-17 21:40:52','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('ts21','phppos_zips','phppos_zips_ibfk_1','2021-01-17 21:40:52','size',1,NULL,'Number of pages in the index');

--
-- Table structure for table `innodb_table_stats`
--

CREATE TABLE `innodb_table_stats` (
  `database_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `table_name` varchar(199) COLLATE utf8_bin NOT NULL,
  `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `n_rows` bigint(20) unsigned NOT NULL,
  `clustered_index_size` bigint(20) unsigned NOT NULL,
  `sum_of_other_index_sizes` bigint(20) unsigned NOT NULL,
  PRIMARY KEY (`database_name`,`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;

--
-- Dumping data for table `innodb_table_stats`
--

INSERT INTO `innodb_table_stats` VALUES ('casatv','phppos_access','2019-02-18 20:42:40',0,1,2),('casatv','phppos_additional_item_numbers','2020-07-01 15:42:12',44,1,1),('casatv','phppos_app_config','2019-02-18 20:42:43',246,1,0),('casatv','phppos_app_files','2019-02-18 20:43:15',901,2721,0),('casatv','phppos_attribute_values','2019-10-25 14:29:05',17,1,2),('casatv','phppos_attributes','2019-10-25 14:28:55',2,1,1),('casatv','phppos_categories','2019-10-25 14:28:14',236,1,4),('casatv','phppos_currency_exchange_rates','2020-07-02 14:12:44',0,1,0),('casatv','phppos_customers','2019-02-18 20:43:24',441,5,18),('casatv','phppos_customers_series','2019-02-18 20:43:20',0,1,3),('casatv','phppos_customers_series_log','2019-02-18 20:43:21',0,1,1),('casatv','phppos_customers_taxes','2019-02-18 20:43:21',0,1,1),('casatv','phppos_employees','2019-11-15 18:24:51',34,1,14),('casatv','phppos_employees_app_config','2019-02-18 20:43:27',2,1,0),('casatv','phppos_employees_locations','2020-07-16 16:55:35',36,1,1),('casatv','phppos_employees_reset_password','2019-02-18 20:43:34',2,1,1),('casatv','phppos_employees_time_clock','2019-02-18 20:43:25',0,1,2),('casatv','phppos_employees_time_off','2019-02-18 20:43:26',0,1,3),('casatv','phppos_expenses','2019-02-18 20:43:36',453,5,11),('casatv','phppos_giftcards','2019-02-18 20:43:28',0,1,4),('casatv','phppos_giftcards_log','2019-02-18 20:43:29',0,1,1),('casatv','phppos_inventory','2019-10-25 14:27:49',12282,97,90),('casatv','phppos_inventory_counts','2020-07-17 15:52:13',4,1,2),('casatv','phppos_inventory_counts_items','2020-07-20 14:29:13',104,1,3),('casatv','phppos_item_attribute_values','2019-10-25 14:29:15',26,1,1),('casatv','phppos_item_attributes','2020-07-01 15:41:52',3,1,1),('casatv','phppos_item_images','2019-02-18 20:43:42',1078,4,3),('casatv','phppos_item_kit_items','2019-02-18 20:43:47',5,1,3),('casatv','phppos_item_kits','2019-02-18 20:44:06',2,1,21),('casatv','phppos_item_kits_tags','2019-02-18 20:43:40',0,1,1),('casatv','phppos_item_kits_taxes','2019-02-18 20:43:41',0,1,1),('casatv','phppos_item_kits_tier_prices','2019-02-18 20:44:08',2,1,1),('casatv','phppos_item_variation_attribute_values','2020-07-01 15:41:42',39,1,1),('casatv','phppos_item_variations','2019-10-25 14:28:35',23,1,4),('casatv','phppos_items','2020-07-01 15:42:23',2791,88,157),('casatv','phppos_items_serial_numbers','2019-12-02 19:11:10',6,1,2),('casatv','phppos_items_tags','2020-07-01 15:42:02',40,1,1),('casatv','phppos_items_taxes','2019-02-18 20:44:13',0,1,1),('casatv','phppos_items_tier_prices','2020-07-02 14:12:53',0,1,1),('casatv','phppos_keys','2019-06-14 17:00:06',0,1,2),('casatv','phppos_limits','2019-02-18 20:44:15',0,1,2),('casatv','phppos_location_item_kits','2019-02-18 20:44:23',4,1,2),('casatv','phppos_location_item_kits_taxes','2019-02-18 20:44:17',0,1,2),('casatv','phppos_location_item_kits_tier_prices','2019-02-18 20:44:17',0,1,2),('casatv','phppos_location_item_variations','2019-10-25 14:28:45',8,1,1),('casatv','phppos_location_items','2019-10-25 14:29:38',2742,11,15),('casatv','phppos_location_items_taxes','2019-02-18 20:44:20',0,1,2),('casatv','phppos_location_items_tier_prices','2019-02-18 20:44:21',0,1,2),('casatv','phppos_locations','2019-02-18 20:44:24',3,1,7),('casatv','phppos_logs','2019-02-18 20:44:22',0,1,0),('casatv','phppos_manufacturers','2019-10-25 14:27:53',279,1,2),('casatv','phppos_message_receiver','2019-02-18 20:44:26',40,1,2),('casatv','phppos_messages','2019-02-18 20:44:27',31,1,2),('casatv','phppos_migrations','2019-02-18 20:44:24',0,1,0),('casatv','phppos_modules','2019-02-18 20:44:28',15,1,2),('casatv','phppos_modules_actions','2019-02-18 20:44:29',111,1,1),('casatv','phppos_people','2019-10-25 14:27:33',612,5,6),('casatv','phppos_people_files','2019-02-18 20:44:27',0,1,1),('casatv','phppos_permissions','2020-07-16 16:51:13',28,1,1),('casatv','phppos_permissions_actions','2020-07-16 16:51:10',349,1,2),('casatv','phppos_price_rules','2019-02-18 20:44:29',0,1,4),('casatv','phppos_price_rules_categories','2019-02-18 20:44:30',0,1,2),('casatv','phppos_price_rules_item_kits','2019-02-18 20:44:31',0,1,2),('casatv','phppos_price_rules_items','2019-02-18 20:44:36',15,1,2),('casatv','phppos_price_rules_price_breaks','2019-02-18 20:44:32',0,1,1),('casatv','phppos_price_rules_tags','2019-02-18 20:44:32',0,1,2),('casatv','phppos_price_tiers','2020-07-02 14:12:43',0,1,0),('casatv','phppos_receivings','2019-02-18 20:44:39',127,4,16),('casatv','phppos_receivings_items','2019-02-27 15:49:34',2454,97,10),('casatv','phppos_receivings_items_taxes','2019-02-27 15:49:45',2331,12,8),('casatv','phppos_receivings_payments','2019-02-18 20:44:42',98,1,2),('casatv','phppos_register_currency_denominations','2020-07-02 14:13:03',6,1,0),('casatv','phppos_register_log','2019-02-18 20:44:40',0,1,3),('casatv','phppos_register_log_audit','2019-02-18 20:44:40',0,1,2),('casatv','phppos_register_log_payments','2019-02-18 20:44:41',0,1,1),('casatv','phppos_registers','2019-02-18 20:44:46',5,1,2),('casatv','phppos_registers_cart','2019-02-18 20:44:53',3,1,1),('casatv','phppos_sale_types','2019-03-01 16:01:42',3,1,0),('casatv','phppos_sales','2019-02-18 20:44:57',1331,23,47),('casatv','phppos_sales_coupons','2019-02-18 20:44:50',0,1,2),('casatv','phppos_sales_deliveries','2019-02-18 20:44:51',0,1,8),('casatv','phppos_sales_item_kits','2019-02-18 20:44:51',0,1,2),('casatv','phppos_sales_item_kits_taxes','2019-02-18 20:44:52',0,1,1),('casatv','phppos_sales_items','2019-02-18 20:44:59',1796,21,16),('casatv','phppos_sales_items_taxes','2019-02-18 20:45:09',1641,7,6),('casatv','phppos_sales_payments','2019-02-18 20:45:14',1419,9,6),('casatv','phppos_sessions','2020-07-18 16:06:44',1652,1251,11),('casatv','phppos_shipping_methods','2019-02-18 20:45:13',0,1,2),('casatv','phppos_shipping_providers','2019-02-18 20:45:13',0,1,0),('casatv','phppos_shipping_zones','2019-02-18 20:45:13',0,1,1),('casatv','phppos_store_accounts','2019-02-18 20:45:17',68,1,2),('casatv','phppos_store_accounts_paid_sales','2019-02-18 20:45:18',7,1,2),('casatv','phppos_supplier_store_accounts','2019-02-18 20:45:16',0,1,2),('casatv','phppos_supplier_store_accounts_paid_receivings','2019-02-18 20:45:16',0,1,2),('casatv','phppos_suppliers','2019-10-25 14:27:54',143,1,14),('casatv','phppos_suppliers_taxes','2019-02-18 20:45:18',0,1,1),('casatv','phppos_tags','2019-10-25 14:27:54',119,1,2),('casatv','phppos_tax_classes','2019-02-18 20:45:19',0,1,1),('casatv','phppos_tax_classes_taxes','2019-02-18 20:45:19',0,1,1),('casatv','phppos_zips','2019-02-18 20:45:20',0,1,2),('casatv2','phppos_access','2020-12-17 14:59:54',0,1,2),('casatv2','phppos_additional_item_numbers','2021-03-08 13:42:56',17,1,2),('casatv2','phppos_app_config','2021-01-21 16:11:47',319,1,0),('casatv2','phppos_app_files','2021-02-11 16:59:12',71,801,1),('casatv2','phppos_appointment_types','2021-01-21 15:56:02',0,1,0),('casatv2','phppos_appointments','2021-01-21 15:56:03',0,1,4),('casatv2','phppos_attribute_values','2020-12-17 14:59:56',0,1,2),('casatv2','phppos_attributes','2020-12-17 14:59:57',0,1,1),('casatv2','phppos_categories','2021-04-17 16:00:53',43,1,4),('casatv2','phppos_currency_exchange_rates','2021-02-02 14:15:02',0,1,0),('casatv2','phppos_customers','2021-02-24 17:32:40',202,3,18),('casatv2','phppos_customers_series','2020-12-17 15:00:00',0,1,3),('casatv2','phppos_customers_series_log','2020-12-17 15:00:01',0,1,1),('casatv2','phppos_customers_taxes','2020-12-17 15:00:01',0,1,1),('casatv2','phppos_damaged_items_log','2021-01-21 16:03:46',0,1,4),('casatv2','phppos_ecommerce_locations','2021-02-02 14:15:03',0,1,0),('casatv2','phppos_employee_registers','2021-01-21 15:53:44',0,1,2),('casatv2','phppos_employees','2021-01-25 19:44:02',4,1,15),('casatv2','phppos_employees_app_config','2021-04-06 15:11:02',4,1,0),('casatv2','phppos_employees_locations','2021-02-27 14:30:06',7,1,1),('casatv2','phppos_employees_reset_password','2020-12-17 15:00:04',0,1,1),('casatv2','phppos_employees_time_clock','2020-12-17 15:00:04',0,1,2),('casatv2','phppos_employees_time_off','2021-01-21 15:57:45',0,1,3),('casatv2','phppos_expenses','2021-01-21 15:55:19',0,1,11),('casatv2','phppos_giftcards','2020-12-17 15:00:07',0,1,4),('casatv2','phppos_giftcards_log','2020-12-17 15:00:07',0,1,1),('casatv2','phppos_grid_hidden_categories','2021-01-21 15:58:06',0,1,2),('casatv2','phppos_grid_hidden_item_kits','2021-01-21 15:58:05',0,1,2),('casatv2','phppos_grid_hidden_items','2021-01-21 15:58:05',0,1,2),('casatv2','phppos_grid_hidden_tags','2021-01-21 15:58:07',0,1,2),('casatv2','phppos_inventory','2021-02-03 14:45:19',304,3,6),('casatv2','phppos_inventory_counts','2020-12-17 15:00:08',0,1,2),('casatv2','phppos_inventory_counts_items','2020-12-17 15:00:09',0,1,3),('casatv2','phppos_item_attribute_values','2020-12-17 15:00:09',0,1,1),('casatv2','phppos_item_attributes','2020-12-17 15:00:10',0,1,1),('casatv2','phppos_item_images','2021-02-11 17:00:37',72,1,3),('casatv2','phppos_item_kit_images','2021-01-21 15:58:09',0,1,2),('casatv2','phppos_item_kit_item_kits','2021-01-21 15:53:43',0,1,2),('casatv2','phppos_item_kit_items','2020-12-17 15:00:11',0,1,3),('casatv2','phppos_item_kits','2021-01-21 16:03:15',0,1,24),('casatv2','phppos_item_kits_modifiers','2021-01-21 15:59:50',0,1,1),('casatv2','phppos_item_kits_pricing_history','2021-01-21 15:57:53',0,1,3),('casatv2','phppos_item_kits_tags','2020-12-17 15:00:14',0,1,1),('casatv2','phppos_item_kits_taxes','2020-12-17 15:00:15',0,1,1),('casatv2','phppos_item_kits_tier_prices','2020-12-17 15:00:15',0,1,1),('casatv2','phppos_item_variation_attribute_values','2020-12-17 15:00:16',0,1,1),('casatv2','phppos_item_variations','2020-12-17 15:01:41',0,1,4),('casatv2','phppos_items','2021-04-17 17:30:56',209,6,34),('casatv2','phppos_items_modifiers','2021-01-21 15:59:49',0,1,1),('casatv2','phppos_items_pricing_history','2021-02-02 16:36:32',133,1,4),('casatv2','phppos_items_quantity_units','2021-01-21 16:02:15',0,1,2),('casatv2','phppos_items_serial_numbers','2021-02-11 15:09:04',74,1,2),('casatv2','phppos_items_tags','2021-03-08 13:33:22',342,1,1),('casatv2','phppos_items_taxes','2020-12-17 15:00:21',0,1,1),('casatv2','phppos_items_tier_prices','2020-12-17 15:00:22',0,1,1),('casatv2','phppos_keys','2020-12-17 15:00:22',0,1,2),('casatv2','phppos_limits','2020-12-17 15:00:23',0,1,2),('casatv2','phppos_location_item_kits','2020-12-17 15:00:23',0,1,2),('casatv2','phppos_location_item_kits_taxes','2020-12-17 15:00:24',0,1,2),('casatv2','phppos_location_item_kits_tier_prices','2020-12-17 15:00:24',0,1,2),('casatv2','phppos_location_item_variations','2021-01-21 15:56:55',0,1,1),('casatv2','phppos_location_items','2021-02-11 15:08:37',153,1,3),('casatv2','phppos_location_items_taxes','2020-12-17 15:00:26',0,1,2),('casatv2','phppos_location_items_tier_prices','2020-12-17 15:00:26',0,1,2),('casatv2','phppos_locations','2021-01-21 16:03:43',1,1,7),('casatv2','phppos_logs','2020-12-17 15:00:28',0,1,0),('casatv2','phppos_manufacturers','2021-02-09 18:59:23',9,1,2),('casatv2','phppos_message_receiver','2020-12-17 15:00:29',0,1,2),('casatv2','phppos_messages','2020-12-17 15:00:29',0,1,2),('casatv2','phppos_migrations','2020-12-17 15:00:30',0,1,0),('casatv2','phppos_modifier_items','2021-01-21 15:59:49',0,1,2),('casatv2','phppos_modifiers','2021-01-21 15:59:48',0,1,2),('casatv2','phppos_modules','2020-12-17 15:00:56',15,1,2),('casatv2','phppos_modules_actions','2021-01-21 15:58:23',114,1,1),('casatv2','phppos_people','2021-02-24 17:32:50',216,3,6),('casatv2','phppos_people_files','2020-12-17 15:00:33',0,1,1),('casatv2','phppos_permissions','2021-02-27 14:30:26',20,1,1),('casatv2','phppos_permissions_actions','2021-02-27 14:29:53',181,1,2),('casatv2','phppos_permissions_actions_locations','2021-01-21 15:57:57',0,1,3),('casatv2','phppos_permissions_locations','2021-01-21 15:57:57',0,1,2),('casatv2','phppos_permissions_template','2021-01-21 16:02:20',0,1,1),('casatv2','phppos_permissions_template_actions','2021-01-21 16:02:20',0,1,3),('casatv2','phppos_permissions_template_actions_locations','2021-01-21 16:02:21',0,1,4),('casatv2','phppos_permissions_template_locations','2021-01-21 16:02:22',0,1,3),('casatv2','phppos_permissions_templates','2021-01-21 16:02:19',0,1,3),('casatv2','phppos_price_rules','2021-01-21 16:01:18',0,1,4),('casatv2','phppos_price_rules_categories','2020-12-17 15:00:35',0,1,2),('casatv2','phppos_price_rules_item_kits','2020-12-17 15:00:36',0,1,2),('casatv2','phppos_price_rules_items','2020-12-17 15:00:36',0,1,2),('casatv2','phppos_price_rules_locations','2021-01-21 15:53:43',0,1,2),('casatv2','phppos_price_rules_manufacturers','2021-01-21 15:58:17',0,1,2),('casatv2','phppos_price_rules_price_breaks','2020-12-17 15:00:37',0,1,1),('casatv2','phppos_price_rules_tags','2020-12-17 15:00:37',0,1,2),('casatv2','phppos_price_rules_tiers_exclude','2021-01-21 16:03:32',0,1,1),('casatv2','phppos_price_tiers','2020-12-17 15:00:38',0,1,0),('casatv2','phppos_receivings','2021-02-11 15:17:43',14,1,17),('casatv2','phppos_receivings_items','2021-02-03 14:45:09',387,8,4),('casatv2','phppos_receivings_items_taxes','2020-12-17 15:00:41',0,1,1),('casatv2','phppos_receivings_payments','2021-02-05 13:57:27',10,1,2),('casatv2','phppos_register_currency_denominations','2021-01-21 15:58:08',12,1,0),('casatv2','phppos_register_log','2020-12-17 15:00:43',0,1,3),('casatv2','phppos_register_log_audit','2020-12-17 15:00:44',0,1,2),('casatv2','phppos_register_log_denoms','2021-01-21 15:58:07',0,1,2),('casatv2','phppos_register_log_payments','2021-01-21 15:57:44',0,1,1),('casatv2','phppos_registers','2021-01-21 16:03:19',1,1,2),('casatv2','phppos_registers_cart','2020-12-17 15:00:45',0,1,1),('casatv2','phppos_sale_types','2020-12-17 15:01:22',3,1,0),('casatv2','phppos_sales','2021-02-24 16:42:07',91,3,26),('casatv2','phppos_sales_coupons','2020-12-17 15:00:50',0,1,2),('casatv2','phppos_sales_deliveries','2020-12-17 15:00:52',0,1,8),('casatv2','phppos_sales_item_kits','2021-01-21 16:03:16',0,1,2),('casatv2','phppos_sales_item_kits_modifier_items','2021-01-21 15:59:51',0,1,2),('casatv2','phppos_sales_item_kits_taxes','2020-12-17 15:00:53',0,1,1),('casatv2','phppos_sales_items','2021-02-24 16:41:38',109,3,6),('casatv2','phppos_sales_items_modifier_items','2021-01-21 15:59:50',0,1,2),('casatv2','phppos_sales_items_taxes','2021-02-24 16:42:02',101,1,1),('casatv2','phppos_sales_payments','2021-01-25 20:07:52',29,1,2),('casatv2','phppos_sessions','2021-04-26 18:51:33',133,68,1),('casatv2','phppos_shipping_methods','2020-12-17 15:00:57',0,1,2),('casatv2','phppos_shipping_providers','2020-12-17 15:00:57',0,1,0),('casatv2','phppos_shipping_zones','2020-12-17 15:00:58',0,1,1),('casatv2','phppos_store_accounts','2021-01-25 20:13:24',2,1,2),('casatv2','phppos_store_accounts_paid_sales','2021-01-21 15:56:48',0,1,2),('casatv2','phppos_supplier_store_accounts','2020-12-17 15:01:00',0,1,2),('casatv2','phppos_supplier_store_accounts_paid_receivings','2021-01-21 15:56:49',0,1,2),('casatv2','phppos_suppliers','2021-01-26 14:26:07',5,1,14),('casatv2','phppos_suppliers_taxes','2020-12-17 15:01:02',0,1,1),('casatv2','phppos_tags','2021-01-27 14:47:41',29,1,2),('casatv2','phppos_tax_classes','2020-12-17 15:01:03',0,1,1),('casatv2','phppos_tax_classes_taxes','2020-12-17 15:01:04',0,1,1),('casatv2','phppos_zips','2020-12-17 15:01:04',0,1,2),('casatv2018','phppos_access','2019-02-26 15:43:58',0,1,2),('casatv2018','phppos_additional_item_numbers','2019-02-26 15:44:03',51,1,1),('casatv2018','phppos_app_config','2019-02-26 15:39:42',246,1,0),('casatv2018','phppos_app_files','2019-02-26 15:39:39',901,2785,0),('casatv2018','phppos_attribute_values','2019-02-26 15:44:05',13,1,2),('casatv2018','phppos_attributes','2019-02-26 15:44:00',0,1,1),('casatv2018','phppos_categories','2019-02-26 15:44:10',234,1,4),('casatv2018','phppos_currency_exchange_rates','2019-02-26 15:39:44',0,1,0),('casatv2018','phppos_customers','2019-02-26 15:44:12',442,5,18),('casatv2018','phppos_customers_series','2019-02-26 15:44:06',0,1,3),('casatv2018','phppos_customers_series_log','2019-02-26 15:44:08',0,1,1),('casatv2018','phppos_customers_taxes','2019-02-26 15:44:09',0,1,1),('casatv2018','phppos_employees','2019-02-26 15:44:13',32,1,14),('casatv2018','phppos_employees_app_config','2019-02-26 15:44:14',2,1,0),('casatv2018','phppos_employees_locations','2019-02-26 15:44:19',30,1,1),('casatv2018','phppos_employees_reset_password','2019-02-26 15:44:22',2,1,1),('casatv2018','phppos_employees_time_clock','2019-02-26 15:44:15',0,1,2),('casatv2018','phppos_employees_time_off','2019-02-26 15:44:17',0,1,3),('casatv2018','phppos_expenses','2019-02-26 15:44:27',453,5,11),('casatv2018','phppos_giftcards','2019-02-26 15:44:20',0,1,4),('casatv2018','phppos_giftcards_log','2019-02-26 15:44:21',0,1,1),('casatv2018','phppos_inventory','2019-02-26 15:44:29',5324,25,41),('casatv2018','phppos_inventory_counts','2019-02-26 15:44:32',4,1,2),('casatv2018','phppos_inventory_counts_items','2019-02-26 15:44:36',48,1,3),('casatv2018','phppos_item_attribute_values','2019-02-26 15:44:49',18,1,1),('casatv2018','phppos_item_attributes','2019-02-26 15:44:44',2,1,1),('casatv2018','phppos_item_images','2019-02-26 15:44:53',1078,4,3),('casatv2018','phppos_item_kit_items','2019-02-26 15:44:57',5,1,3),('casatv2018','phppos_item_kits','2019-02-26 15:44:55',2,1,21),('casatv2018','phppos_item_kits_tags','2019-02-26 15:44:51',0,1,1),('casatv2018','phppos_item_kits_taxes','2019-02-26 15:44:52',0,1,1),('casatv2018','phppos_item_kits_tier_prices','2019-02-26 15:44:56',2,1,1),('casatv2018','phppos_item_variation_attribute_values','2019-02-26 15:45:04',7,1,1),('casatv2018','phppos_item_variations','2019-02-26 15:45:02',7,1,3),('casatv2018','phppos_items','2019-02-26 15:44:37',2527,97,167),('casatv2018','phppos_items_serial_numbers','2019-02-26 15:44:40',7,1,2),('casatv2018','phppos_items_tags','2019-02-26 15:44:42',40,1,1),('casatv2018','phppos_items_taxes','2019-02-26 15:44:38',0,1,1),('casatv2018','phppos_items_tier_prices','2019-02-26 15:44:43',2140,7,4),('casatv2018','phppos_keys','2019-02-26 15:44:59',0,1,2),('casatv2018','phppos_limits','2019-02-26 15:45:00',0,1,2),('casatv2018','phppos_location_item_kits','2019-02-26 15:45:15',4,1,2),('casatv2018','phppos_location_item_kits_taxes','2019-02-26 15:45:10',0,1,2),('casatv2018','phppos_location_item_kits_tier_prices','2019-02-26 15:45:11',0,1,2),('casatv2018','phppos_location_item_variations','2019-02-26 15:45:12',0,1,1),('casatv2018','phppos_location_items','2019-02-26 15:45:13',2680,10,16),('casatv2018','phppos_location_items_taxes','2019-02-26 15:45:06',0,1,2),('casatv2018','phppos_location_items_tier_prices','2019-02-26 15:45:07',0,1,2),('casatv2018','phppos_locations','2019-02-26 15:45:08',3,1,7),('casatv2018','phppos_logs','2019-02-26 15:41:44',0,1,0),('casatv2018','phppos_manufacturers','2019-02-26 15:41:56',90,1,2),('casatv2018','phppos_message_receiver','2019-02-26 15:45:18',40,1,2),('casatv2018','phppos_messages','2019-02-26 15:45:16',31,1,2),('casatv2018','phppos_migrations','2019-02-26 15:41:54',0,1,0),('casatv2018','phppos_modules','2019-02-26 15:42:05',15,1,2),('casatv2018','phppos_modules_actions','2019-02-26 15:45:20',111,1,1),('casatv2018','phppos_people','2019-02-26 15:45:21',505,5,6),('casatv2018','phppos_people_files','2019-02-26 15:45:19',0,1,1),('casatv2018','phppos_permissions','2019-02-26 15:45:24',28,1,1),('casatv2018','phppos_permissions_actions','2019-02-26 15:45:30',348,3,2),('casatv2018','phppos_price_rules','2019-02-26 15:42:07',0,1,4),('casatv2018','phppos_price_rules_categories','2019-02-26 15:45:23',0,1,2),('casatv2018','phppos_price_rules_item_kits','2019-02-26 15:45:25',0,1,2),('casatv2018','phppos_price_rules_items','2019-02-26 15:45:31',15,1,2),('casatv2018','phppos_price_rules_price_breaks','2019-02-26 15:45:27',0,1,1),('casatv2018','phppos_price_rules_tags','2019-02-26 15:45:28',0,1,2),('casatv2018','phppos_price_tiers','2019-02-26 15:42:35',2,1,0),('casatv2018','phppos_receivings','2019-02-26 15:45:33',127,4,16),('casatv2018','phppos_receivings_items','2019-02-26 15:45:35',1212,15,6),('casatv2018','phppos_receivings_items_taxes','2019-02-26 15:45:36',863,5,3),('casatv2018','phppos_receivings_payments','2019-02-26 15:45:37',98,1,2),('casatv2018','phppos_register_currency_denominations','2019-02-26 15:43:06',6,1,0),('casatv2018','phppos_register_log','2019-02-26 15:45:38',0,1,3),('casatv2018','phppos_register_log_audit','2019-02-26 15:45:39',0,1,2),('casatv2018','phppos_register_log_payments','2019-02-26 15:45:41',0,1,1),('casatv2018','phppos_registers','2019-02-26 15:45:44',5,1,2),('casatv2018','phppos_registers_cart','2019-02-26 15:45:51',3,1,1),('casatv2018','phppos_sale_types','2019-02-26 15:43:30',3,1,0),('casatv2018','phppos_sales','2019-02-26 15:45:54',1331,23,47),('casatv2018','phppos_sales_coupons','2019-02-26 15:45:48',0,1,2),('casatv2018','phppos_sales_deliveries','2019-02-26 15:45:49',0,1,8),('casatv2018','phppos_sales_item_kits','2019-02-26 15:45:56',0,1,2),('casatv2018','phppos_sales_item_kits_taxes','2019-02-26 15:45:57',0,1,1),('casatv2018','phppos_sales_items','2019-02-26 15:45:58',1802,21,16),('casatv2018','phppos_sales_items_taxes','2019-02-26 15:46:03',1646,7,6),('casatv2018','phppos_sales_payments','2019-02-26 15:46:04',1425,9,6),('casatv2018','phppos_sessions','2019-02-26 15:43:37',1981,801,9),('casatv2018','phppos_shipping_methods','2019-02-26 15:46:00',0,1,2),('casatv2018','phppos_shipping_providers','2019-02-26 15:43:29',0,1,0),('casatv2018','phppos_shipping_zones','2019-02-26 15:46:01',0,1,1),('casatv2018','phppos_store_accounts','2019-02-26 15:46:06',68,1,2),('casatv2018','phppos_store_accounts_paid_sales','2019-02-26 15:46:16',7,1,2),('casatv2018','phppos_supplier_store_accounts','2019-02-26 15:46:09',0,1,2),('casatv2018','phppos_supplier_store_accounts_paid_receivings','2019-02-26 15:46:10',0,1,2),('casatv2018','phppos_suppliers','2019-02-26 15:46:27',31,1,14),('casatv2018','phppos_suppliers_taxes','2019-02-26 15:46:07',0,1,1),('casatv2018','phppos_tags','2019-02-26 15:44:02',29,1,2),('casatv2018','phppos_tax_classes','2019-02-26 15:46:10',0,1,1),('casatv2018','phppos_tax_classes_taxes','2019-02-26 15:46:12',0,1,1),('casatv2018','phppos_zips','2019-02-26 15:46:13',0,1,2),('mysql','gtid_executed','2019-02-15 20:59:11',0,1,0),('phpmyadmin','pma__bookmark','2019-02-18 14:49:21',0,1,0),('phpmyadmin','pma__central_columns','2019-02-18 14:49:27',0,1,0),('phpmyadmin','pma__column_info','2019-02-18 14:49:21',0,1,1),('phpmyadmin','pma__designer_settings','2019-02-18 14:49:27',0,1,0),('phpmyadmin','pma__export_templates','2019-02-18 14:49:28',0,1,1),('phpmyadmin','pma__favorite','2019-02-18 14:49:23',0,1,0),('phpmyadmin','pma__history','2019-02-18 14:49:21',0,1,1),('phpmyadmin','pma__navigationhiding','2019-02-18 14:49:26',0,1,0),('phpmyadmin','pma__pdf_pages','2019-02-18 14:49:22',0,1,1),('phpmyadmin','pma__recent','2019-02-18 14:49:22',0,1,0),('phpmyadmin','pma__relation','2019-02-18 14:49:23',0,1,1),('phpmyadmin','pma__savedsearches','2019-02-18 14:49:27',0,1,1),('phpmyadmin','pma__table_coords','2019-02-18 14:49:24',0,1,0),('phpmyadmin','pma__table_info','2019-02-18 14:49:24',0,1,0),('phpmyadmin','pma__table_uiprefs','2019-02-18 14:49:23',0,1,0),('phpmyadmin','pma__tracking','2019-02-18 14:49:25',0,1,0),('phpmyadmin','pma__userconfig','2019-10-26 14:07:57',3,1,0),('phpmyadmin','pma__usergroups','2019-02-18 14:49:26',0,1,0),('phpmyadmin','pma__users','2019-02-18 14:49:25',0,1,0),('sc','phppos_access','2021-03-24 00:09:40',0,1,2),('sc','phppos_additional_item_numbers','2021-03-24 00:09:41',3,1,2),('sc','phppos_app_config','2021-03-24 00:09:51',301,3,0),('sc','phppos_app_files','2021-03-24 00:09:42',0,1,1),('sc','phppos_appointment_types','2021-03-24 00:09:42',0,1,0),('sc','phppos_appointments','2021-03-24 00:09:43',0,1,4),('sc','phppos_attribute_values','2021-03-24 00:09:43',0,1,2),('sc','phppos_attributes','2021-03-24 00:09:44',0,1,1),('sc','phppos_categories','2021-03-24 00:09:50',19,1,4),('sc','phppos_currency_exchange_rates','2021-03-24 00:09:45',0,1,0),('sc','phppos_customers','2021-03-24 00:09:46',0,1,18),('sc','phppos_customers_series','2021-03-24 00:09:46',0,1,3),('sc','phppos_customers_series_log','2021-03-24 00:09:47',0,1,1),('sc','phppos_customers_taxes','2021-03-24 00:09:47',0,1,1),('sc','phppos_damaged_items_log','2021-03-24 00:09:48',0,1,4),('sc','phppos_ecommerce_locations','2021-03-24 00:09:48',0,1,0),('sc','phppos_employee_registers','2021-03-24 00:09:48',0,1,2),('sc','phppos_employees','2021-03-24 00:09:57',10,1,15),('sc','phppos_employees_app_config','2021-03-24 00:09:50',0,1,0),('sc','phppos_employees_locations','2021-04-13 18:02:22',9,1,1),('sc','phppos_employees_reset_password','2021-03-24 00:09:51',0,1,1),('sc','phppos_employees_time_clock','2021-03-24 00:09:52',0,1,2),('sc','phppos_employees_time_off','2021-03-24 00:09:52',0,1,3),('sc','phppos_expenses','2021-03-24 00:09:53',0,1,11),('sc','phppos_giftcards','2021-03-24 00:09:53',0,1,4),('sc','phppos_giftcards_log','2021-03-24 00:09:54',0,1,1),('sc','phppos_grid_hidden_categories','2021-03-24 00:09:54',0,1,2),('sc','phppos_grid_hidden_item_kits','2021-03-24 00:09:55',0,1,2),('sc','phppos_grid_hidden_items','2021-03-24 00:09:55',0,1,2),('sc','phppos_grid_hidden_tags','2021-03-24 00:09:56',0,1,2),('sc','phppos_inventory','2021-03-24 00:10:40',1528,9,19),('sc','phppos_inventory_counts','2021-03-24 00:09:58',0,1,2),('sc','phppos_inventory_counts_items','2021-03-24 00:09:59',0,1,3),('sc','phppos_item_attribute_values','2021-03-24 00:09:59',0,1,1),('sc','phppos_item_attributes','2021-03-24 00:09:59',0,1,1),('sc','phppos_item_images','2021-03-24 00:10:00',0,1,3),('sc','phppos_item_kit_images','2021-03-24 00:10:00',0,1,2),('sc','phppos_item_kit_item_kits','2021-03-24 00:10:01',0,1,2),('sc','phppos_item_kit_items','2021-03-24 00:10:01',0,1,3),('sc','phppos_item_kits','2021-03-24 00:10:03',0,1,24),('sc','phppos_item_kits_modifiers','2021-03-24 00:10:03',0,1,1),('sc','phppos_item_kits_pricing_history','2021-03-24 00:10:03',0,1,3),('sc','phppos_item_kits_tags','2021-03-24 00:10:04',0,1,1),('sc','phppos_item_kits_taxes','2021-03-24 00:10:04',0,1,1),('sc','phppos_item_kits_tier_prices','2021-03-24 00:10:05',0,1,1),('sc','phppos_item_variation_attribute_values','2021-03-24 00:10:05',0,1,1),('sc','phppos_item_variations','2021-03-24 00:10:08',0,1,5),('sc','phppos_items','2021-05-07 14:47:44',498,8,34),('sc','phppos_items_modifiers','2021-03-24 00:10:42',0,1,1),('sc','phppos_items_pricing_history','2021-03-24 00:10:49',353,3,4),('sc','phppos_items_quantity_units','2021-03-24 00:10:43',0,1,2),('sc','phppos_items_serial_numbers','2021-03-24 00:10:43',0,1,2),('sc','phppos_items_tags','2021-03-24 00:10:44',0,1,1),('sc','phppos_items_taxes','2021-03-24 00:10:44',0,1,1),('sc','phppos_items_tier_prices','2021-03-24 00:10:45',0,1,1),('sc','phppos_keys','2021-03-24 00:10:45',0,1,2),('sc','phppos_limits','2021-03-24 00:10:46',0,1,2),('sc','phppos_location_item_kits','2021-03-24 00:10:46',0,1,2),('sc','phppos_location_item_kits_taxes','2021-03-24 00:10:47',0,1,2),('sc','phppos_location_item_kits_tier_prices','2021-03-24 00:10:48',0,1,2),('sc','phppos_location_item_variations','2021-03-24 00:10:48',0,1,1),('sc','phppos_location_items','2021-05-07 15:13:23',493,3,3),('sc','phppos_location_items_taxes','2021-03-24 00:10:50',0,1,2),('sc','phppos_location_items_tier_prices','2021-03-24 00:10:50',0,1,2),('sc','phppos_locations','2021-03-24 00:10:51',0,1,7),('sc','phppos_logs','2021-03-24 00:10:52',0,1,0),('sc','phppos_manufacturers','2021-03-24 00:10:52',0,1,2),('sc','phppos_message_receiver','2021-03-24 00:10:53',0,1,2),('sc','phppos_messages','2021-03-24 00:10:53',0,1,2),('sc','phppos_migrations','2021-03-24 00:10:53',0,1,0),('sc','phppos_modifier_items','2021-03-24 00:10:54',0,1,2),('sc','phppos_modifiers','2021-03-24 00:10:55',0,1,2),('sc','phppos_modules','2021-03-24 00:10:57',16,1,2),('sc','phppos_modules_actions','2021-03-24 00:10:58',127,1,1),('sc','phppos_people','2021-03-24 00:10:59',10,1,6),('sc','phppos_people_files','2021-03-24 00:10:58',0,1,1),('sc','phppos_permissions','2021-04-13 18:02:22',9,1,1),('sc','phppos_permissions_actions','2021-04-13 18:02:22',108,1,2),('sc','phppos_permissions_actions_locations','2021-03-24 00:11:00',0,1,3),('sc','phppos_permissions_locations','2021-03-24 00:11:00',0,1,2),('sc','phppos_permissions_template','2021-03-24 00:11:00',0,1,1),('sc','phppos_permissions_template_actions','2021-03-24 00:11:01',0,1,3),('sc','phppos_permissions_template_actions_locations','2021-03-24 00:11:02',0,1,4),('sc','phppos_permissions_template_locations','2021-03-24 00:11:02',0,1,3),('sc','phppos_permissions_templates','2021-03-24 00:11:03',0,1,3),('sc','phppos_price_rules','2021-03-24 00:11:04',0,1,4),('sc','phppos_price_rules_categories','2021-03-24 00:11:04',0,1,2),('sc','phppos_price_rules_item_kits','2021-03-24 00:11:05',0,1,2),('sc','phppos_price_rules_items','2021-03-24 00:11:05',0,1,2),('sc','phppos_price_rules_locations','2021-03-24 00:11:06',0,1,2),('sc','phppos_price_rules_manufacturers','2021-03-24 00:11:06',0,1,2),('sc','phppos_price_rules_price_breaks','2021-03-24 00:11:07',0,1,1),('sc','phppos_price_rules_tags','2021-03-24 00:11:07',0,1,2),('sc','phppos_price_rules_tiers_exclude','2021-03-24 00:11:08',0,1,1),('sc','phppos_price_tiers','2021-03-24 00:11:08',0,1,0),('sc','phppos_receivings','2021-03-24 00:11:10',10,1,17),('sc','phppos_receivings_items','2021-03-24 00:11:11',28,1,4),('sc','phppos_receivings_items_taxes','2021-03-24 00:11:11',0,1,1),('sc','phppos_receivings_payments','2021-03-24 00:11:12',10,1,2),('sc','phppos_register_currency_denominations','2021-03-24 00:11:16',12,1,0),('sc','phppos_register_log','2021-03-24 00:11:13',0,1,3),('sc','phppos_register_log_audit','2021-03-24 00:11:13',0,1,2),('sc','phppos_register_log_denoms','2021-03-24 00:11:14',0,1,2),('sc','phppos_register_log_payments','2021-03-24 00:11:14',0,1,1),('sc','phppos_registers','2021-03-24 00:11:15',0,1,2),('sc','phppos_registers_cart','2021-03-24 00:11:15',0,1,1),('sc','phppos_sale_types','2021-03-24 00:11:20',3,1,0),('sc','phppos_sales','2021-03-24 00:11:24',702,12,30),('sc','phppos_sales_coupons','2021-03-24 00:11:21',0,1,2),('sc','phppos_sales_deliveries','2021-03-24 00:11:22',0,1,8),('sc','phppos_sales_item_kits','2021-03-24 00:11:22',0,1,2),('sc','phppos_sales_item_kits_modifier_items','2021-03-24 00:11:23',0,1,2),('sc','phppos_sales_item_kits_taxes','2021-03-24 00:11:23',0,1,1),('sc','phppos_sales_items','2021-03-24 00:11:27',1122,15,18),('sc','phppos_sales_items_modifier_items','2021-03-24 00:11:26',0,1,2),('sc','phppos_sales_items_taxes','2021-03-24 00:11:26',0,1,1),('sc','phppos_sales_payments','2021-03-24 00:11:28',703,4,2),('sc','phppos_sessions','2021-05-07 17:19:41',51,93,1),('sc','phppos_shipping_methods','2021-03-24 00:11:28',0,1,2),('sc','phppos_shipping_providers','2021-03-24 00:11:29',0,1,0),('sc','phppos_shipping_zones','2021-03-24 00:11:29',0,1,1),('sc','phppos_store_accounts','2021-03-24 00:11:29',0,1,2),('sc','phppos_store_accounts_paid_sales','2021-03-24 00:11:30',0,1,2),('sc','phppos_supplier_store_accounts','2021-03-24 00:11:30',0,1,2),('sc','phppos_supplier_store_accounts_paid_receivings','2021-03-24 00:11:31',0,1,2),('sc','phppos_suppliers','2021-03-24 00:11:32',0,1,14),('sc','phppos_suppliers_taxes','2021-03-24 00:11:32',0,1,1),('sc','phppos_tags','2021-03-24 00:11:33',0,1,2),('sc','phppos_tax_classes','2021-03-24 00:11:33',0,1,1),('sc','phppos_tax_classes_taxes','2021-03-24 00:11:34',0,1,1),('sc','phppos_zips','2021-03-24 00:11:34',0,1,2),('sys','sys_config','2019-02-15 20:59:24',6,1,0),('test','phppos_access','2019-02-25 19:32:00',0,1,2),('test','phppos_additional_item_numbers','2019-02-25 19:32:00',0,1,1),('test','phppos_app_config','2019-02-25 19:32:11',195,1,0),('test','phppos_app_files','2019-02-25 19:32:01',0,1,0),('test','phppos_attribute_values','2019-02-25 19:32:02',0,1,2),('test','phppos_attributes','2019-02-25 19:32:02',0,1,1),('test','phppos_categories','2019-02-25 19:32:03',0,1,4),('test','phppos_currency_exchange_rates','2019-02-25 19:32:03',0,1,0),('test','phppos_customers','2019-02-25 19:32:06',0,1,18),('test','phppos_customers_series','2019-02-25 19:32:06',0,1,3),('test','phppos_customers_series_log','2019-02-25 19:32:07',0,1,1),('test','phppos_customers_taxes','2019-02-25 19:32:07',0,1,1),('test','phppos_employees','2019-02-25 19:32:08',0,1,14),('test','phppos_employees_app_config','2019-02-25 19:32:08',0,1,0),('test','phppos_employees_locations','2019-02-25 19:32:09',0,1,1),('test','phppos_employees_reset_password','2019-02-25 19:32:09',0,1,1),('test','phppos_employees_time_clock','2019-02-25 19:32:10',0,1,2),('test','phppos_employees_time_off','2019-02-25 19:32:10',0,1,3),('test','phppos_expenses','2019-02-25 19:32:11',0,1,11),('test','phppos_giftcards','2019-02-25 19:32:12',0,1,4),('test','phppos_giftcards_log','2019-02-25 19:32:13',0,1,1),('test','phppos_inventory','2019-02-25 19:32:13',0,1,5),('test','phppos_inventory_counts','2019-02-25 19:32:14',0,1,2),('test','phppos_inventory_counts_items','2019-02-25 19:32:14',0,1,3),('test','phppos_item_attribute_values','2019-02-25 19:32:15',0,1,1),('test','phppos_item_attributes','2019-02-25 19:32:15',0,1,1),('test','phppos_item_images','2019-02-25 19:32:16',0,1,3),('test','phppos_item_kit_items','2019-02-25 19:32:16',0,1,3),('test','phppos_item_kits','2019-02-25 19:32:18',0,1,21),('test','phppos_item_kits_tags','2019-02-25 19:32:19',0,1,1),('test','phppos_item_kits_taxes','2019-02-25 19:32:19',0,1,1),('test','phppos_item_kits_tier_prices','2019-02-25 19:32:20',0,1,1),('test','phppos_item_variation_attribute_values','2019-02-25 19:32:20',0,1,1),('test','phppos_item_variations','2019-02-25 19:33:42',0,1,4),('test','phppos_items','2019-02-25 19:57:21',1,1,30),('test','phppos_items_serial_numbers','2019-02-25 19:32:26',0,1,2),('test','phppos_items_tags','2019-02-25 19:32:27',0,1,1),('test','phppos_items_taxes','2019-02-25 19:32:27',0,1,1),('test','phppos_items_tier_prices','2019-02-25 19:32:28',0,1,1),('test','phppos_keys','2019-02-25 19:32:28',0,1,2),('test','phppos_limits','2019-02-25 19:32:29',0,1,2),('test','phppos_location_item_kits','2019-02-25 19:32:29',0,1,2),('test','phppos_location_item_kits_taxes','2019-02-25 19:32:30',0,1,2),('test','phppos_location_item_kits_tier_prices','2019-02-25 19:32:30',0,1,2),('test','phppos_location_item_variations','2019-02-25 19:32:31',0,1,1),('test','phppos_location_items','2019-02-25 19:32:31',0,1,3),('test','phppos_location_items_taxes','2019-02-25 19:32:32',0,1,2),('test','phppos_location_items_tier_prices','2019-02-25 19:32:32',0,1,2),('test','phppos_locations','2019-02-25 19:32:33',0,1,7),('test','phppos_logs','2019-02-25 19:32:34',0,1,0),('test','phppos_manufacturers','2019-02-25 19:32:34',0,1,2),('test','phppos_message_receiver','2019-02-25 19:32:35',0,1,2),('test','phppos_messages','2019-02-25 19:32:35',0,1,2),('test','phppos_migrations','2019-02-25 19:32:36',0,1,0),('test','phppos_modules','2019-02-25 19:33:00',15,1,2),('test','phppos_modules_actions','2019-02-25 19:32:39',99,1,1),('test','phppos_people','2019-02-25 19:32:38',0,1,6),('test','phppos_people_files','2019-02-25 19:32:38',0,1,1),('test','phppos_permissions','2019-02-25 19:32:47',15,1,1),('test','phppos_permissions_actions','2019-02-25 19:32:50',99,1,2),('test','phppos_price_rules','2019-02-25 19:32:40',0,1,4),('test','phppos_price_rules_categories','2019-02-25 19:32:41',0,1,2),('test','phppos_price_rules_item_kits','2019-02-25 19:32:41',0,1,2),('test','phppos_price_rules_items','2019-02-25 19:32:42',0,1,2),('test','phppos_price_rules_price_breaks','2019-02-25 19:32:42',0,1,1),('test','phppos_price_rules_tags','2019-02-25 19:32:43',0,1,2),('test','phppos_price_tiers','2019-02-25 19:32:43',0,1,0),('test','phppos_receivings','2019-02-25 19:32:44',0,1,16),('test','phppos_receivings_items','2019-02-25 19:32:45',0,1,2),('test','phppos_receivings_items_taxes','2019-02-25 19:32:46',0,1,1),('test','phppos_receivings_payments','2019-02-25 19:32:46',0,1,2),('test','phppos_register_currency_denominations','2019-02-25 19:33:12',12,1,0),('test','phppos_register_log','2019-02-25 19:32:47',0,1,3),('test','phppos_register_log_audit','2019-02-25 19:32:48',0,1,2),('test','phppos_register_log_payments','2019-02-25 19:32:48',0,1,1),('test','phppos_registers','2019-02-25 19:32:49',0,1,2),('test','phppos_registers_cart','2019-02-25 19:32:50',0,1,1),('test','phppos_sale_types','2019-02-25 19:33:23',3,1,0),('test','phppos_sales','2019-02-25 19:32:52',0,1,24),('test','phppos_sales_coupons','2019-02-25 19:32:52',0,1,2),('test','phppos_sales_deliveries','2019-02-25 19:32:53',0,1,8),('test','phppos_sales_item_kits','2019-02-25 19:32:54',0,1,2),('test','phppos_sales_item_kits_taxes','2019-02-25 19:32:55',0,1,1),('test','phppos_sales_items','2019-02-25 19:32:55',0,1,4),('test','phppos_sales_items_taxes','2019-02-25 19:32:56',0,1,1),('test','phppos_sales_payments','2019-02-25 19:32:56',0,1,2),('test','phppos_sessions','2019-02-25 21:15:26',8,1,1),('test','phppos_shipping_methods','2019-02-25 19:32:57',0,1,2),('test','phppos_shipping_providers','2019-02-25 19:32:58',0,1,0),('test','phppos_shipping_zones','2019-02-25 19:32:58',0,1,1),('test','phppos_store_accounts','2019-02-25 19:32:59',0,1,2),('test','phppos_store_accounts_paid_sales','2019-02-25 19:32:59',0,1,2),('test','phppos_supplier_store_accounts','2019-02-25 19:33:00',0,1,2),('test','phppos_supplier_store_accounts_paid_receivings','2019-02-25 19:33:00',0,1,2),('test','phppos_suppliers','2019-02-25 19:33:01',0,1,14),('test','phppos_suppliers_taxes','2019-02-25 19:33:02',0,1,1),('test','phppos_tags','2019-02-25 19:33:03',0,1,2),('test','phppos_tax_classes','2019-02-25 19:33:03',0,1,1),('test','phppos_tax_classes_taxes','2019-02-25 19:33:03',0,1,1),('test','phppos_zips','2019-02-25 19:33:04',0,1,2),('test101','phppos_access','2019-06-08 18:43:21',0,1,2),('test101','phppos_additional_item_numbers','2019-06-08 18:43:29',51,1,1),('test101','phppos_app_config','2019-06-08 18:39:07',246,1,0),('test101','phppos_app_files','2019-06-08 18:39:04',901,2785,0),('test101','phppos_attribute_values','2019-06-08 18:43:34',13,1,2),('test101','phppos_attributes','2019-06-08 18:43:23',0,1,1),('test101','phppos_categories','2019-06-08 18:43:36',234,1,4),('test101','phppos_currency_exchange_rates','2019-06-08 18:39:08',0,1,0),('test101','phppos_customers','2019-06-08 18:43:37',442,5,18),('test101','phppos_customers_series','2019-06-08 18:43:30',0,1,3),('test101','phppos_customers_series_log','2019-06-08 18:43:31',0,1,1),('test101','phppos_customers_taxes','2019-06-08 18:43:32',0,1,1),('test101','phppos_employees','2019-06-08 18:43:38',32,1,14),('test101','phppos_employees_app_config','2019-06-08 18:43:43',2,1,0),('test101','phppos_employees_locations','2019-06-08 18:43:47',30,1,1),('test101','phppos_employees_reset_password','2019-06-08 18:43:52',2,1,1),('test101','phppos_employees_time_clock','2019-06-08 18:43:39',0,1,2),('test101','phppos_employees_time_off','2019-06-08 18:43:41',0,1,3),('test101','phppos_expenses','2019-06-08 18:43:54',453,5,11),('test101','phppos_giftcards','2019-06-08 18:43:45',0,1,4),('test101','phppos_giftcards_log','2019-06-08 18:43:46',0,1,1),('test101','phppos_inventory','2019-06-08 18:43:57',5324,25,41),('test101','phppos_inventory_counts','2019-06-08 18:44:02',4,1,2),('test101','phppos_inventory_counts_items','2019-06-08 18:44:03',48,1,3),('test101','phppos_item_attribute_values','2019-06-08 18:44:16',18,1,1),('test101','phppos_item_attributes','2019-06-08 18:44:12',2,1,1),('test101','phppos_item_images','2019-06-08 18:44:17',1078,4,3),('test101','phppos_item_kit_items','2019-06-08 18:44:24',5,1,3),('test101','phppos_item_kits','2019-06-08 18:44:19',2,1,21),('test101','phppos_item_kits_tags','2019-06-08 18:44:14',0,1,1),('test101','phppos_item_kits_taxes','2019-06-08 18:44:15',0,1,1),('test101','phppos_item_kits_tier_prices','2019-06-08 18:44:20',2,1,1),('test101','phppos_item_variation_attribute_values','2019-06-08 18:44:30',7,1,1),('test101','phppos_item_variations','2019-06-08 18:44:26',7,1,3),('test101','phppos_items','2019-06-08 18:44:05',2565,97,167),('test101','phppos_items_serial_numbers','2019-06-08 18:44:07',7,1,2),('test101','phppos_items_tags','2019-06-08 18:44:08',40,1,1),('test101','phppos_items_taxes','2019-06-08 18:44:04',0,1,1),('test101','phppos_items_tier_prices','2019-06-08 18:44:10',2140,7,4),('test101','phppos_keys','2019-06-08 18:44:21',0,1,2),('test101','phppos_limits','2019-06-08 18:44:23',0,1,2),('test101','phppos_location_item_kits','2019-06-08 18:44:38',4,1,2),('test101','phppos_location_item_kits_taxes','2019-06-08 18:44:31',0,1,2),('test101','phppos_location_item_kits_tier_prices','2019-06-08 18:44:33',0,1,2),('test101','phppos_location_item_variations','2019-06-08 18:44:34',0,1,1),('test101','phppos_location_items','2019-06-08 18:44:36',2680,10,16),('test101','phppos_location_items_taxes','2019-06-08 18:44:28',0,1,2),('test101','phppos_location_items_tier_prices','2019-06-08 18:44:29',0,1,2),('test101','phppos_locations','2019-06-08 18:44:35',3,1,7),('test101','phppos_logs','2019-06-08 18:41:05',0,1,0),('test101','phppos_manufacturers','2019-06-08 18:41:18',90,1,2),('test101','phppos_message_receiver','2019-06-08 18:44:42',40,1,2),('test101','phppos_messages','2019-06-08 18:44:40',31,1,2),('test101','phppos_migrations','2019-06-08 18:41:15',0,1,0),('test101','phppos_modules','2019-06-08 18:41:27',15,1,2),('test101','phppos_modules_actions','2019-06-08 18:44:43',111,1,1),('test101','phppos_people','2019-06-08 18:44:46',505,5,6),('test101','phppos_people_files','2019-06-08 18:44:41',0,1,1),('test101','phppos_permissions','2019-06-08 18:45:25',28,1,1),('test101','phppos_permissions_actions','2019-06-08 18:45:28',348,3,2),('test101','phppos_price_rules','2019-06-08 18:41:29',0,1,4),('test101','phppos_price_rules_categories','2019-06-08 18:44:45',0,1,2),('test101','phppos_price_rules_item_kits','2019-06-08 18:44:47',0,1,2),('test101','phppos_price_rules_items','2019-06-08 18:44:55',15,1,2),('test101','phppos_price_rules_price_breaks','2019-06-08 18:44:48',0,1,1),('test101','phppos_price_rules_tags','2019-06-08 18:44:49',0,1,2),('test101','phppos_price_tiers','2019-06-08 18:41:55',2,1,0),('test101','phppos_receivings','2019-06-08 18:44:57',127,4,16),('test101','phppos_receivings_items','2019-06-08 18:44:58',1212,15,6),('test101','phppos_receivings_items_taxes','2019-06-08 18:44:59',863,5,3),('test101','phppos_receivings_payments','2019-06-08 18:45:06',98,1,2),('test101','phppos_register_currency_denominations','2019-06-08 18:42:40',6,1,0),('test101','phppos_register_log','2019-06-08 18:45:01',0,1,3),('test101','phppos_register_log_audit','2019-06-08 18:45:02',0,1,2),('test101','phppos_register_log_payments','2019-06-08 18:45:03',0,1,1),('test101','phppos_registers','2019-06-08 18:45:13',5,1,2),('test101','phppos_registers_cart','2019-06-08 18:45:15',3,1,1),('test101','phppos_sale_types','2019-06-08 18:43:01',3,1,0),('test101','phppos_sales','2019-06-08 18:45:19',1331,23,47),('test101','phppos_sales_coupons','2019-06-08 18:45:10',0,1,2),('test101','phppos_sales_deliveries','2019-06-08 18:45:11',0,1,8),('test101','phppos_sales_item_kits','2019-06-08 18:45:17',0,1,2),('test101','phppos_sales_item_kits_taxes','2019-06-08 18:45:18',0,1,1),('test101','phppos_sales_items','2019-06-08 18:45:21',1802,21,16),('test101','phppos_sales_items_taxes','2019-06-08 18:45:22',1646,7,6),('test101','phppos_sales_payments','2019-06-08 18:45:24',1425,9,6),('test101','phppos_sessions','2019-06-08 18:43:05',1910,801,9),('test101','phppos_shipping_methods','2019-06-08 18:45:21',0,1,2),('test101','phppos_shipping_providers','2019-06-08 18:42:53',0,1,0),('test101','phppos_shipping_zones','2019-06-08 18:45:22',0,1,1),('test101','phppos_store_accounts','2019-06-08 18:45:38',68,1,2),('test101','phppos_store_accounts_paid_sales','2019-06-08 18:45:48',7,1,2),('test101','phppos_supplier_store_accounts','2019-06-08 18:45:30',0,1,2),('test101','phppos_supplier_store_accounts_paid_receivings','2019-06-08 18:45:32',0,1,2),('test101','phppos_suppliers','2019-06-08 18:45:58',31,1,14),('test101','phppos_suppliers_taxes','2019-06-08 18:45:29',0,1,1),('test101','phppos_tags','2019-06-08 18:43:26',29,1,2),('test101','phppos_tax_classes','2019-06-08 18:45:34',0,1,1),('test101','phppos_tax_classes_taxes','2019-06-08 18:45:35',0,1,1),('test101','phppos_zips','2019-06-08 18:45:37',0,1,2),('test2020','phppos_access','2019-10-26 14:16:05',0,1,2),('test2020','phppos_additional_item_numbers','2019-10-26 14:21:57',636,4,2),('test2020','phppos_app_config','2019-10-26 14:33:34',277,3,0),('test2020','phppos_app_files','2019-10-26 14:10:32',1557,8481,0),('test2020','phppos_appointment_types','2019-10-26 14:20:28',0,1,0),('test2020','phppos_appointments','2019-10-26 14:20:29',0,1,4),('test2020','phppos_attribute_values','2019-10-26 14:16:15',201,1,2),('test2020','phppos_attributes','2019-10-26 14:16:12',18,1,1),('test2020','phppos_categories','2019-10-26 14:22:26',319,3,4),('test2020','phppos_currency_exchange_rates','2019-10-26 14:44:22',0,1,0),('test2020','phppos_customers','2019-10-26 14:19:00',322,4,18),('test2020','phppos_customers_series','2019-10-26 14:16:17',0,1,3),('test2020','phppos_customers_series_log','2019-10-26 14:16:18',0,1,1),('test2020','phppos_customers_taxes','2019-10-26 14:16:19',0,1,1),('test2020','phppos_employee_registers','2019-10-26 14:18:34',0,1,2),('test2020','phppos_employees','2019-10-26 14:22:23',64,1,14),('test2020','phppos_employees_app_config','2019-10-26 14:16:26',7,1,0),('test2020','phppos_employees_locations','2019-10-26 15:00:06',65,1,1),('test2020','phppos_employees_reset_password','2019-10-26 14:16:36',2,1,1),('test2020','phppos_employees_time_clock','2019-10-26 14:16:28',0,1,2),('test2020','phppos_employees_time_off','2019-10-26 14:22:02',0,1,3),('test2020','phppos_expenses','2019-10-26 14:19:59',554,6,13),('test2020','phppos_giftcards','2019-10-26 14:16:33',0,1,4),('test2020','phppos_giftcards_log','2019-10-26 14:16:34',0,1,1),('test2020','phppos_grid_hidden_categories','2019-10-26 14:23:02',0,1,2),('test2020','phppos_grid_hidden_item_kits','2019-10-26 14:23:02',0,1,2),('test2020','phppos_grid_hidden_items','2019-10-26 14:23:01',0,1,2),('test2020','phppos_grid_hidden_tags','2019-10-26 14:23:03',0,1,2),('test2020','phppos_inventory','2019-10-26 14:19:19',95825,481,613),('test2020','phppos_inventory_counts','2019-10-26 14:16:51',8,1,2),('test2020','phppos_inventory_counts_items','2019-10-26 14:16:57',3568,14,14),('test2020','phppos_item_attribute_values','2019-10-26 14:12:31',1961,7,4),('test2020','phppos_item_attributes','2019-10-26 14:12:46',137,1,1),('test2020','phppos_item_images','2019-10-26 14:12:36',1460,5,7),('test2020','phppos_item_kit_images','2019-10-26 14:23:05',0,1,2),('test2020','phppos_item_kit_item_kits','2019-10-26 14:18:33',0,1,2),('test2020','phppos_item_kit_items','2019-10-26 14:12:59',5,1,3),('test2020','phppos_item_kits','2019-10-26 14:23:19',5,1,22),('test2020','phppos_item_kits_pricing_history','2019-10-26 14:22:20',0,1,3),('test2020','phppos_item_kits_tags','2019-10-26 14:12:23',0,1,1),('test2020','phppos_item_kits_taxes','2019-10-26 14:12:26',0,1,1),('test2020','phppos_item_kits_tier_prices','2019-10-26 14:12:28',0,1,1),('test2020','phppos_item_variation_attribute_values','2019-10-26 14:13:05',2791,10,4),('test2020','phppos_item_variations','2019-10-26 14:12:59',2115,9,12),('test2020','phppos_items','2019-10-26 14:21:59',4341,97,144),('test2020','phppos_items_pricing_history','2019-10-26 14:22:20',0,1,4),('test2020','phppos_items_quantity_units','2019-10-26 14:22:04',0,1,1),('test2020','phppos_items_serial_numbers','2019-10-26 14:12:01',0,1,2),('test2020','phppos_items_tags','2019-10-26 14:12:22',715,3,1),('test2020','phppos_items_taxes','2019-10-26 14:12:05',0,1,1),('test2020','phppos_items_tier_prices','2019-10-26 14:12:34',6413,18,8),('test2020','phppos_keys','2019-10-26 14:12:40',0,1,2),('test2020','phppos_limits','2019-10-26 14:12:42',0,1,2),('test2020','phppos_location_item_kits','2019-10-26 14:13:20',5,1,2),('test2020','phppos_location_item_kits_taxes','2019-10-26 14:13:02',0,1,2),('test2020','phppos_location_item_kits_tier_prices','2019-10-26 14:13:04',0,1,2),('test2020','phppos_location_item_variations','2019-10-26 14:21:08',917,3,1),('test2020','phppos_location_items','2019-10-26 14:19:37',9578,29,36),('test2020','phppos_location_items_taxes','2019-10-26 14:12:55',0,1,2),('test2020','phppos_location_items_tier_prices','2019-10-26 14:12:58',0,1,2),('test2020','phppos_locations','2019-10-26 14:23:13',3,1,7),('test2020','phppos_logs','2019-10-26 14:13:08',0,1,0),('test2020','phppos_manufacturers','2019-10-26 14:13:28',207,1,2),('test2020','phppos_message_receiver','2019-10-26 14:13:15',0,1,2),('test2020','phppos_messages','2019-10-26 14:13:12',0,1,2),('test2020','phppos_migrations','2019-10-26 14:13:17',0,1,0),('test2020','phppos_modules','2019-10-26 14:13:29',15,1,2),('test2020','phppos_modules_actions','2019-10-26 14:13:32',117,1,1),('test2020','phppos_people','2019-10-26 14:13:39',510,5,6),('test2020','phppos_people_files','2019-10-26 14:13:26',0,1,1),('test2020','phppos_permissions','2019-10-26 15:00:16',48,1,1),('test2020','phppos_permissions_actions','2019-10-26 14:59:56',516,3,6),('test2020','phppos_permissions_actions_locations','2019-10-26 14:22:24',0,1,3),('test2020','phppos_permissions_locations','2019-10-26 14:22:24',0,1,2),('test2020','phppos_price_rules','2019-10-26 14:22:19',3,1,4),('test2020','phppos_price_rules_categories','2019-10-26 14:13:35',0,1,2),('test2020','phppos_price_rules_item_kits','2019-10-26 14:13:40',0,1,2),('test2020','phppos_price_rules_items','2019-10-26 14:13:58',22,1,2),('test2020','phppos_price_rules_locations','2019-10-26 14:18:32',0,1,2),('test2020','phppos_price_rules_manufacturers','2019-10-26 14:23:14',0,1,2),('test2020','phppos_price_rules_price_breaks','2019-10-26 14:14:03',2,1,1),('test2020','phppos_price_rules_tags','2019-10-26 14:13:46',0,1,2),('test2020','phppos_price_tiers','2019-10-26 14:14:10',2,1,0),('test2020','phppos_receivings','2019-10-26 14:21:17',1587,18,50),('test2020','phppos_receivings_items','2019-10-26 14:22:23',11513,161,53),('test2020','phppos_receivings_items_taxes','2019-10-26 14:14:28',10645,97,97),('test2020','phppos_receivings_payments','2019-10-26 14:14:32',937,5,2),('test2020','phppos_register_currency_denominations','2019-10-26 14:23:04',0,1,0),('test2020','phppos_register_log','2019-10-26 14:14:19',0,1,3),('test2020','phppos_register_log_audit','2019-10-26 14:14:22',0,1,2),('test2020','phppos_register_log_denoms','2019-10-26 14:23:04',0,1,2),('test2020','phppos_register_log_payments','2019-10-26 14:22:00',0,1,1),('test2020','phppos_registers','2019-10-26 14:14:42',3,1,2),('test2020','phppos_registers_cart','2019-10-26 14:14:45',3,1,1),('test2020','phppos_sale_types','2019-10-26 14:15:35',3,1,0),('test2020','phppos_sales','2019-10-26 14:23:01',15488,353,415),('test2020','phppos_sales_coupons','2019-10-26 14:14:40',0,1,2),('test2020','phppos_sales_deliveries','2019-10-26 14:14:43',0,1,8),('test2020','phppos_sales_item_kits','2019-10-26 14:22:42',9,1,2),('test2020','phppos_sales_item_kits_taxes','2019-10-26 14:15:38',9,1,1),('test2020','phppos_sales_items','2019-10-26 14:22:41',36234,481,485),('test2020','phppos_sales_items_taxes','2019-10-26 14:15:11',33358,161,161),('test2020','phppos_sales_payments','2019-10-26 14:15:21',18265,97,47),('test2020','phppos_sessions','2019-10-26 14:15:42',6955,5409,33),('test2020','phppos_shipping_methods','2019-10-26 14:15:26',0,1,2),('test2020','phppos_shipping_providers','2019-10-26 14:15:29',0,1,0),('test2020','phppos_shipping_zones','2019-10-26 14:15:31',0,1,1),('test2020','phppos_store_accounts','2019-10-26 14:15:49',647,5,2),('test2020','phppos_store_accounts_paid_sales','2019-10-26 14:20:56',169,1,2),('test2020','phppos_supplier_store_accounts','2019-10-26 14:16:07',637,6,2),('test2020','phppos_supplier_store_accounts_paid_receivings','2019-10-26 14:20:57',250,1,2),('test2020','phppos_suppliers','2019-10-26 14:19:05',124,1,14),('test2020','phppos_suppliers_taxes','2019-10-26 14:15:44',0,1,1),('test2020','phppos_tags','2019-10-26 14:16:10',118,1,2),('test2020','phppos_tax_classes','2019-10-26 14:15:58',0,1,1),('test2020','phppos_tax_classes_taxes','2019-10-26 14:16:01',0,1,1),('test2020','phppos_zips','2019-10-26 14:16:05',0,1,2),('timestordolar','phppos_access','2020-05-27 14:43:28',0,1,2),('timestordolar','phppos_additional_item_numbers','2020-05-27 14:56:50',593,3,1),('timestordolar','phppos_app_config','2020-05-27 14:37:56',248,3,0),('timestordolar','phppos_app_files','2020-05-27 14:37:51',1754,10401,0),('timestordolar','phppos_attribute_values','2020-05-27 14:43:39',276,1,2),('timestordolar','phppos_attributes','2020-05-27 14:43:36',23,1,1),('timestordolar','phppos_categories','2020-05-27 14:43:46',323,3,4),('timestordolar','phppos_currency_exchange_rates','2020-05-27 14:57:05',0,1,0),('timestordolar','phppos_customers','2020-05-27 14:43:48',344,4,18),('timestordolar','phppos_customers_series','2020-05-27 14:43:41',0,1,3),('timestordolar','phppos_customers_series_log','2020-05-27 14:43:42',0,1,1),('timestordolar','phppos_customers_taxes','2020-05-27 14:43:44',0,1,1),('timestordolar','phppos_employees','2020-05-27 14:43:50',68,1,14),('timestordolar','phppos_employees_app_config','2020-05-27 14:43:51',7,1,0),('timestordolar','phppos_employees_locations','2020-05-27 14:43:57',69,1,1),('timestordolar','phppos_employees_reset_password','2020-05-27 14:44:01',2,1,1),('timestordolar','phppos_employees_time_clock','2020-05-27 14:43:53',0,1,2),('timestordolar','phppos_employees_time_off','2020-05-27 14:43:54',0,1,3),('timestordolar','phppos_expenses','2020-05-27 14:44:12',554,6,13),('timestordolar','phppos_giftcards','2020-05-27 14:43:58',0,1,4),('timestordolar','phppos_giftcards_log','2020-05-27 14:44:00',0,1,1),('timestordolar','phppos_inventory','2020-05-27 14:44:15',102218,481,805),('timestordolar','phppos_inventory_counts','2020-05-27 14:44:16',12,1,2),('timestordolar','phppos_inventory_counts_items','2020-05-27 14:44:21',3851,15,15),('timestordolar','phppos_item_attribute_values','2020-05-27 14:39:54',2453,8,4),('timestordolar','phppos_item_attributes','2020-05-27 14:56:40',171,1,1),('timestordolar','phppos_item_images','2020-05-27 14:39:57',1642,6,9),('timestordolar','phppos_item_kit_items','2020-05-27 14:40:11',5,1,3),('timestordolar','phppos_item_kits','2020-05-27 14:40:10',5,1,21),('timestordolar','phppos_item_kits_tags','2020-05-27 14:39:46',0,1,1),('timestordolar','phppos_item_kits_taxes','2020-05-27 14:39:47',0,1,1),('timestordolar','phppos_item_kits_tier_prices','2020-05-27 14:39:50',0,1,1),('timestordolar','phppos_item_variation_attribute_values','2020-05-27 14:56:10',3042,12,5),('timestordolar','phppos_item_variations','2020-05-27 14:40:13',2366,10,15),('timestordolar','phppos_items','2020-05-27 14:56:20',4485,97,196),('timestordolar','phppos_items_serial_numbers','2020-05-27 14:39:22',0,1,2),('timestordolar','phppos_items_tags','2020-05-27 14:56:30',720,3,1),('timestordolar','phppos_items_taxes','2020-05-27 14:39:25',0,1,1),('timestordolar','phppos_items_tier_prices','2020-05-27 14:55:59',6697,21,9),('timestordolar','phppos_keys','2020-05-27 14:40:03',0,1,2),('timestordolar','phppos_limits','2020-05-27 14:40:05',0,1,2),('timestordolar','phppos_location_item_kits','2020-05-27 14:40:39',5,1,2),('timestordolar','phppos_location_item_kits_taxes','2020-05-27 14:40:23',0,1,2),('timestordolar','phppos_location_item_kits_tier_prices','2020-05-27 14:40:25',0,1,2),('timestordolar','phppos_location_item_variations','2020-05-27 14:40:40',1186,4,1),('timestordolar','phppos_location_items','2020-05-27 14:40:32',9762,31,51),('timestordolar','phppos_location_items_taxes','2020-05-27 14:40:18',0,1,2),('timestordolar','phppos_location_items_tier_prices','2020-05-27 14:40:20',0,1,2),('timestordolar','phppos_locations','2020-05-27 14:40:27',3,1,7),('timestordolar','phppos_logs','2020-05-27 14:40:29',0,1,0),('timestordolar','phppos_manufacturers','2020-05-27 14:40:44',208,1,2),('timestordolar','phppos_message_receiver','2020-05-27 14:40:36',0,1,2),('timestordolar','phppos_messages','2020-05-27 14:40:34',0,1,2),('timestordolar','phppos_migrations','2020-05-27 14:40:37',0,1,0),('timestordolar','phppos_modules','2020-05-27 14:41:05',15,1,2),('timestordolar','phppos_modules_actions','2020-05-27 14:40:50',117,1,1),('timestordolar','phppos_people','2020-05-27 14:40:53',542,5,6),('timestordolar','phppos_people_files','2020-05-27 14:40:46',0,1,1),('timestordolar','phppos_permissions','2020-11-30 15:22:31',44,1,1),('timestordolar','phppos_permissions_actions','2020-05-27 14:41:10',453,3,2),('timestordolar','phppos_price_rules','2020-05-27 14:41:15',3,1,4),('timestordolar','phppos_price_rules_categories','2020-05-27 14:40:55',0,1,2),('timestordolar','phppos_price_rules_item_kits','2020-05-27 14:41:01',0,1,2),('timestordolar','phppos_price_rules_items','2020-05-27 14:41:19',22,1,2),('timestordolar','phppos_price_rules_price_breaks','2020-05-27 14:41:24',2,1,1),('timestordolar','phppos_price_rules_tags','2020-05-27 14:41:06',0,1,2),('timestordolar','phppos_price_tiers','2020-05-27 14:41:31',2,1,0),('timestordolar','phppos_receivings','2020-05-27 14:41:34',1624,19,53),('timestordolar','phppos_receivings_items','2020-05-27 14:41:36',11842,161,41),('timestordolar','phppos_receivings_items_taxes','2020-05-27 14:41:47',10948,97,97),('timestordolar','phppos_receivings_payments','2020-05-27 14:41:51',974,5,2),('timestordolar','phppos_register_currency_denominations','2020-05-27 14:57:05',0,1,0),('timestordolar','phppos_register_log','2020-05-27 14:41:39',0,1,3),('timestordolar','phppos_register_log_audit','2020-05-27 14:41:42',0,1,2),('timestordolar','phppos_register_log_payments','2020-05-27 14:41:44',0,1,1),('timestordolar','phppos_registers','2020-05-27 14:42:01',3,1,2),('timestordolar','phppos_registers_cart','2020-05-27 14:42:04',3,1,1),('timestordolar','phppos_sale_types','2020-05-27 14:42:59',3,1,0),('timestordolar','phppos_sales','2020-05-27 14:42:11',17250,289,448),('timestordolar','phppos_sales_coupons','2020-05-27 14:41:58',0,1,2),('timestordolar','phppos_sales_deliveries','2020-05-27 14:42:01',0,1,8),('timestordolar','phppos_sales_item_kits','2020-05-27 14:42:52',9,1,2),('timestordolar','phppos_sales_item_kits_taxes','2020-05-27 14:42:29',9,1,1),('timestordolar','phppos_sales_items','2020-05-27 14:42:17',40761,417,388),('timestordolar','phppos_sales_items_taxes','2020-05-27 14:42:30',37490,161,161),('timestordolar','phppos_sales_payments','2020-05-27 14:42:41',20805,97,54),('timestordolar','phppos_sessions','2020-05-27 14:43:01',7872,6435,97),('timestordolar','phppos_shipping_methods','2020-05-27 14:42:49',0,1,2),('timestordolar','phppos_shipping_providers','2020-05-27 14:42:52',0,1,0),('timestordolar','phppos_shipping_zones','2020-05-27 14:42:55',0,1,1),('timestordolar','phppos_store_accounts','2020-05-27 14:43:07',648,5,2),('timestordolar','phppos_store_accounts_paid_sales','2020-05-27 14:43:13',169,1,2),('timestordolar','phppos_supplier_store_accounts','2020-05-27 14:43:21',637,6,2),('timestordolar','phppos_supplier_store_accounts_paid_receivings','2020-05-27 14:43:30',250,1,2),('timestordolar','phppos_suppliers','2020-05-27 14:43:17',130,1,14),('timestordolar','phppos_suppliers_taxes','2020-05-27 14:43:09',0,1,1),('timestordolar','phppos_tags','2020-05-27 14:43:32',122,1,2),('timestordolar','phppos_tax_classes','2020-05-27 14:43:22',0,1,1),('timestordolar','phppos_tax_classes_taxes','2020-05-27 14:43:25',0,1,1),('timestordolar','phppos_zips','2020-05-27 14:43:28',0,1,2),('timestore','phppos_access','2019-02-18 20:24:49',0,1,2),('timestore','phppos_additional_item_numbers','2021-02-24 15:46:10',561,3,2),('timestore','phppos_app_config','2021-02-24 16:15:15',324,3,0),('timestore','phppos_app_files','2021-02-20 13:15:54',1299,6113,0),('timestore','phppos_appointment_types','2021-02-20 13:10:53',0,1,0),('timestore','phppos_appointments','2021-02-20 13:10:54',0,1,4),('timestore','phppos_attribute_values','2020-10-27 15:58:46',361,1,2),('timestore','phppos_attributes','2020-10-08 03:40:54',28,1,1),('timestore','phppos_categories','2021-02-20 13:15:11',326,3,4),('timestore','phppos_currency_exchange_rates','2021-06-15 16:52:49',0,1,0),('timestore','phppos_customers','2021-02-20 13:19:47',402,4,18),('timestore','phppos_customers_series','2019-02-18 20:26:07',0,1,3),('timestore','phppos_customers_series_log','2019-02-18 20:26:08',0,1,1),('timestore','phppos_customers_taxes','2019-02-18 20:26:08',0,1,1),('timestore','phppos_damaged_items_log','2021-02-20 13:19:58',0,1,4),('timestore','phppos_ecommerce_locations','2021-06-15 16:52:49',0,1,0),('timestore','phppos_employee_registers','2021-02-20 13:07:44',0,1,2),('timestore','phppos_employees','2021-02-20 13:19:37',75,1,15),('timestore','phppos_employees_app_config','2019-02-18 20:26:11',6,1,0),('timestore','phppos_employees_locations','2021-02-20 15:42:49',76,1,1),('timestore','phppos_employees_reset_password','2019-02-18 20:26:14',2,1,1),('timestore','phppos_employees_time_clock','2019-02-18 20:26:12',0,1,2),('timestore','phppos_employees_time_off','2021-02-20 13:13:16',0,1,3),('timestore','phppos_expenses','2021-02-20 13:09:59',554,6,13),('timestore','phppos_giftcards','2019-02-18 20:26:15',0,1,4),('timestore','phppos_giftcards_log','2019-02-18 20:26:15',0,1,1),('timestore','phppos_grid_hidden_categories','2021-02-20 13:14:15',0,1,2),('timestore','phppos_grid_hidden_item_kits','2021-02-20 13:14:15',0,1,2),('timestore','phppos_grid_hidden_items','2021-02-20 13:14:14',0,1,2),('timestore','phppos_grid_hidden_tags','2021-02-20 13:14:16',0,1,2),('timestore','phppos_inventory','2021-02-20 13:17:14',132788,673,997),('timestore','phppos_inventory_counts','2020-01-10 20:07:43',9,1,2),('timestore','phppos_inventory_counts_items','2020-01-07 20:09:46',3397,14,14),('timestore','phppos_item_attribute_values','2020-08-25 15:31:22',10180,28,14),('timestore','phppos_item_attributes','2021-06-18 18:37:04',1914,7,3),('timestore','phppos_item_images','2019-02-18 20:26:43',1218,5,7),('timestore','phppos_item_kit_images','2021-02-20 13:14:18',0,1,2),('timestore','phppos_item_kit_item_kits','2021-02-20 13:07:43',0,1,2),('timestore','phppos_item_kit_items','2019-02-18 20:26:45',5,1,3),('timestore','phppos_item_kits','2021-02-20 13:19:05',5,1,24),('timestore','phppos_item_kits_modifiers','2021-02-20 13:15:52',0,1,1),('timestore','phppos_item_kits_pricing_history','2021-02-20 13:13:37',0,1,3),('timestore','phppos_item_kits_tags','2019-02-18 20:26:44',0,1,1),('timestore','phppos_item_kits_taxes','2019-02-18 20:26:44',0,1,1),('timestore','phppos_item_kits_tier_prices','2019-02-18 20:26:45',0,1,1),('timestore','phppos_item_variation_attribute_values','2021-02-24 15:51:05',9369,28,12),('timestore','phppos_item_variations','2020-10-31 14:32:24',4471,20,30),('timestore','phppos_items','2021-06-16 06:17:15',5183,97,237),('timestore','phppos_items_modifiers','2021-03-03 19:47:25',0,1,1),('timestore','phppos_items_pricing_history','2021-05-14 20:03:07',2371,10,18),('timestore','phppos_items_quantity_units','2021-02-20 13:18:05',0,1,2),('timestore','phppos_items_serial_numbers','2019-02-18 20:27:14',0,1,2),('timestore','phppos_items_tags','2021-02-08 19:20:54',1019,5,1),('timestore','phppos_items_taxes','2019-02-18 20:27:15',0,1,1),('timestore','phppos_items_tier_prices','2020-05-31 19:05:40',0,1,1),('timestore','phppos_keys','2019-06-25 18:42:08',0,1,2),('timestore','phppos_limits','2019-06-25 18:41:58',0,1,2),('timestore','phppos_location_item_kits','2019-02-18 20:27:21',5,1,2),('timestore','phppos_location_item_kits_taxes','2019-02-18 20:27:20',0,1,2),('timestore','phppos_location_item_kits_tier_prices','2019-02-18 20:27:21',0,1,2),('timestore','phppos_location_item_variations','2021-02-20 13:12:03',5152,12,6),('timestore','phppos_location_items','2021-02-20 13:09:36',9826,30,37),('timestore','phppos_location_items_taxes','2019-02-18 20:27:28',0,1,2),('timestore','phppos_location_items_tier_prices','2019-02-18 20:27:28',0,1,2),('timestore','phppos_locations','2021-02-20 13:19:57',3,1,7),('timestore','phppos_logs','2019-02-18 20:27:30',0,1,0),('timestore','phppos_manufacturers','2019-02-18 20:27:33',206,1,2),('timestore','phppos_message_receiver','2019-02-18 20:27:31',0,1,2),('timestore','phppos_messages','2019-02-18 20:27:32',0,1,2),('timestore','phppos_migrations','2019-02-18 20:27:32',0,1,0),('timestore','phppos_modifier_items','2021-03-03 19:43:43',2,1,2),('timestore','phppos_modifiers','2021-03-03 19:46:21',1,1,2),('timestore','phppos_modules','2019-02-18 20:27:34',15,1,2),('timestore','phppos_modules_actions','2021-02-20 13:14:57',133,1,1),('timestore','phppos_people','2021-03-05 19:03:34',619,5,6),('timestore','phppos_people_files','2019-02-18 20:27:35',0,1,1),('timestore','phppos_permissions','2021-05-15 19:09:30',45,1,1),('timestore','phppos_permissions_actions','2021-05-15 19:09:20',552,3,6),('timestore','phppos_permissions_actions_locations','2021-02-20 13:13:42',0,1,3),('timestore','phppos_permissions_locations','2021-02-20 13:13:41',0,1,2),('timestore','phppos_permissions_template','2021-02-22 15:55:48',19,1,1),('timestore','phppos_permissions_template_actions','2021-02-20 13:33:17',151,1,3),('timestore','phppos_permissions_template_actions_locations','2021-02-20 13:18:12',0,1,4),('timestore','phppos_permissions_template_locations','2021-02-20 13:18:13',0,1,3),('timestore','phppos_permissions_templates','2021-02-20 13:33:07',2,1,3),('timestore','phppos_price_rules','2021-02-20 13:17:07',3,1,4),('timestore','phppos_price_rules_categories','2019-02-18 20:27:38',0,1,2),('timestore','phppos_price_rules_item_kits','2019-02-18 20:27:39',0,1,2),('timestore','phppos_price_rules_items','2019-06-18 14:49:22',22,1,2),('timestore','phppos_price_rules_locations','2021-02-20 13:07:42',0,1,2),('timestore','phppos_price_rules_manufacturers','2021-02-20 13:14:28',0,1,2),('timestore','phppos_price_rules_price_breaks','2019-02-18 20:27:42',2,1,1),('timestore','phppos_price_rules_tags','2019-02-18 20:27:41',0,1,2),('timestore','phppos_price_rules_tiers_exclude','2021-02-20 13:19:38',0,1,1),('timestore','phppos_price_tiers','2020-05-31 19:05:30',0,1,0),('timestore','phppos_receivings','2021-02-20 13:18:53',1685,20,56),('timestore','phppos_receivings_items','2021-02-20 13:19:52',14121,161,73),('timestore','phppos_receivings_items_taxes','2019-02-18 20:27:57',10132,33,97),('timestore','phppos_receivings_payments','2019-02-18 20:28:00',881,5,2),('timestore','phppos_register_currency_denominations','2021-02-20 13:14:18',0,1,0),('timestore','phppos_register_log','2019-02-18 20:27:59',0,1,3),('timestore','phppos_register_log_audit','2019-02-18 20:27:59',0,1,2),('timestore','phppos_register_log_denoms','2021-02-20 13:14:17',0,1,2),('timestore','phppos_register_log_payments','2021-02-20 13:13:15',0,1,1),('timestore','phppos_registers','2021-02-20 13:19:12',3,1,2),('timestore','phppos_registers_cart','2019-02-18 20:28:02',3,1,1),('timestore','phppos_sale_types','2019-02-18 20:28:06',3,1,0),('timestore','phppos_sales','2021-02-20 13:19:41',20494,417,496),('timestore','phppos_sales_coupons','2019-02-18 20:28:16',0,1,2),('timestore','phppos_sales_deliveries','2019-02-18 20:28:17',0,1,8),('timestore','phppos_sales_item_kits','2021-02-20 13:19:07',9,1,2),('timestore','phppos_sales_item_kits_modifier_items','2021-02-20 13:15:53',0,1,2),('timestore','phppos_sales_item_kits_taxes','2019-02-18 20:28:21',9,1,1),('timestore','phppos_sales_items','2021-02-20 13:19:51',49847,673,485),('timestore','phppos_sales_items_modifier_items','2021-02-20 13:15:53',0,1,2),('timestore','phppos_sales_items_taxes','2019-02-18 20:28:41',30228,97,161),('timestore','phppos_sales_payments','2019-02-18 20:28:47',16466,97,41),('timestore','phppos_sessions','2021-06-20 16:11:46',9619,7687,96),('timestore','phppos_shipping_methods','2019-02-18 20:29:12',0,1,2),('timestore','phppos_shipping_providers','2019-02-18 20:29:12',0,1,0),('timestore','phppos_shipping_zones','2019-02-18 20:29:13',0,1,1),('timestore','phppos_store_accounts','2019-02-18 20:29:29',642,5,2),('timestore','phppos_store_accounts_paid_sales','2021-02-20 13:11:46',170,1,2),('timestore','phppos_supplier_store_accounts','2019-02-18 20:29:18',623,6,2),('timestore','phppos_supplier_store_accounts_paid_receivings','2021-04-13 18:06:19',279,1,2),('timestore','phppos_suppliers','2021-02-20 13:08:38',142,1,14),('timestore','phppos_suppliers_taxes','2019-02-18 20:29:18',0,1,1),('timestore','phppos_tags','2019-04-27 19:14:50',117,1,2),('timestore','phppos_tax_classes','2019-02-18 20:29:19',0,1,1),('timestore','phppos_tax_classes_taxes','2019-02-18 20:29:20',0,1,1),('timestore','phppos_zips','2019-02-18 20:29:21',0,1,2),('timestore-31-05-2020','phppos_access','2020-05-31 17:40:44',0,1,2),('timestore-31-05-2020','phppos_additional_item_numbers','2020-05-31 17:40:52',593,3,1),('timestore-31-05-2020','phppos_app_config','2020-05-31 17:34:57',248,3,0),('timestore-31-05-2020','phppos_app_files','2020-05-31 17:34:53',1754,10401,0),('timestore-31-05-2020','phppos_attribute_values','2020-05-31 17:41:02',276,1,2),('timestore-31-05-2020','phppos_attributes','2020-05-31 17:40:56',23,1,1),('timestore-31-05-2020','phppos_categories','2020-05-31 17:41:04',323,3,4),('timestore-31-05-2020','phppos_currency_exchange_rates','2020-05-31 17:35:06',0,1,0),('timestore-31-05-2020','phppos_customers','2020-05-31 17:41:05',344,4,18),('timestore-31-05-2020','phppos_customers_series','2020-05-31 17:40:57',0,1,3),('timestore-31-05-2020','phppos_customers_series_log','2020-05-31 17:40:59',0,1,1),('timestore-31-05-2020','phppos_customers_taxes','2020-05-31 17:41:00',0,1,1),('timestore-31-05-2020','phppos_employees','2020-05-31 17:41:07',68,1,14),('timestore-31-05-2020','phppos_employees_app_config','2020-05-31 17:41:13',7,1,0),('timestore-31-05-2020','phppos_employees_locations','2020-05-31 17:41:18',69,1,1),('timestore-31-05-2020','phppos_employees_reset_password','2020-05-31 17:41:28',2,1,1),('timestore-31-05-2020','phppos_employees_time_clock','2020-05-31 17:41:08',0,1,2),('timestore-31-05-2020','phppos_employees_time_off','2020-05-31 17:41:10',0,1,3),('timestore-31-05-2020','phppos_expenses','2020-05-31 17:41:34',554,6,13),('timestore-31-05-2020','phppos_giftcards','2020-05-31 17:41:15',0,1,4),('timestore-31-05-2020','phppos_giftcards_log','2020-05-31 17:41:16',0,1,1),('timestore-31-05-2020','phppos_inventory','2020-05-31 17:41:36',103047,481,805),('timestore-31-05-2020','phppos_inventory_counts','2020-05-31 17:41:40',12,1,2),('timestore-31-05-2020','phppos_inventory_counts_items','2020-05-31 17:41:51',3851,15,15),('timestore-31-05-2020','phppos_item_attribute_values','2020-05-31 17:37:01',2453,8,4),('timestore-31-05-2020','phppos_item_attributes','2020-05-31 17:37:18',171,1,1),('timestore-31-05-2020','phppos_item_images','2020-05-31 17:37:07',1642,6,9),('timestore-31-05-2020','phppos_item_kit_items','2020-05-31 17:37:21',5,1,3),('timestore-31-05-2020','phppos_item_kits','2020-05-31 17:37:20',5,1,21),('timestore-31-05-2020','phppos_item_kits_tags','2020-05-31 17:36:53',0,1,1),('timestore-31-05-2020','phppos_item_kits_taxes','2020-05-31 17:36:55',0,1,1),('timestore-31-05-2020','phppos_item_kits_tier_prices','2020-05-31 17:36:57',0,1,1),('timestore-31-05-2020','phppos_item_variation_attribute_values','2020-05-31 17:37:33',3042,12,5),('timestore-31-05-2020','phppos_item_variations','2020-05-31 17:37:32',2366,10,15),('timestore-31-05-2020','phppos_items','2020-05-31 17:36:33',4471,97,197),('timestore-31-05-2020','phppos_items_serial_numbers','2020-05-31 17:36:31',0,1,2),('timestore-31-05-2020','phppos_items_tags','2020-05-31 17:37:04',720,3,1),('timestore-31-05-2020','phppos_items_taxes','2020-05-31 17:36:34',0,1,1),('timestore-31-05-2020','phppos_items_tier_prices','2020-05-31 17:36:52',6734,19,9),('timestore-31-05-2020','phppos_keys','2020-05-31 17:37:10',0,1,2),('timestore-31-05-2020','phppos_limits','2020-05-31 17:37:13',0,1,2),('timestore-31-05-2020','phppos_location_item_kits','2020-05-31 17:37:52',5,1,2),('timestore-31-05-2020','phppos_location_item_kits_taxes','2020-05-31 17:37:35',0,1,2),('timestore-31-05-2020','phppos_location_item_kits_tier_prices','2020-05-31 17:37:37',0,1,2),('timestore-31-05-2020','phppos_location_item_variations','2020-05-31 17:37:53',1186,4,1),('timestore-31-05-2020','phppos_location_items','2020-05-31 17:37:44',9762,31,49),('timestore-31-05-2020','phppos_location_items_taxes','2020-05-31 17:37:29',0,1,2),('timestore-31-05-2020','phppos_location_items_tier_prices','2020-05-31 17:37:31',0,1,2),('timestore-31-05-2020','phppos_locations','2020-05-31 17:37:38',3,1,7),('timestore-31-05-2020','phppos_logs','2020-05-31 17:37:40',0,1,0),('timestore-31-05-2020','phppos_manufacturers','2020-05-31 17:37:57',208,1,2),('timestore-31-05-2020','phppos_message_receiver','2020-05-31 17:37:49',0,1,2),('timestore-31-05-2020','phppos_messages','2020-05-31 17:37:46',0,1,2),('timestore-31-05-2020','phppos_migrations','2020-05-31 17:37:50',0,1,0),('timestore-31-05-2020','phppos_modules','2020-05-31 17:38:17',15,1,2),('timestore-31-05-2020','phppos_modules_actions','2020-05-31 17:38:03',117,1,1),('timestore-31-05-2020','phppos_people','2020-05-31 17:38:06',542,5,6),('timestore-31-05-2020','phppos_people_files','2020-05-31 17:37:59',0,1,1),('timestore-31-05-2020','phppos_permissions','2020-05-31 17:38:11',44,1,1),('timestore-31-05-2020','phppos_permissions_actions','2020-05-31 17:38:23',453,3,2),('timestore-31-05-2020','phppos_price_rules','2020-05-31 17:38:28',3,1,4),('timestore-31-05-2020','phppos_price_rules_categories','2020-05-31 17:38:08',0,1,2),('timestore-31-05-2020','phppos_price_rules_item_kits','2020-05-31 17:38:13',0,1,2),('timestore-31-05-2020','phppos_price_rules_items','2020-05-31 17:38:33',22,1,2),('timestore-31-05-2020','phppos_price_rules_price_breaks','2020-05-31 17:38:37',2,1,1),('timestore-31-05-2020','phppos_price_rules_tags','2020-05-31 17:38:19',0,1,2),('timestore-31-05-2020','phppos_price_tiers','2020-05-31 17:38:44',2,1,0),('timestore-31-05-2020','phppos_receivings','2020-05-31 17:38:47',1624,19,53),('timestore-31-05-2020','phppos_receivings_items','2020-05-31 17:38:49',11842,161,41),('timestore-31-05-2020','phppos_receivings_items_taxes','2020-05-31 17:39:03',10948,97,97),('timestore-31-05-2020','phppos_receivings_payments','2020-05-31 17:39:07',974,5,2),('timestore-31-05-2020','phppos_register_currency_denominations','2020-05-31 17:38:51',0,1,0),('timestore-31-05-2020','phppos_register_log','2020-05-31 17:38:54',0,1,3),('timestore-31-05-2020','phppos_register_log_audit','2020-05-31 17:38:56',0,1,2),('timestore-31-05-2020','phppos_register_log_payments','2020-05-31 17:38:58',0,1,1),('timestore-31-05-2020','phppos_registers','2020-05-31 17:39:17',3,1,2),('timestore-31-05-2020','phppos_registers_cart','2020-05-31 17:39:20',3,1,1),('timestore-31-05-2020','phppos_sale_types','2020-05-31 17:40:14',3,1,0),('timestore-31-05-2020','phppos_sales','2020-05-31 17:39:28',17343,289,448),('timestore-31-05-2020','phppos_sales_coupons','2020-05-31 17:39:15',0,1,2),('timestore-31-05-2020','phppos_sales_deliveries','2020-05-31 17:39:18',0,1,8),('timestore-31-05-2020','phppos_sales_item_kits','2020-05-31 17:40:09',9,1,2),('timestore-31-05-2020','phppos_sales_item_kits_taxes','2020-05-31 17:40:17',9,1,1),('timestore-31-05-2020','phppos_sales_items','2020-05-31 17:39:34',40553,417,388),('timestore-31-05-2020','phppos_sales_items_taxes','2020-05-31 17:39:47',36535,161,161),('timestore-31-05-2020','phppos_sales_payments','2020-05-31 17:39:57',20539,97,54),('timestore-31-05-2020','phppos_sessions','2020-05-31 17:40:22',10402,6435,97),('timestore-31-05-2020','phppos_shipping_methods','2020-05-31 17:40:04',0,1,2),('timestore-31-05-2020','phppos_shipping_providers','2020-05-31 17:40:08',0,1,0),('timestore-31-05-2020','phppos_shipping_zones','2020-05-31 17:40:11',0,1,1),('timestore-31-05-2020','phppos_store_accounts','2020-05-31 17:40:28',648,5,2),('timestore-31-05-2020','phppos_store_accounts_paid_sales','2020-05-31 17:40:32',169,1,2),('timestore-31-05-2020','phppos_supplier_store_accounts','2020-05-31 17:40:46',637,6,2),('timestore-31-05-2020','phppos_supplier_store_accounts_paid_receivings','2020-05-31 17:40:48',250,1,2),('timestore-31-05-2020','phppos_suppliers','2020-05-31 17:40:36',130,1,14),('timestore-31-05-2020','phppos_suppliers_taxes','2020-05-31 17:40:24',0,1,1),('timestore-31-05-2020','phppos_tags','2020-05-31 17:40:50',122,1,2),('timestore-31-05-2020','phppos_tax_classes','2020-05-31 17:40:38',0,1,1),('timestore-31-05-2020','phppos_tax_classes_taxes','2020-05-31 17:40:41',0,1,1),('timestore-31-05-2020','phppos_zips','2020-05-31 17:40:43',0,1,2),('ts21','phppos_access','2021-01-17 21:40:53',0,1,2),('ts21','phppos_additional_item_numbers','2021-01-17 22:36:20',556,3,2),('ts21','phppos_app_config','2021-01-17 21:35:07',250,3,0),('ts21','phppos_app_files','2021-01-17 22:38:17',1792,11041,0),('ts21','phppos_appointment_types','2021-01-17 22:34:46',0,1,0),('ts21','phppos_appointments','2021-01-17 22:34:46',0,1,4),('ts21','phppos_attribute_values','2021-01-17 21:41:03',423,3,2),('ts21','phppos_attributes','2021-01-17 21:41:01',33,1,1),('ts21','phppos_categories','2021-01-17 22:37:56',326,3,4),('ts21','phppos_currency_exchange_rates','2021-01-17 21:35:19',0,1,0),('ts21','phppos_customers','2021-01-17 22:40:43',397,4,18),('ts21','phppos_customers_series','2021-01-17 21:41:06',0,1,3),('ts21','phppos_customers_series_log','2021-01-17 21:41:07',0,1,1),('ts21','phppos_customers_taxes','2021-01-17 21:41:09',0,1,1),('ts21','phppos_damaged_items_log','2021-01-17 22:40:54',0,1,4),('ts21','phppos_ecommerce_locations','2021-01-17 22:38:09',0,1,0),('ts21','phppos_employee_registers','2021-01-17 22:32:49',0,1,2),('ts21','phppos_employees','2021-01-17 22:40:33',75,1,15),('ts21','phppos_employees_app_config','2021-01-17 21:41:17',7,1,0),('ts21','phppos_employees_locations','2021-01-17 21:41:22',76,1,1),('ts21','phppos_employees_reset_password','2021-01-17 21:41:27',2,1,1),('ts21','phppos_employees_time_clock','2021-01-17 21:41:18',0,1,2),('ts21','phppos_employees_time_off','2021-01-17 22:36:25',0,1,3),('ts21','phppos_expenses','2021-01-17 22:34:14',554,6,13),('ts21','phppos_giftcards','2021-01-17 21:41:24',0,1,4),('ts21','phppos_giftcards_log','2021-01-17 21:41:25',0,1,1),('ts21','phppos_grid_hidden_categories','2021-01-17 22:37:23',0,1,2),('ts21','phppos_grid_hidden_item_kits','2021-01-17 22:37:22',0,1,2),('ts21','phppos_grid_hidden_items','2021-01-17 22:37:22',0,1,2),('ts21','phppos_grid_hidden_tags','2021-01-17 22:37:24',0,1,2),('ts21','phppos_inventory','2021-01-17 22:38:56',130493,673,997),('ts21','phppos_inventory_counts','2021-01-17 21:41:45',13,1,2),('ts21','phppos_inventory_counts_items','2021-01-17 21:41:50',3853,15,15),('ts21','phppos_item_attribute_values','2021-01-17 21:37:06',17796,97,18),('ts21','phppos_item_attributes','2021-01-17 21:36:58',1216,5,3),('ts21','phppos_item_images','2021-01-17 21:37:17',1760,6,10),('ts21','phppos_item_kit_images','2021-01-17 22:37:26',0,1,2),('ts21','phppos_item_kit_item_kits','2021-01-17 22:32:48',0,1,2),('ts21','phppos_item_kit_items','2021-01-17 21:37:33',5,1,3),('ts21','phppos_item_kits','2021-01-17 22:40:07',5,1,24),('ts21','phppos_item_kits_modifiers','2021-01-17 22:38:14',0,1,1),('ts21','phppos_item_kits_pricing_history','2021-01-17 22:36:45',0,1,3),('ts21','phppos_item_kits_tags','2021-01-17 21:37:08',0,1,1),('ts21','phppos_item_kits_taxes','2021-01-17 21:37:09',0,1,1),('ts21','phppos_item_kits_tier_prices','2021-01-17 21:37:11',0,1,1),('ts21','phppos_item_variation_attribute_values','2021-01-17 21:37:37',8636,30,9),('ts21','phppos_item_variations','2021-01-17 21:37:35',5857,22,29),('ts21','phppos_items','2021-01-17 22:40:39',4891,97,187),('ts21','phppos_items_modifiers','2021-01-17 22:38:14',0,1,1),('ts21','phppos_items_pricing_history','2021-01-17 22:36:45',0,1,4),('ts21','phppos_items_quantity_units','2021-01-17 22:39:26',0,1,2),('ts21','phppos_items_serial_numbers','2021-01-17 21:36:42',0,1,2),('ts21','phppos_items_tags','2021-01-17 21:37:14',720,3,1),('ts21','phppos_items_taxes','2021-01-17 21:36:45',0,1,1),('ts21','phppos_items_tier_prices','2021-01-17 21:36:47',0,1,1),('ts21','phppos_keys','2021-01-17 21:37:27',0,1,2),('ts21','phppos_limits','2021-01-17 21:37:31',0,1,2),('ts21','phppos_location_item_kits','2021-01-17 21:38:07',5,1,2),('ts21','phppos_location_item_kits_taxes','2021-01-17 21:37:50',0,1,2),('ts21','phppos_location_item_kits_tier_prices','2021-01-17 21:37:51',0,1,2),('ts21','phppos_location_item_variations','2021-01-17 22:35:31',4515,11,5),('ts21','phppos_location_items','2021-01-17 22:33:53',9826,30,37),('ts21','phppos_location_items_taxes','2021-01-17 21:37:44',0,1,2),('ts21','phppos_location_items_tier_prices','2021-01-17 21:37:46',0,1,2),('ts21','phppos_locations','2021-01-17 22:40:52',3,1,7),('ts21','phppos_logs','2021-01-17 21:37:55',0,1,0),('ts21','phppos_manufacturers','2021-01-17 21:38:08',228,1,2),('ts21','phppos_message_receiver','2021-01-17 21:38:04',0,1,2),('ts21','phppos_messages','2021-01-17 21:38:01',0,1,2),('ts21','phppos_migrations','2021-01-17 21:38:05',0,1,0),('ts21','phppos_modifier_items','2021-01-17 22:38:13',0,1,2),('ts21','phppos_modifiers','2021-01-17 22:38:13',0,1,2),('ts21','phppos_modules','2021-01-17 21:38:17',15,1,2),('ts21','phppos_modules_actions','2021-01-17 22:37:47',133,1,1),('ts21','phppos_people','2021-01-17 21:38:21',613,5,6),('ts21','phppos_people_files','2021-01-17 21:38:14',0,1,1),('ts21','phppos_permissions','2021-01-17 21:38:27',44,1,1),('ts21','phppos_permissions_actions','2021-01-17 22:40:35',569,3,6),('ts21','phppos_permissions_actions_locations','2021-01-17 22:36:49',0,1,3),('ts21','phppos_permissions_locations','2021-01-17 22:36:49',0,1,2),('ts21','phppos_permissions_template','2021-01-17 22:39:34',0,1,1),('ts21','phppos_permissions_template_actions','2021-01-17 22:39:34',0,1,3),('ts21','phppos_permissions_template_actions_locations','2021-01-17 22:39:35',0,1,4),('ts21','phppos_permissions_template_locations','2021-01-17 22:39:36',0,1,3),('ts21','phppos_permissions_templates','2021-01-17 22:39:33',0,1,3),('ts21','phppos_price_rules','2021-01-17 22:38:48',3,1,4),('ts21','phppos_price_rules_categories','2021-01-17 21:38:23',0,1,2),('ts21','phppos_price_rules_item_kits','2021-01-17 21:38:28',0,1,2),('ts21','phppos_price_rules_items','2021-01-17 21:38:42',22,1,2),('ts21','phppos_price_rules_locations','2021-01-17 22:32:47',0,1,2),('ts21','phppos_price_rules_manufacturers','2021-01-17 22:37:36',0,1,2),('ts21','phppos_price_rules_price_breaks','2021-01-17 21:38:47',2,1,1),('ts21','phppos_price_rules_tags','2021-01-17 21:38:33',0,1,2),('ts21','phppos_price_rules_tiers_exclude','2021-01-17 22:40:34',0,1,1),('ts21','phppos_price_tiers','2021-01-17 21:38:35',0,1,0),('ts21','phppos_receivings','2021-01-17 22:40:00',1682,20,56),('ts21','phppos_receivings_items','2021-01-17 22:40:48',14133,161,71),('ts21','phppos_receivings_items_taxes','2021-01-17 21:39:01',11551,97,97),('ts21','phppos_receivings_payments','2021-01-17 21:39:04',1031,6,2),('ts21','phppos_register_currency_denominations','2021-01-17 22:37:25',0,1,0),('ts21','phppos_register_log','2021-01-17 21:39:07',0,1,3),('ts21','phppos_register_log_audit','2021-01-17 21:39:09',0,1,2),('ts21','phppos_register_log_denoms','2021-01-17 22:37:25',0,1,2),('ts21','phppos_register_log_payments','2021-01-17 22:36:24',0,1,1),('ts21','phppos_registers','2021-01-17 22:40:21',3,1,2),('ts21','phppos_registers_cart','2021-01-17 21:39:17',3,1,1),('ts21','phppos_sale_types','2021-01-17 21:40:24',3,1,0),('ts21','phppos_sales','2021-01-17 22:40:37',20306,417,496),('ts21','phppos_sales_coupons','2021-01-17 21:39:25',0,1,2),('ts21','phppos_sales_deliveries','2021-01-17 21:39:29',0,1,8),('ts21','phppos_sales_item_kits','2021-01-17 22:40:09',9,1,2),('ts21','phppos_sales_item_kits_modifier_items','2021-01-17 22:38:15',0,1,2),('ts21','phppos_sales_item_kits_taxes','2021-01-17 21:39:57',9,1,1),('ts21','phppos_sales_items','2021-01-17 22:40:46',49151,673,485),('ts21','phppos_sales_items_modifier_items','2021-01-17 22:38:15',0,1,2),('ts21','phppos_sales_items_taxes','2021-01-17 21:39:56',44662,161,161),('ts21','phppos_sales_payments','2021-01-17 21:40:07',24503,161,130),('ts21','phppos_sessions','2021-01-17 21:40:27',11495,7203,97),('ts21','phppos_shipping_methods','2021-01-17 21:40:15',0,1,2),('ts21','phppos_shipping_providers','2021-01-17 21:40:19',0,1,0),('ts21','phppos_shipping_zones','2021-01-17 21:40:21',0,1,1),('ts21','phppos_store_accounts','2021-01-17 21:40:31',660,5,2),('ts21','phppos_store_accounts_paid_sales','2021-01-17 22:35:16',170,1,2),('ts21','phppos_supplier_store_accounts','2021-01-17 21:40:44',644,6,2),('ts21','phppos_supplier_store_accounts_paid_receivings','2021-01-17 22:35:17',250,1,2),('ts21','phppos_suppliers','2021-01-17 22:33:20',141,1,14),('ts21','phppos_suppliers_taxes','2021-01-17 21:40:33',0,1,1),('ts21','phppos_tags','2021-01-17 21:40:56',122,1,2),('ts21','phppos_tax_classes','2021-01-17 21:40:47',0,1,1),('ts21','phppos_tax_classes_taxes','2021-01-17 21:40:50',0,1,1),('ts21','phppos_zips','2021-01-17 21:40:52',0,1,2);

--
-- Table structure for table `ndb_binlog_index`
--

CREATE TABLE `ndb_binlog_index` (
  `Position` bigint(20) unsigned NOT NULL,
  `File` varchar(255) NOT NULL,
  `epoch` bigint(20) unsigned NOT NULL,
  `inserts` int(10) unsigned NOT NULL,
  `updates` int(10) unsigned NOT NULL,
  `deletes` int(10) unsigned NOT NULL,
  `schemaops` int(10) unsigned NOT NULL,
  `orig_server_id` int(10) unsigned NOT NULL,
  `orig_epoch` bigint(20) unsigned NOT NULL,
  `gci` int(10) unsigned NOT NULL,
  `next_position` bigint(20) unsigned NOT NULL,
  `next_file` varchar(255) NOT NULL,
  PRIMARY KEY (`epoch`,`orig_server_id`,`orig_epoch`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ndb_binlog_index`
--


--
-- Table structure for table `plugin`
--

CREATE TABLE `plugin` (
  `name` varchar(64) NOT NULL DEFAULT '',
  `dl` varchar(128) NOT NULL DEFAULT '',
  PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='MySQL plugins';

--
-- Dumping data for table `plugin`
--


--
-- Table structure for table `proc`
--

CREATE TABLE `proc` (
  `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  `name` char(64) NOT NULL DEFAULT '',
  `type` enum('FUNCTION','PROCEDURE') NOT NULL,
  `specific_name` char(64) NOT NULL DEFAULT '',
  `language` enum('SQL') NOT NULL DEFAULT 'SQL',
  `sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL',
  `is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO',
  `security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER',
  `param_list` blob NOT NULL,
  `returns` longblob NOT NULL,
  `body` longblob NOT NULL,
  `definer` char(93) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH') NOT NULL DEFAULT '',
  `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
  `body_utf8` longblob,
  PRIMARY KEY (`db`,`name`,`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stored Procedures';

--
-- Dumping data for table `proc`
--

INSERT INTO `proc` VALUES ('sys','extract_schema_from_file_name','FUNCTION','extract_schema_from_file_name','SQL','NO_SQL','YES','INVOKER',_binary ' path VARCHAR(512) ',_binary 'varchar(64) CHARSET utf8',_binary 'BEGIN RETURN LEFT(SUBSTRING_INDEX(SUBSTRING_INDEX(REPLACE(path, \'\\\\\', \'/\'), \'/\', -2), \'/\', 1), 64); END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Takes a raw file path, and attempts to extract the schema name from it.\n \n Useful for when interacting with Performance Schema data \n concerning IO statistics, for example.\n \n Currently relies on the fact that a table data file will be within a \n specified database directory (will not work with partitions or tables\n that specify an individual DATA_DIRECTORY).\n \n Parameters\n \n path (VARCHAR(512)):\n The full file path to a data file to extract the schema name from.\n \n Returns\n \n VARCHAR(64)\n \n Example\n \n mysql> SELECT sys.extract_schema_from_file_name(\'/var/lib/mysql/employees/employee.ibd\');\n +----------------------------------------------------------------------------+\n | sys.extract_schema_from_file_name(\'/var/lib/mysql/employees/employee.ibd\') |\n +----------------------------------------------------------------------------+\n | employees                                                                  |\n +----------------------------------------------------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN RETURN LEFT(SUBSTRING_INDEX(SUBSTRING_INDEX(REPLACE(path, \'\\\', \'/\'), \'/\', -2), \'/\', 1), 64); END'),('sys','extract_table_from_file_name','FUNCTION','extract_table_from_file_name','SQL','NO_SQL','YES','INVOKER',_binary ' path VARCHAR(512) ',_binary 'varchar(64) CHARSET utf8',_binary 'BEGIN RETURN LEFT(SUBSTRING_INDEX(REPLACE(SUBSTRING_INDEX(REPLACE(path, \'\\\\\', \'/\'), \'/\', -1), \'@0024\', \'$\'), \'.\', 1), 64); END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Takes a raw file path, and extracts the table name from it.\n \n Useful for when interacting with Performance Schema data \n concerning IO statistics, for example.\n \n Parameters\n \n path (VARCHAR(512)):\n The full file path to a data file to extract the table name from.\n \n Returns\n \n VARCHAR(64)\n \n Example\n \n mysql> SELECT sys.extract_table_from_file_name(\'/var/lib/mysql/employees/employee.ibd\');\n +---------------------------------------------------------------------------+\n | sys.extract_table_from_file_name(\'/var/lib/mysql/employees/employee.ibd\') |\n +---------------------------------------------------------------------------+\n | employee                                                                  |\n +---------------------------------------------------------------------------+\n 1 row in set (0.02 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN RETURN LEFT(SUBSTRING_INDEX(REPLACE(SUBSTRING_INDEX(REPLACE(path, \'\\\', \'/\'), \'/\', -1), \'@0024\', \'$\'), \'.\', 1), 64); END'),('sys','format_bytes','FUNCTION','format_bytes','SQL','NO_SQL','YES','INVOKER',_binary ' bytes TEXT ',_binary 'text CHARSET utf8',_binary 'BEGIN IF bytes IS NULL THEN RETURN NULL; ELSEIF bytes >= 1125899906842624 THEN RETURN CONCAT(ROUND(bytes / 1125899906842624, 2), \' PiB\'); ELSEIF bytes >= 1099511627776 THEN RETURN CONCAT(ROUND(bytes / 1099511627776, 2), \' TiB\'); ELSEIF bytes >= 1073741824 THEN RETURN CONCAT(ROUND(bytes / 1073741824, 2), \' GiB\'); ELSEIF bytes >= 1048576 THEN RETURN CONCAT(ROUND(bytes / 1048576, 2), \' MiB\'); ELSEIF bytes >= 1024 THEN RETURN CONCAT(ROUND(bytes / 1024, 2), \' KiB\'); ELSE RETURN CONCAT(ROUND(bytes, 0), \' bytes\'); END IF; END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Takes a raw bytes value, and converts it to a human readable format.\n \n Parameters\n \n bytes (TEXT):\n A raw bytes value.\n \n Returns\n \n TEXT\n \n Example\n \n mysql> SELECT sys.format_bytes(2348723492723746) AS size;\n +----------+\n | size     |\n +----------+\n | 2.09 PiB |\n +----------+\n 1 row in set (0.00 sec)\n \n mysql> SELECT sys.format_bytes(2348723492723) AS size;\n +----------+\n | size     |\n +----------+\n | 2.14 TiB |\n +----------+\n 1 row in set (0.00 sec)\n \n mysql> SELECT sys.format_bytes(23487234) AS size;\n +-----------+\n | size      |\n +-----------+\n | 22.40 MiB |\n +-----------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN IF bytes IS NULL THEN RETURN NULL; ELSEIF bytes >= 1125899906842624 THEN RETURN CONCAT(ROUND(bytes / 1125899906842624, 2), \' PiB\'); ELSEIF bytes >= 1099511627776 THEN RETURN CONCAT(ROUND(bytes / 1099511627776, 2), \' TiB\'); ELSEIF bytes >= 1073741824 THEN RETURN CONCAT(ROUND(bytes / 1073741824, 2), \' GiB\'); ELSEIF bytes >= 1048576 THEN RETURN CONCAT(ROUND(bytes / 1048576, 2), \' MiB\'); ELSEIF bytes >= 1024 THEN RETURN CONCAT(ROUND(bytes / 1024, 2), \' KiB\'); ELSE RETURN CONCAT(ROUND(bytes, 0), \' bytes\'); END IF; END'),('sys','format_path','FUNCTION','format_path','SQL','NO_SQL','YES','INVOKER',_binary ' in_path VARCHAR(512) ',_binary 'varchar(512) CHARSET utf8',_binary 'BEGIN DECLARE v_path VARCHAR(512); DECLARE v_undo_dir VARCHAR(1024);  DECLARE path_separator CHAR(1) DEFAULT \'/\';  IF @@global.version_compile_os LIKE \'win%\' THEN SET path_separator = \'\\\\\'; END IF;  IF in_path LIKE \'/private/%\' THEN SET v_path = REPLACE(in_path, \'/private\', \'\'); ELSE SET v_path = in_path; END IF;  SET v_undo_dir = IFNULL((SELECT VARIABLE_VALUE FROM performance_schema.global_variables WHERE VARIABLE_NAME = \'innodb_undo_directory\'), \'\');  IF v_path IS NULL THEN RETURN NULL; ELSEIF v_path LIKE CONCAT(@@global.datadir, IF(SUBSTRING(@@global.datadir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.datadir, CONCAT(\'@@datadir\', IF(SUBSTRING(@@global.datadir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(@@global.tmpdir, IF(SUBSTRING(@@global.tmpdir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.tmpdir, CONCAT(\'@@tmpdir\', IF(SUBSTRING(@@global.tmpdir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(@@global.slave_load_tmpdir, IF(SUBSTRING(@@global.slave_load_tmpdir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.slave_load_tmpdir, CONCAT(\'@@slave_load_tmpdir\', IF(SUBSTRING(@@global.slave_load_tmpdir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(@@global.innodb_data_home_dir, IF(SUBSTRING(@@global.innodb_data_home_dir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.innodb_data_home_dir, CONCAT(\'@@innodb_data_home_dir\', IF(SUBSTRING(@@global.innodb_data_home_dir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(@@global.innodb_log_group_home_dir, IF(SUBSTRING(@@global.innodb_log_group_home_dir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.innodb_log_group_home_dir, CONCAT(\'@@innodb_log_group_home_dir\', IF(SUBSTRING(@@global.innodb_log_group_home_dir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(v_undo_dir, IF(SUBSTRING(v_undo_dir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, v_undo_dir, CONCAT(\'@@innodb_undo_directory\', IF(SUBSTRING(v_undo_dir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(@@global.basedir, IF(SUBSTRING(@@global.basedir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.basedir, CONCAT(\'@@basedir\', IF(SUBSTRING(@@global.basedir, -1) = path_separator, path_separator, \'\'))); END IF;  RETURN v_path; END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Takes a raw path value, and strips out the datadir or tmpdir\n replacing with @@datadir and @@tmpdir respectively. \n \n Also normalizes the paths across operating systems, so backslashes\n on Windows are converted to forward slashes\n \n Parameters\n \n path (VARCHAR(512)):\n The raw file path value to format.\n \n Returns\n \n VARCHAR(512) CHARSET UTF8\n \n Example\n \n mysql> select @@datadir;\n +-----------------------------------------------+\n | @@datadir                                     |\n +-----------------------------------------------+\n | /Users/mark/sandboxes/SmallTree/AMaster/data/ |\n +-----------------------------------------------+\n 1 row in set (0.06 sec)\n \n mysql> select format_path(\'/Users/mark/sandboxes/SmallTree/AMaster/data/mysql/proc.MYD\') AS path;\n +--------------------------+\n | path                     |\n +--------------------------+\n | @@datadir/mysql/proc.MYD |\n +--------------------------+\n 1 row in set (0.03 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_path VARCHAR(512); DECLARE v_undo_dir VARCHAR(1024);  DECLARE path_separator CHAR(1) DEFAULT \'/\';  IF @@global.version_compile_os LIKE \'win%\' THEN SET path_separator = \'\\\'; END IF;  IF in_path LIKE \'/private/%\' THEN SET v_path = REPLACE(in_path, \'/private\', \'\'); ELSE SET v_path = in_path; END IF;  SET v_undo_dir = IFNULL((SELECT VARIABLE_VALUE FROM performance_schema.global_variables WHERE VARIABLE_NAME = \'innodb_undo_directory\'), \'\');  IF v_path IS NULL THEN RETURN NULL; ELSEIF v_path LIKE CONCAT(@@global.datadir, IF(SUBSTRING(@@global.datadir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.datadir, CONCAT(\'@@datadir\', IF(SUBSTRING(@@global.datadir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(@@global.tmpdir, IF(SUBSTRING(@@global.tmpdir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.tmpdir, CONCAT(\'@@tmpdir\', IF(SUBSTRING(@@global.tmpdir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(@@global.slave_load_tmpdir, IF(SUBSTRING(@@global.slave_load_tmpdir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.slave_load_tmpdir, CONCAT(\'@@slave_load_tmpdir\', IF(SUBSTRING(@@global.slave_load_tmpdir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(@@global.innodb_data_home_dir, IF(SUBSTRING(@@global.innodb_data_home_dir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.innodb_data_home_dir, CONCAT(\'@@innodb_data_home_dir\', IF(SUBSTRING(@@global.innodb_data_home_dir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(@@global.innodb_log_group_home_dir, IF(SUBSTRING(@@global.innodb_log_group_home_dir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.innodb_log_group_home_dir, CONCAT(\'@@innodb_log_group_home_dir\', IF(SUBSTRING(@@global.innodb_log_group_home_dir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(v_undo_dir, IF(SUBSTRING(v_undo_dir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, v_undo_dir, CONCAT(\'@@innodb_undo_directory\', IF(SUBSTRING(v_undo_dir, -1) = path_separator, path_separator, \'\'))); ELSEIF v_path LIKE CONCAT(@@global.basedir, IF(SUBSTRING(@@global.basedir, -1) = path_separator, \'%\', CONCAT(path_separator, \'%\'))) ESCAPE \'|\' THEN SET v_path = REPLACE(v_path, @@global.basedir, CONCAT(\'@@basedir\', IF(SUBSTRING(@@global.basedir, -1) = path_separator, path_separator, \'\'))); END IF;  RETURN v_path; END'),('sys','format_statement','FUNCTION','format_statement','SQL','NO_SQL','YES','INVOKER',_binary ' statement LONGTEXT ',_binary 'longtext CHARSET utf8',_binary 'BEGIN IF @sys.statement_truncate_len IS NULL THEN SET @sys.statement_truncate_len = sys_get_config(\'statement_truncate_len\', 64); END IF;  IF CHAR_LENGTH(statement) > @sys.statement_truncate_len THEN RETURN REPLACE(CONCAT(LEFT(statement, (@sys.statement_truncate_len/2)-2), \' ... \', RIGHT(statement, (@sys.statement_truncate_len/2)-2)), \'\\n\', \' \'); ELSE  RETURN REPLACE(statement, \'\\n\', \' \'); END IF; END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Formats a normalized statement, truncating it if it is > 64 characters long by default.\n \n To configure the length to truncate the statement to by default, update the `statement_truncate_len`\n variable with `sys_config` table to a different value. Alternatively, to change it just for just \n your particular session, use `SET @sys.statement_truncate_len := <some new value>`.\n \n Useful for printing statement related data from Performance Schema from \n the command line.\n \n Parameters\n \n statement (LONGTEXT): \n The statement to format.\n \n Returns\n \n LONGTEXT\n \n Example\n \n mysql> SELECT sys.format_statement(digest_text)\n ->   FROM performance_schema.events_statements_summary_by_digest\n ->  ORDER by sum_timer_wait DESC limit 5;\n +-------------------------------------------------------------------+\n | sys.format_statement(digest_text)                                 |\n +-------------------------------------------------------------------+\n | CREATE SQL SECURITY INVOKER VI ... KE ? AND `variable_value` > ?  |\n | CREATE SQL SECURITY INVOKER VI ... ait` IS NOT NULL , `esc` . ... |\n | CREATE SQL SECURITY INVOKER VI ... ait` IS NOT NULL , `sys` . ... |\n | CREATE SQL SECURITY INVOKER VI ...  , `compressed_size` ) ) DESC  |\n | CREATE SQL SECURITY INVOKER VI ... LIKE ? ORDER BY `timer_start`  |\n +-------------------------------------------------------------------+\n 5 rows in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN IF @sys.statement_truncate_len IS NULL THEN SET @sys.statement_truncate_len = sys_get_config(\'statement_truncate_len\', 64); END IF;  IF CHAR_LENGTH(statement) > @sys.statement_truncate_len THEN RETURN REPLACE(CONCAT(LEFT(statement, (@sys.statement_truncate_len/2)-2), \' ... \', RIGHT(statement, (@sys.statement_truncate_len/2)-2)), \'\n\', \' \'); ELSE  RETURN REPLACE(statement, \'\n\', \' \'); END IF; END'),('sys','format_time','FUNCTION','format_time','SQL','NO_SQL','YES','INVOKER',_binary ' picoseconds TEXT ',_binary 'text CHARSET utf8',_binary 'BEGIN IF picoseconds IS NULL THEN RETURN NULL; ELSEIF picoseconds >= 604800000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 604800000000000000, 2), \' w\'); ELSEIF picoseconds >= 86400000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 86400000000000000, 2), \' d\'); ELSEIF picoseconds >= 3600000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 3600000000000000, 2), \' h\'); ELSEIF picoseconds >= 60000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 60000000000000, 2), \' m\'); ELSEIF picoseconds >= 1000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000000000, 2), \' s\'); ELSEIF picoseconds >= 1000000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000000, 2), \' ms\'); ELSEIF picoseconds >= 1000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000, 2), \' us\'); ELSEIF picoseconds >= 1000 THEN RETURN CONCAT(ROUND(picoseconds / 1000, 2), \' ns\'); ELSE RETURN CONCAT(picoseconds, \' ps\'); END IF; END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Takes a raw picoseconds value, and converts it to a human readable form.\n \n Picoseconds are the precision that all latency values are printed in \n within Performance Schema, however are not user friendly when wanting\n to scan output from the command line.\n \n Parameters\n \n picoseconds (TEXT): \n The raw picoseconds value to convert.\n \n Returns\n \n TEXT\n \n Example\n \n mysql> select format_time(342342342342345);\n +------------------------------+\n | format_time(342342342342345) |\n +------------------------------+\n | 00:05:42                     |\n +------------------------------+\n 1 row in set (0.00 sec)\n \n mysql> select format_time(342342342);\n +------------------------+\n | format_time(342342342) |\n +------------------------+\n | 342.34 us              |\n +------------------------+\n 1 row in set (0.00 sec)\n \n mysql> select format_time(34234);\n +--------------------+\n | format_time(34234) |\n +--------------------+\n | 34.23 ns           |\n +--------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN IF picoseconds IS NULL THEN RETURN NULL; ELSEIF picoseconds >= 604800000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 604800000000000000, 2), \' w\'); ELSEIF picoseconds >= 86400000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 86400000000000000, 2), \' d\'); ELSEIF picoseconds >= 3600000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 3600000000000000, 2), \' h\'); ELSEIF picoseconds >= 60000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 60000000000000, 2), \' m\'); ELSEIF picoseconds >= 1000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000000000, 2), \' s\'); ELSEIF picoseconds >= 1000000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000000, 2), \' ms\'); ELSEIF picoseconds >= 1000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000, 2), \' us\'); ELSEIF picoseconds >= 1000 THEN RETURN CONCAT(ROUND(picoseconds / 1000, 2), \' ns\'); ELSE RETURN CONCAT(picoseconds, \' ps\'); END IF; END'),('sys','list_add','FUNCTION','list_add','SQL','CONTAINS_SQL','YES','INVOKER',_binary ' in_list TEXT, in_add_value TEXT ',_binary 'text CHARSET utf8',_binary 'BEGIN  IF (in_add_value IS NULL) THEN SIGNAL SQLSTATE \'02200\' SET MESSAGE_TEXT = \'Function sys.list_add: in_add_value input variable should not be NULL\', MYSQL_ERRNO = 1138; END IF;  IF (in_list IS NULL OR LENGTH(in_list) = 0) THEN RETURN in_add_value; END IF;  RETURN (SELECT CONCAT(TRIM(BOTH \',\' FROM TRIM(in_list)), \',\', in_add_value));  END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Takes a list, and a value to add to the list, and returns the resulting list.\n \n Useful for altering certain session variables, like sql_mode or optimizer_switch for instance.\n \n Parameters\n \n in_list (TEXT):\n The comma separated list to add a value to\n \n in_add_value (TEXT):\n The value to add to the input list\n \n Returns\n \n TEXT\n \n Example\n \n mysql> select @@sql_mode;\n +-----------------------------------------------------------------------------------+\n | @@sql_mode                                                                        |\n +-----------------------------------------------------------------------------------+\n | ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |\n +-----------------------------------------------------------------------------------+\n 1 row in set (0.00 sec)\n \n mysql> set sql_mode = sys.list_add(@@sql_mode, \'ANSI_QUOTES\');\n Query OK, 0 rows affected (0.06 sec)\n \n mysql> select @@sql_mode;\n +-----------------------------------------------------------------------------------------------+\n | @@sql_mode                                                                                    |\n +-----------------------------------------------------------------------------------------------+\n | ANSI_QUOTES,ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |\n +-----------------------------------------------------------------------------------------------+\n 1 row in set (0.00 sec)\n \n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN  IF (in_add_value IS NULL) THEN SIGNAL SQLSTATE \'02200\' SET MESSAGE_TEXT = \'Function sys.list_add: in_add_value input variable should not be NULL\', MYSQL_ERRNO = 1138; END IF;  IF (in_list IS NULL OR LENGTH(in_list) = 0) THEN RETURN in_add_value; END IF;  RETURN (SELECT CONCAT(TRIM(BOTH \',\' FROM TRIM(in_list)), \',\', in_add_value));  END'),('sys','list_drop','FUNCTION','list_drop','SQL','CONTAINS_SQL','YES','INVOKER',_binary ' in_list TEXT, in_drop_value TEXT ',_binary 'text CHARSET utf8',_binary 'BEGIN  IF (in_drop_value IS NULL) THEN SIGNAL SQLSTATE \'02200\' SET MESSAGE_TEXT = \'Function sys.list_drop: in_drop_value input variable should not be NULL\', MYSQL_ERRNO = 1138; END IF;  IF (in_list IS NULL OR LENGTH(in_list) = 0) THEN RETURN in_list; END IF;  RETURN (SELECT TRIM(BOTH \',\' FROM REPLACE(REPLACE(CONCAT(\',\', in_list), CONCAT(\',\', in_drop_value), \'\'), CONCAT(\', \', in_drop_value), \'\')));  END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Takes a list, and a value to attempt to remove from the list, and returns the resulting list.\n \n Useful for altering certain session variables, like sql_mode or optimizer_switch for instance.\n \n Parameters\n \n in_list (TEXT):\n The comma separated list to drop a value from\n \n in_drop_value (TEXT):\n The value to drop from the input list\n \n Returns\n \n TEXT\n \n Example\n \n mysql> select @@sql_mode;\n +-----------------------------------------------------------------------------------------------+\n | @@sql_mode                                                                                    |\n +-----------------------------------------------------------------------------------------------+\n | ANSI_QUOTES,ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |\n +-----------------------------------------------------------------------------------------------+\n 1 row in set (0.00 sec)\n \n mysql> set sql_mode = sys.list_drop(@@sql_mode, \'ONLY_FULL_GROUP_BY\');\n Query OK, 0 rows affected (0.03 sec)\n \n mysql> select @@sql_mode;\n +----------------------------------------------------------------------------+\n | @@sql_mode                                                                 |\n +----------------------------------------------------------------------------+\n | ANSI_QUOTES,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |\n +----------------------------------------------------------------------------+\n 1 row in set (0.00 sec)\n \n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN  IF (in_drop_value IS NULL) THEN SIGNAL SQLSTATE \'02200\' SET MESSAGE_TEXT = \'Function sys.list_drop: in_drop_value input variable should not be NULL\', MYSQL_ERRNO = 1138; END IF;  IF (in_list IS NULL OR LENGTH(in_list) = 0) THEN RETURN in_list; END IF;  RETURN (SELECT TRIM(BOTH \',\' FROM REPLACE(REPLACE(CONCAT(\',\', in_list), CONCAT(\',\', in_drop_value), \'\'), CONCAT(\', \', in_drop_value), \'\')));  END'),('sys','ps_is_account_enabled','FUNCTION','ps_is_account_enabled','SQL','READS_SQL_DATA','YES','INVOKER',_binary ' in_host VARCHAR(60),  in_user VARCHAR(32) ',_binary 'enum(\'YES\',\'NO\') CHARSET utf8',_binary 'BEGIN RETURN IF(EXISTS(SELECT 1 FROM performance_schema.setup_actors WHERE (`HOST` = \'%\' OR in_host LIKE `HOST`) AND (`USER` = \'%\' OR `USER` = in_user) AND (`ENABLED` = \'YES\') ), \'YES\', \'NO\' ); END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Determines whether instrumentation of an account is enabled \n within Performance Schema.\n \n Parameters\n \n in_host VARCHAR(60): \n The hostname of the account to check.\n in_user VARCHAR(32):\n The username of the account to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\', \'PARTIAL\')\n \n Example\n \n mysql> SELECT sys.ps_is_account_enabled(\'localhost\', \'root\');\n +------------------------------------------------+\n | sys.ps_is_account_enabled(\'localhost\', \'root\') |\n +------------------------------------------------+\n | YES                                            |\n +------------------------------------------------+\n 1 row in set (0.01 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN RETURN IF(EXISTS(SELECT 1 FROM performance_schema.setup_actors WHERE (`HOST` = \'%\' OR in_host LIKE `HOST`) AND (`USER` = \'%\' OR `USER` = in_user) AND (`ENABLED` = \'YES\') ), \'YES\', \'NO\' ); END'),('sys','ps_is_consumer_enabled','FUNCTION','ps_is_consumer_enabled','SQL','READS_SQL_DATA','YES','INVOKER',_binary ' in_consumer varchar(64) ',_binary 'enum(\'YES\',\'NO\') CHARSET utf8',_binary 'BEGIN RETURN ( SELECT (CASE WHEN c.NAME = \'global_instrumentation\' THEN c.ENABLED WHEN c.NAME = \'thread_instrumentation\' THEN IF(cg.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') WHEN c.NAME LIKE \'%\\_digest\'           THEN IF(cg.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') WHEN c.NAME LIKE \'%\\_current\'          THEN IF(cg.ENABLED = \'YES\' AND ct.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') ELSE IF(cg.ENABLED = \'YES\' AND ct.ENABLED = \'YES\' AND c.ENABLED = \'YES\' AND ( SELECT cc.ENABLED FROM performance_schema.setup_consumers cc WHERE NAME = CONCAT(SUBSTRING_INDEX(c.NAME, \'_\', 2), \'_current\') ) = \'YES\', \'YES\', \'NO\') END) AS IsEnabled FROM performance_schema.setup_consumers c INNER JOIN performance_schema.setup_consumers cg INNER JOIN performance_schema.setup_consumers ct WHERE cg.NAME       = \'global_instrumentation\' AND ct.NAME   = \'thread_instrumentation\' AND c.NAME    = in_consumer ); END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Determines whether a consumer is enabled (taking the consumer hierarchy into consideration)\n within the Performance Schema.\n \n Parameters\n \n in_consumer VARCHAR(64): \n The name of the consumer to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\')\n \n Example\n \n mysql> SELECT sys.ps_is_consumer_enabled(\'events_stages_history\');\n +-----------------------------------------------------+\n | sys.ps_is_consumer_enabled(\'events_stages_history\') |\n +-----------------------------------------------------+\n | NO                                                  |\n +-----------------------------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN RETURN ( SELECT (CASE WHEN c.NAME = \'global_instrumentation\' THEN c.ENABLED WHEN c.NAME = \'thread_instrumentation\' THEN IF(cg.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') WHEN c.NAME LIKE \'%\\_digest\'           THEN IF(cg.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') WHEN c.NAME LIKE \'%\\_current\'          THEN IF(cg.ENABLED = \'YES\' AND ct.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') ELSE IF(cg.ENABLED = \'YES\' AND ct.ENABLED = \'YES\' AND c.ENABLED = \'YES\' AND ( SELECT cc.ENABLED FROM performance_schema.setup_consumers cc WHERE NAME = CONCAT(SUBSTRING_INDEX(c.NAME, \'_\', 2), \'_current\') ) = \'YES\', \'YES\', \'NO\') END) AS IsEnabled FROM performance_schema.setup_consumers c INNER JOIN performance_schema.setup_consumers cg INNER JOIN performance_schema.setup_consumers ct WHERE cg.NAME       = \'global_instrumentation\' AND ct.NAME   = \'thread_instrumentation\' AND c.NAME    = in_consumer ); END'),('sys','ps_is_instrument_default_enabled','FUNCTION','ps_is_instrument_default_enabled','SQL','READS_SQL_DATA','YES','INVOKER',_binary ' in_instrument VARCHAR(128) ',_binary 'enum(\'YES\',\'NO\') CHARSET utf8',_binary 'BEGIN DECLARE v_enabled ENUM(\'YES\', \'NO\');  SET v_enabled = IF(in_instrument LIKE \'wait/io/file/%\' OR in_instrument LIKE \'wait/io/table/%\' OR in_instrument LIKE \'statement/%\' OR in_instrument LIKE \'memory/performance_schema/%\' OR in_instrument IN (\'wait/lock/table/sql/handler\', \'idle\')  OR in_instrument LIKE \'stage/innodb/%\' OR in_instrument = \'stage/sql/copy to tmp table\'  , \'YES\', \'NO\' );  RETURN v_enabled; END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Returns whether an instrument is enabled by default in this version of MySQL.\n \n Parameters\n \n in_instrument VARCHAR(128): \n The instrument to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\')\n \n Example\n \n mysql> SELECT sys.ps_is_instrument_default_enabled(\'statement/sql/select\');\n +--------------------------------------------------------------+\n | sys.ps_is_instrument_default_enabled(\'statement/sql/select\') |\n +--------------------------------------------------------------+\n | YES                                                          |\n +--------------------------------------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_enabled ENUM(\'YES\', \'NO\');  SET v_enabled = IF(in_instrument LIKE \'wait/io/file/%\' OR in_instrument LIKE \'wait/io/table/%\' OR in_instrument LIKE \'statement/%\' OR in_instrument LIKE \'memory/performance_schema/%\' OR in_instrument IN (\'wait/lock/table/sql/handler\', \'idle\')  OR in_instrument LIKE \'stage/innodb/%\' OR in_instrument = \'stage/sql/copy to tmp table\'  , \'YES\', \'NO\' );  RETURN v_enabled; END'),('sys','ps_is_instrument_default_timed','FUNCTION','ps_is_instrument_default_timed','SQL','READS_SQL_DATA','YES','INVOKER',_binary ' in_instrument VARCHAR(128) ',_binary 'enum(\'YES\',\'NO\') CHARSET utf8',_binary 'BEGIN DECLARE v_timed ENUM(\'YES\', \'NO\');  SET v_timed = IF(in_instrument LIKE \'wait/io/file/%\' OR in_instrument LIKE \'wait/io/table/%\' OR in_instrument LIKE \'statement/%\' OR in_instrument IN (\'wait/lock/table/sql/handler\', \'idle\')  OR in_instrument LIKE \'stage/innodb/%\' OR in_instrument = \'stage/sql/copy to tmp table\'  , \'YES\', \'NO\' );  RETURN v_timed; END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Returns whether an instrument is timed by default in this version of MySQL.\n \n Parameters\n \n in_instrument VARCHAR(128): \n The instrument to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\')\n \n Example\n \n mysql> SELECT sys.ps_is_instrument_default_timed(\'statement/sql/select\');\n +------------------------------------------------------------+\n | sys.ps_is_instrument_default_timed(\'statement/sql/select\') |\n +------------------------------------------------------------+\n | YES                                                        |\n +------------------------------------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_timed ENUM(\'YES\', \'NO\');  SET v_timed = IF(in_instrument LIKE \'wait/io/file/%\' OR in_instrument LIKE \'wait/io/table/%\' OR in_instrument LIKE \'statement/%\' OR in_instrument IN (\'wait/lock/table/sql/handler\', \'idle\')  OR in_instrument LIKE \'stage/innodb/%\' OR in_instrument = \'stage/sql/copy to tmp table\'  , \'YES\', \'NO\' );  RETURN v_timed; END'),('sys','ps_is_thread_instrumented','FUNCTION','ps_is_thread_instrumented','SQL','READS_SQL_DATA','NO','INVOKER',_binary ' in_connection_id BIGINT UNSIGNED ',_binary 'enum(\'YES\',\'NO\',\'UNKNOWN\') CHARSET utf8',_binary 'BEGIN DECLARE v_enabled ENUM(\'YES\', \'NO\', \'UNKNOWN\');  IF (in_connection_id IS NULL) THEN RETURN NULL; END IF;  SELECT INSTRUMENTED INTO v_enabled FROM performance_schema.threads  WHERE PROCESSLIST_ID = in_connection_id;  IF (v_enabled IS NULL) THEN RETURN \'UNKNOWN\'; ELSE RETURN v_enabled; END IF; END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Checks whether the provided connection id is instrumented within Performance Schema.\n \n Parameters\n \n in_connection_id (BIGINT UNSIGNED):\n The id of the connection to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\', \'UNKNOWN\')\n \n Example\n \n mysql> SELECT sys.ps_is_thread_instrumented(CONNECTION_ID());\n +------------------------------------------------+\n | sys.ps_is_thread_instrumented(CONNECTION_ID()) |\n +------------------------------------------------+\n | YES                                            |\n +------------------------------------------------+\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_enabled ENUM(\'YES\', \'NO\', \'UNKNOWN\');  IF (in_connection_id IS NULL) THEN RETURN NULL; END IF;  SELECT INSTRUMENTED INTO v_enabled FROM performance_schema.threads  WHERE PROCESSLIST_ID = in_connection_id;  IF (v_enabled IS NULL) THEN RETURN \'UNKNOWN\'; ELSE RETURN v_enabled; END IF; END'),('sys','ps_thread_id','FUNCTION','ps_thread_id','SQL','READS_SQL_DATA','NO','INVOKER',_binary ' in_connection_id BIGINT UNSIGNED ',_binary 'bigint(20) unsigned',_binary 'BEGIN RETURN (SELECT THREAD_ID FROM `performance_schema`.`threads` WHERE PROCESSLIST_ID = IFNULL(in_connection_id, CONNECTION_ID()) ); END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Return the Performance Schema THREAD_ID for the specified connection ID.\n \n Parameters\n \n in_connection_id (BIGINT UNSIGNED):\n The id of the connection to return the thread id for. If NULL, the current\n connection thread id is returned.\n \n Example\n \n mysql> SELECT sys.ps_thread_id(79);\n +----------------------+\n | sys.ps_thread_id(79) |\n +----------------------+\n |                   98 |\n +----------------------+\n 1 row in set (0.00 sec)\n \n mysql> SELECT sys.ps_thread_id(CONNECTION_ID());\n +-----------------------------------+\n | sys.ps_thread_id(CONNECTION_ID()) |\n +-----------------------------------+\n |                                98 |\n +-----------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN RETURN (SELECT THREAD_ID FROM `performance_schema`.`threads` WHERE PROCESSLIST_ID = IFNULL(in_connection_id, CONNECTION_ID()) ); END'),('sys','ps_thread_account','FUNCTION','ps_thread_account','SQL','READS_SQL_DATA','NO','INVOKER',_binary ' in_thread_id BIGINT UNSIGNED ',_binary 'text CHARSET utf8',_binary 'BEGIN RETURN (SELECT IF( type = \'FOREGROUND\', CONCAT(processlist_user, \'@\', processlist_host), type ) AS account FROM `performance_schema`.`threads` WHERE thread_id = in_thread_id); END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Return the user@host account for the given Performance Schema thread id.\n \n Parameters\n \n in_thread_id (BIGINT UNSIGNED):\n The id of the thread to return the account for.\n \n Example\n \n mysql> select thread_id, processlist_user, processlist_host from performance_schema.threads where type = \'foreground\';\n +-----------+------------------+------------------+\n | thread_id | processlist_user | processlist_host |\n +-----------+------------------+------------------+\n |        23 | NULL             | NULL             |\n |        30 | root             | localhost        |\n |        31 | msandbox         | localhost        |\n |        32 | msandbox         | localhost        |\n +-----------+------------------+------------------+\n 4 rows in set (0.00 sec)\n \n mysql> select sys.ps_thread_account(31);\n +---------------------------+\n | sys.ps_thread_account(31) |\n +---------------------------+\n | msandbox@localhost        |\n +---------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN RETURN (SELECT IF( type = \'FOREGROUND\', CONCAT(processlist_user, \'@\', processlist_host), type ) AS account FROM `performance_schema`.`threads` WHERE thread_id = in_thread_id); END'),('sys','ps_thread_stack','FUNCTION','ps_thread_stack','SQL','READS_SQL_DATA','NO','INVOKER',_binary ' thd_id BIGINT UNSIGNED, debug BOOLEAN ',_binary 'longtext CHARSET latin1',_binary 'BEGIN  DECLARE json_objects LONGTEXT;   UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE processlist_id = CONNECTION_ID();   SET SESSION group_concat_max_len=@@global.max_allowed_packet;  SELECT GROUP_CONCAT(CONCAT( \'{\' , CONCAT_WS( \', \' , CONCAT(\'\"nesting_event_id\": \"\', IF(nesting_event_id IS NULL, \'0\', nesting_event_id), \'\"\') , CONCAT(\'\"event_id\": \"\', event_id, \'\"\') , CONCAT( \'\"timer_wait\": \', ROUND(timer_wait/1000000, 2))   , CONCAT( \'\"event_info\": \"\' , CASE WHEN event_name NOT LIKE \'wait/io%\' THEN REPLACE(SUBSTRING_INDEX(event_name, \'/\', -2), \'\\\\\', \'\\\\\\\\\') WHEN event_name NOT LIKE \'wait/io/file%\' OR event_name NOT LIKE \'wait/io/socket%\' THEN REPLACE(SUBSTRING_INDEX(event_name, \'/\', -4), \'\\\\\', \'\\\\\\\\\') ELSE event_name END , \'\"\' ) , CONCAT( \'\"wait_info\": \"\', IFNULL(wait_info, \'\'), \'\"\') , CONCAT( \'\"source\": \"\', IF(true AND event_name LIKE \'wait%\', IFNULL(wait_info, \'\'), \'\'), \'\"\') , CASE  WHEN event_name LIKE \'wait/io/file%\'      THEN \'\"event_type\": \"io/file\"\' WHEN event_name LIKE \'wait/io/table%\'     THEN \'\"event_type\": \"io/table\"\' WHEN event_name LIKE \'wait/io/socket%\'    THEN \'\"event_type\": \"io/socket\"\' WHEN event_name LIKE \'wait/synch/mutex%\'  THEN \'\"event_type\": \"synch/mutex\"\' WHEN event_name LIKE \'wait/synch/cond%\'   THEN \'\"event_type\": \"synch/cond\"\' WHEN event_name LIKE \'wait/synch/rwlock%\' THEN \'\"event_type\": \"synch/rwlock\"\' WHEN event_name LIKE \'wait/lock%\'         THEN \'\"event_type\": \"lock\"\' WHEN event_name LIKE \'statement/%\'        THEN \'\"event_type\": \"stmt\"\' WHEN event_name LIKE \'stage/%\'            THEN \'\"event_type\": \"stage\"\' WHEN event_name LIKE \'%idle%\'             THEN \'\"event_type\": \"idle\"\' ELSE \'\'  END                    ) , \'}\' ) ORDER BY event_id ASC SEPARATOR \',\') event INTO json_objects FROM (  (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id,  CONCAT(sql_text, \'\\\\n\', \'errors: \', errors, \'\\\\n\', \'warnings: \', warnings, \'\\\\n\', \'lock time: \', ROUND(lock_time/1000000, 2),\'us\\\\n\', \'rows affected: \', rows_affected, \'\\\\n\', \'rows sent: \', rows_sent, \'\\\\n\', \'rows examined: \', rows_examined, \'\\\\n\', \'tmp tables: \', created_tmp_tables, \'\\\\n\', \'tmp disk tables: \', created_tmp_disk_tables, \'\\\\n\', \'select scan: \', select_scan, \'\\\\n\', \'select full join: \', select_full_join, \'\\\\n\', \'select full range join: \', select_full_range_join, \'\\\\n\', \'select range: \', select_range, \'\\\\n\', \'select range check: \', select_range_check, \'\\\\n\',  \'sort merge passes: \', sort_merge_passes, \'\\\\n\', \'sort rows: \', sort_rows, \'\\\\n\', \'sort range: \', sort_range, \'\\\\n\', \'sort scan: \', sort_scan, \'\\\\n\', \'no index used: \', IF(no_index_used, \'TRUE\', \'FALSE\'), \'\\\\n\', \'no good index used: \', IF(no_good_index_used, \'TRUE\', \'FALSE\'), \'\\\\n\' ) AS wait_info FROM performance_schema.events_statements_history_long WHERE thread_id = thd_id) UNION  (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, null AS wait_info FROM performance_schema.events_stages_history_long WHERE thread_id = thd_id)  UNION  (SELECT thread_id, event_id,  CONCAT(event_name ,  IF(event_name NOT LIKE \'wait/synch/mutex%\', IFNULL(CONCAT(\' - \', operation), \'\'), \'\'),  IF(number_of_bytes IS NOT NULL, CONCAT(\' \', number_of_bytes, \' bytes\'), \'\'), IF(event_name LIKE \'wait/io/file%\', \'\\\\n\', \'\'), IF(object_schema IS NOT NULL, CONCAT(\'\\\\nObject: \', object_schema, \'.\'), \'\'),  IF(object_name IS NOT NULL,  IF (event_name LIKE \'wait/io/socket%\', CONCAT(IF (object_name LIKE \':0%\', @@socket, object_name)), object_name), \'\'),  IF(index_name IS NOT NULL, CONCAT(\' Index: \', index_name), \'\'), \'\\\\n\' ) AS event_name, timer_wait, timer_start, nesting_event_id, source AS wait_info FROM performance_schema.events_waits_history_long WHERE thread_id = thd_id)) events  ORDER BY event_id;  RETURN CONCAT(\'{\',  CONCAT_WS(\',\',  \'\"rankdir\": \"LR\"\', \'\"nodesep\": \"0.10\"\', CONCAT(\'\"stack_created\": \"\', NOW(), \'\"\'), CONCAT(\'\"mysql_version\": \"\', VERSION(), \'\"\'), CONCAT(\'\"mysql_user\": \"\', CURRENT_USER(), \'\"\'), CONCAT(\'\"events\": [\', IFNULL(json_objects,\'\'), \']\') ), \'}\');  END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Outputs a JSON formatted stack of all statements, stages and events\n within Performance Schema for the specified thread.\n \n Parameters\n \n thd_id (BIGINT UNSIGNED):\n The id of the thread to trace. This should match the thread_id\n column from the performance_schema.threads table.\n in_verbose (BOOLEAN):\n Include file:lineno information in the events.\n \n Example\n \n (line separation added for output)\n \n mysql> SELECT sys.ps_thread_stack(37, FALSE) AS thread_stack\\G\n *************************** 1. row ***************************\n thread_stack: {\"rankdir\": \"LR\",\"nodesep\": \"0.10\",\"stack_created\": \"2014-02-19 13:39:03\",\n \"mysql_version\": \"5.7.3-m13\",\"mysql_user\": \"root@localhost\",\"events\": \n [{\"nesting_event_id\": \"0\", \"event_id\": \"10\", \"timer_wait\": 256.35, \"event_info\": \n \"sql/select\", \"wait_info\": \"select @@version_comment limit 1\\nerrors: 0\\nwarnings: 0\\nlock time:\n ...\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN  DECLARE json_objects LONGTEXT;   UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE processlist_id = CONNECTION_ID();   SET SESSION group_concat_max_len=@@global.max_allowed_packet;  SELECT GROUP_CONCAT(CONCAT( \'{\' , CONCAT_WS( \', \' , CONCAT(\'\"nesting_event_id\": \"\', IF(nesting_event_id IS NULL, \'0\', nesting_event_id), \'\"\') , CONCAT(\'\"event_id\": \"\', event_id, \'\"\') , CONCAT( \'\"timer_wait\": \', ROUND(timer_wait/1000000, 2))   , CONCAT( \'\"event_info\": \"\' , CASE WHEN event_name NOT LIKE \'wait/io%\' THEN REPLACE(SUBSTRING_INDEX(event_name, \'/\', -2), \'\\\', \'\\\\\') WHEN event_name NOT LIKE \'wait/io/file%\' OR event_name NOT LIKE \'wait/io/socket%\' THEN REPLACE(SUBSTRING_INDEX(event_name, \'/\', -4), \'\\\', \'\\\\\') ELSE event_name END , \'\"\' ) , CONCAT( \'\"wait_info\": \"\', IFNULL(wait_info, \'\'), \'\"\') , CONCAT( \'\"source\": \"\', IF(true AND event_name LIKE \'wait%\', IFNULL(wait_info, \'\'), \'\'), \'\"\') , CASE  WHEN event_name LIKE \'wait/io/file%\'      THEN \'\"event_type\": \"io/file\"\' WHEN event_name LIKE \'wait/io/table%\'     THEN \'\"event_type\": \"io/table\"\' WHEN event_name LIKE \'wait/io/socket%\'    THEN \'\"event_type\": \"io/socket\"\' WHEN event_name LIKE \'wait/synch/mutex%\'  THEN \'\"event_type\": \"synch/mutex\"\' WHEN event_name LIKE \'wait/synch/cond%\'   THEN \'\"event_type\": \"synch/cond\"\' WHEN event_name LIKE \'wait/synch/rwlock%\' THEN \'\"event_type\": \"synch/rwlock\"\' WHEN event_name LIKE \'wait/lock%\'         THEN \'\"event_type\": \"lock\"\' WHEN event_name LIKE \'statement/%\'        THEN \'\"event_type\": \"stmt\"\' WHEN event_name LIKE \'stage/%\'            THEN \'\"event_type\": \"stage\"\' WHEN event_name LIKE \'%idle%\'             THEN \'\"event_type\": \"idle\"\' ELSE \'\'  END                    ) , \'}\' ) ORDER BY event_id ASC SEPARATOR \',\') event INTO json_objects FROM (  (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id,  CONCAT(sql_text, \'\\n\', \'errors: \', errors, \'\\n\', \'warnings: \', warnings, \'\\n\', \'lock time: \', ROUND(lock_time/1000000, 2),\'us\\n\', \'rows affected: \', rows_affected, \'\\n\', \'rows sent: \', rows_sent, \'\\n\', \'rows examined: \', rows_examined, \'\\n\', \'tmp tables: \', created_tmp_tables, \'\\n\', \'tmp disk tables: \', created_tmp_disk_tables, \'\\n\', \'select scan: \', select_scan, \'\\n\', \'select full join: \', select_full_join, \'\\n\', \'select full range join: \', select_full_range_join, \'\\n\', \'select range: \', select_range, \'\\n\', \'select range check: \', select_range_check, \'\\n\',  \'sort merge passes: \', sort_merge_passes, \'\\n\', \'sort rows: \', sort_rows, \'\\n\', \'sort range: \', sort_range, \'\\n\', \'sort scan: \', sort_scan, \'\\n\', \'no index used: \', IF(no_index_used, \'TRUE\', \'FALSE\'), \'\\n\', \'no good index used: \', IF(no_good_index_used, \'TRUE\', \'FALSE\'), \'\\n\' ) AS wait_info FROM performance_schema.events_statements_history_long WHERE thread_id = thd_id) UNION  (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, null AS wait_info FROM performance_schema.events_stages_history_long WHERE thread_id = thd_id)  UNION  (SELECT thread_id, event_id,  CONCAT(event_name ,  IF(event_name NOT LIKE \'wait/synch/mutex%\', IFNULL(CONCAT(\' - \', operation), \'\'), \'\'),  IF(number_of_bytes IS NOT NULL, CONCAT(\' \', number_of_bytes, \' bytes\'), \'\'), IF(event_name LIKE \'wait/io/file%\', \'\\n\', \'\'), IF(object_schema IS NOT NULL, CONCAT(\'\\nObject: \', object_schema, \'.\'), \'\'),  IF(object_name IS NOT NULL,  IF (event_name LIKE \'wait/io/socket%\', CONCAT(IF (object_name LIKE \':0%\', @@socket, object_name)), object_name), \'\'),  IF(index_name IS NOT NULL, CONCAT(\' Index: \', index_name), \'\'), \'\\n\' ) AS event_name, timer_wait, timer_start, nesting_event_id, source AS wait_info FROM performance_schema.events_waits_history_long WHERE thread_id = thd_id)) events  ORDER BY event_id;  RETURN CONCAT(\'{\',  CONCAT_WS(\',\',  \'\"rankdir\": \"LR\"\', \'\"nodesep\": \"0.10\"\', CONCAT(\'\"stack_created\": \"\', NOW(), \'\"\'), CONCAT(\'\"mysql_version\": \"\', VERSION(), \'\"\'), CONCAT(\'\"mysql_user\": \"\', CURRENT_USER(), \'\"\'), CONCAT(\'\"events\": [\', IFNULL(json_objects,\'\'), \']\') ), \'}\');  END'),('sys','ps_thread_trx_info','FUNCTION','ps_thread_trx_info','SQL','READS_SQL_DATA','NO','INVOKER',_binary ' in_thread_id BIGINT UNSIGNED ',_binary 'longtext CHARSET utf8',_binary 'BEGIN DECLARE v_output LONGTEXT DEFAULT \'{}\'; DECLARE v_msg_text TEXT DEFAULT \'\'; DECLARE v_signal_msg TEXT DEFAULT \'\'; DECLARE v_mysql_errno INT; DECLARE v_max_output_len BIGINT; DECLARE EXIT HANDLER FOR SQLWARNING, SQLEXCEPTION BEGIN GET DIAGNOSTICS CONDITION 1 v_msg_text = MESSAGE_TEXT, v_mysql_errno = MYSQL_ERRNO;  IF v_mysql_errno = 1260 THEN SET v_signal_msg = CONCAT(\'{ \"error\": \"Trx info truncated: \', v_msg_text, \'\" }\'); ELSE SET v_signal_msg = CONCAT(\'{ \"error\": \"\', v_msg_text, \'\" }\'); END IF;  RETURN v_signal_msg; END;  IF (@sys.ps_thread_trx_info.max_length IS NULL) THEN SET @sys.ps_thread_trx_info.max_length = sys.sys_get_config(\'ps_thread_trx_info.max_length\', 65535); END IF;  IF (@sys.ps_thread_trx_info.max_length != @@session.group_concat_max_len) THEN SET @old_group_concat_max_len = @@session.group_concat_max_len; SET v_max_output_len = (@sys.ps_thread_trx_info.max_length - 5); SET SESSION group_concat_max_len = v_max_output_len; END IF;  SET v_output = ( SELECT CONCAT(\'[\', IFNULL(GROUP_CONCAT(trx_info ORDER BY event_id), \'\'), \'\\n]\') AS trx_info FROM (SELECT trxi.thread_id,  trxi.event_id, GROUP_CONCAT( IFNULL( CONCAT(\'\\n  {\\n\', \'    \"time\": \"\', IFNULL(sys.format_time(trxi.timer_wait), \'\'), \'\",\\n\', \'    \"state\": \"\', IFNULL(trxi.state, \'\'), \'\",\\n\', \'    \"mode\": \"\', IFNULL(trxi.access_mode, \'\'), \'\",\\n\', \'    \"autocommitted\": \"\', IFNULL(trxi.autocommit, \'\'), \'\",\\n\', \'    \"gtid\": \"\', IFNULL(trxi.gtid, \'\'), \'\",\\n\', \'    \"isolation\": \"\', IFNULL(trxi.isolation_level, \'\'), \'\",\\n\', \'    \"statements_executed\": [\', IFNULL(s.stmts, \'\'), IF(s.stmts IS NULL, \' ]\\n\', \'\\n    ]\\n\'), \'  }\' ),  \'\')  ORDER BY event_id) AS trx_info  FROM ( (SELECT thread_id, event_id, timer_wait, state,access_mode, autocommit, gtid, isolation_level FROM performance_schema.events_transactions_current WHERE thread_id = in_thread_id AND end_event_id IS NULL) UNION (SELECT thread_id, event_id, timer_wait, state,access_mode, autocommit, gtid, isolation_level FROM performance_schema.events_transactions_history WHERE thread_id = in_thread_id) ) AS trxi LEFT JOIN (SELECT thread_id, nesting_event_id, GROUP_CONCAT( IFNULL( CONCAT(\'\\n      {\\n\', \'        \"sql_text\": \"\', IFNULL(sys.format_statement(REPLACE(sql_text, \'\\\\\', \'\\\\\\\\\')), \'\'), \'\",\\n\', \'        \"time\": \"\', IFNULL(sys.format_time(timer_wait), \'\'), \'\",\\n\', \'        \"schema\": \"\', IFNULL(current_schema, \'\'), \'\",\\n\', \'        \"rows_examined\": \', IFNULL(rows_examined, \'\'), \',\\n\', \'        \"rows_affected\": \', IFNULL(rows_affected, \'\'), \',\\n\', \'        \"rows_sent\": \', IFNULL(rows_sent, \'\'), \',\\n\', \'        \"tmp_tables\": \', IFNULL(created_tmp_tables, \'\'), \',\\n\', \'        \"tmp_disk_tables\": \', IFNULL(created_tmp_disk_tables, \'\'), \',\\n\', \'        \"sort_rows\": \', IFNULL(sort_rows, \'\'), \',\\n\', \'        \"sort_merge_passes\": \', IFNULL(sort_merge_passes, \'\'), \'\\n\', \'      }\'), \'\') ORDER BY event_id) AS stmts FROM performance_schema.events_statements_history WHERE sql_text IS NOT NULL AND thread_id = in_thread_id GROUP BY thread_id, nesting_event_id ) AS s  ON trxi.thread_id = s.thread_id  AND trxi.event_id = s.nesting_event_id WHERE trxi.thread_id = in_thread_id GROUP BY trxi.thread_id, trxi.event_id ) trxs GROUP BY thread_id );  IF (@old_group_concat_max_len IS NOT NULL) THEN SET SESSION group_concat_max_len = @old_group_concat_max_len; END IF;  RETURN v_output; END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Returns a JSON object with info on the given threads current transaction, \n and the statements it has already executed, derived from the\n performance_schema.events_transactions_current and\n performance_schema.events_statements_history tables (so the consumers \n for these also have to be enabled within Performance Schema to get full\n data in the object).\n \n When the output exceeds the default truncation length (65535), a JSON error\n object is returned, such as:\n \n { \"error\": \"Trx info truncated: Row 6 was cut by GROUP_CONCAT()\" }\n \n Similar error objects are returned for other warnings/and exceptions raised\n when calling the function.\n \n The max length of the output of this function can be controlled with the\n ps_thread_trx_info.max_length variable set via sys_config, or the\n @sys.ps_thread_trx_info.max_length user variable, as appropriate.\n \n Parameters\n \n in_thread_id (BIGINT UNSIGNED):\n The id of the thread to return the transaction info for.\n \n Example\n \n SELECT sys.ps_thread_trx_info(48)\\G\n *************************** 1. row ***************************\n sys.ps_thread_trx_info(48): [\n {\n \"time\": \"790.70 us\",\n \"state\": \"COMMITTED\",\n \"mode\": \"READ WRITE\",\n \"autocommitted\": \"NO\",\n \"gtid\": \"AUTOMATIC\",\n \"isolation\": \"REPEATABLE READ\",\n \"statements_executed\": [\n {\n \"sql_text\": \"INSERT INTO info VALUES (1, \'foo\')\",\n \"time\": \"471.02 us\",\n \"schema\": \"trx\",\n \"rows_examined\": 0,\n \"rows_affected\": 1,\n \"rows_sent\": 0,\n \"tmp_tables\": 0,\n \"tmp_disk_tables\": 0,\n \"sort_rows\": 0,\n \"sort_merge_passes\": 0\n },\n {\n \"sql_text\": \"COMMIT\",\n \"time\": \"254.42 us\",\n \"schema\": \"trx\",\n \"rows_examined\": 0,\n \"rows_affected\": 0,\n \"rows_sent\": 0,\n \"tmp_tables\": 0,\n \"tmp_disk_tables\": 0,\n \"sort_rows\": 0,\n \"sort_merge_passes\": 0\n }\n ]\n },\n {\n \"time\": \"426.20 us\",\n \"state\": \"COMMITTED\",\n \"mode\": \"READ WRITE\",\n \"autocommitted\": \"NO\",\n \"gtid\": \"AUTOMATIC\",\n \"isolation\": \"REPEATABLE READ\",\n \"statements_executed\": [\n {\n \"sql_text\": \"INSERT INTO info VALUES (2, \'bar\')\",\n \"time\": \"107.33 us\",\n \"schema\": \"trx\",\n \"rows_examined\": 0,\n \"rows_affected\": 1,\n \"rows_sent\": 0,\n \"tmp_tables\": 0,\n \"tmp_disk_tables\": 0,\n \"sort_rows\": 0,\n \"sort_merge_passes\": 0\n },\n {\n \"sql_text\": \"COMMIT\",\n \"time\": \"213.23 us\",\n \"schema\": \"trx\",\n \"rows_examined\": 0,\n \"rows_affected\": 0,\n \"rows_sent\": 0,\n \"tmp_tables\": 0,\n \"tmp_disk_tables\": 0,\n \"sort_rows\": 0,\n \"sort_merge_passes\": 0\n }\n ]\n }\n ]\n 1 row in set (0.03 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_output LONGTEXT DEFAULT \'{}\'; DECLARE v_msg_text TEXT DEFAULT \'\'; DECLARE v_signal_msg TEXT DEFAULT \'\'; DECLARE v_mysql_errno INT; DECLARE v_max_output_len BIGINT; DECLARE EXIT HANDLER FOR SQLWARNING, SQLEXCEPTION BEGIN GET DIAGNOSTICS CONDITION 1 v_msg_text = MESSAGE_TEXT, v_mysql_errno = MYSQL_ERRNO;  IF v_mysql_errno = 1260 THEN SET v_signal_msg = CONCAT(\'{ \"error\": \"Trx info truncated: \', v_msg_text, \'\" }\'); ELSE SET v_signal_msg = CONCAT(\'{ \"error\": \"\', v_msg_text, \'\" }\'); END IF;  RETURN v_signal_msg; END;  IF (@sys.ps_thread_trx_info.max_length IS NULL) THEN SET @sys.ps_thread_trx_info.max_length = sys.sys_get_config(\'ps_thread_trx_info.max_length\', 65535); END IF;  IF (@sys.ps_thread_trx_info.max_length != @@session.group_concat_max_len) THEN SET @old_group_concat_max_len = @@session.group_concat_max_len; SET v_max_output_len = (@sys.ps_thread_trx_info.max_length - 5); SET SESSION group_concat_max_len = v_max_output_len; END IF;  SET v_output = ( SELECT CONCAT(\'[\', IFNULL(GROUP_CONCAT(trx_info ORDER BY event_id), \'\'), \'\n]\') AS trx_info FROM (SELECT trxi.thread_id,  trxi.event_id, GROUP_CONCAT( IFNULL( CONCAT(\'\n  {\n\', \'    \"time\": \"\', IFNULL(sys.format_time(trxi.timer_wait), \'\'), \'\",\n\', \'    \"state\": \"\', IFNULL(trxi.state, \'\'), \'\",\n\', \'    \"mode\": \"\', IFNULL(trxi.access_mode, \'\'), \'\",\n\', \'    \"autocommitted\": \"\', IFNULL(trxi.autocommit, \'\'), \'\",\n\', \'    \"gtid\": \"\', IFNULL(trxi.gtid, \'\'), \'\",\n\', \'    \"isolation\": \"\', IFNULL(trxi.isolation_level, \'\'), \'\",\n\', \'    \"statements_executed\": [\', IFNULL(s.stmts, \'\'), IF(s.stmts IS NULL, \' ]\n\', \'\n    ]\n\'), \'  }\' ),  \'\')  ORDER BY event_id) AS trx_info  FROM ( (SELECT thread_id, event_id, timer_wait, state,access_mode, autocommit, gtid, isolation_level FROM performance_schema.events_transactions_current WHERE thread_id = in_thread_id AND end_event_id IS NULL) UNION (SELECT thread_id, event_id, timer_wait, state,access_mode, autocommit, gtid, isolation_level FROM performance_schema.events_transactions_history WHERE thread_id = in_thread_id) ) AS trxi LEFT JOIN (SELECT thread_id, nesting_event_id, GROUP_CONCAT( IFNULL( CONCAT(\'\n      {\n\', \'        \"sql_text\": \"\', IFNULL(sys.format_statement(REPLACE(sql_text, \'\\\', \'\\\\\')), \'\'), \'\",\n\', \'        \"time\": \"\', IFNULL(sys.format_time(timer_wait), \'\'), \'\",\n\', \'        \"schema\": \"\', IFNULL(current_schema, \'\'), \'\",\n\', \'        \"rows_examined\": \', IFNULL(rows_examined, \'\'), \',\n\', \'        \"rows_affected\": \', IFNULL(rows_affected, \'\'), \',\n\', \'        \"rows_sent\": \', IFNULL(rows_sent, \'\'), \',\n\', \'        \"tmp_tables\": \', IFNULL(created_tmp_tables, \'\'), \',\n\', \'        \"tmp_disk_tables\": \', IFNULL(created_tmp_disk_tables, \'\'), \',\n\', \'        \"sort_rows\": \', IFNULL(sort_rows, \'\'), \',\n\', \'        \"sort_merge_passes\": \', IFNULL(sort_merge_passes, \'\'), \'\n\', \'      }\'), \'\') ORDER BY event_id) AS stmts FROM performance_schema.events_statements_history WHERE sql_text IS NOT NULL AND thread_id = in_thread_id GROUP BY thread_id, nesting_event_id ) AS s  ON trxi.thread_id = s.thread_id  AND trxi.event_id = s.nesting_event_id WHERE trxi.thread_id = in_thread_id GROUP BY trxi.thread_id, trxi.event_id ) trxs GROUP BY thread_id );  IF (@old_group_concat_max_len IS NOT NULL) THEN SET SESSION group_concat_max_len = @old_group_concat_max_len; END IF;  RETURN v_output; END'),('sys','quote_identifier','FUNCTION','quote_identifier','SQL','NO_SQL','YES','INVOKER',_binary 'in_identifier TEXT',_binary 'text CHARSET utf8',_binary 'BEGIN RETURN CONCAT(\'`\', REPLACE(in_identifier, \'`\', \'``\'), \'`\'); END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Takes an unquoted identifier (schema name, table name, etc.) and\n returns the identifier quoted with backticks.\n \n Parameters\n \n in_identifier (TEXT):\n The identifier to quote.\n \n Returns\n \n TEXT\n \n Example\n \n mysql> SELECT sys.quote_identifier(\'my_identifier\') AS Identifier;\n +-----------------+\n | Identifier      |\n +-----------------+\n | `my_identifier` |\n +-----------------+\n 1 row in set (0.00 sec)\n \n mysql> SELECT sys.quote_identifier(\'my`idenfier\') AS Identifier;\n +----------------+\n | Identifier     |\n +----------------+\n | `my``idenfier` |\n +----------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN RETURN CONCAT(\'`\', REPLACE(in_identifier, \'`\', \'``\'), \'`\'); END'),('sys','sys_get_config','FUNCTION','sys_get_config','SQL','READS_SQL_DATA','YES','INVOKER',_binary ' in_variable_name VARCHAR(128), in_default_value VARCHAR(128) ',_binary 'varchar(128) CHARSET utf8',_binary 'BEGIN DECLARE v_value VARCHAR(128) DEFAULT NULL;  SET v_value = (SELECT value FROM sys.sys_config WHERE variable = in_variable_name);  IF (v_value IS NULL) THEN SET v_value = in_default_value; END IF;  RETURN v_value; END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Returns the value for the requested variable using the following logic:\n \n 1. If the option exists in sys.sys_config return the value from there.\n 2. Else fall back on the provided default value.\n \n Notes for using sys_get_config():\n \n * If the default value argument to sys_get_config() is NULL and case 2. is reached, NULL is returned.\n It is then expected that the caller is able to handle NULL for the given configuration option.\n * The convention is to name the user variables @sys.<name of variable>. It is <name of variable> that\n is stored in the sys_config table and is what is expected as the argument to sys_get_config().\n * If you want to check whether the configuration option has already been set and if not assign with\n the return value of sys_get_config() you can use IFNULL(...) (see example below). However this should\n not be done inside a loop (e.g. for each row in a result set) as for repeated calls where assignment\n is only needed in the first iteration using IFNULL(...) is expected to be significantly slower than\n using an IF (...) THEN ... END IF; block (see example below).\n \n Parameters\n \n in_variable_name (VARCHAR(128)):\n The name of the config option to return the value for.\n \n in_default_value (VARCHAR(128)):\n The default value to return if the variable does not exist in sys.sys_config.\n \n Returns\n \n VARCHAR(128)\n \n Example\n \n mysql> SELECT sys.sys_get_config(\'statement_truncate_len\', 128) AS Value;\n +-------+\n | Value |\n +-------+\n | 64    |\n +-------+\n 1 row in set (0.00 sec)\n \n mysql> SET @sys.statement_truncate_len = IFNULL(@sys.statement_truncate_len, sys.sys_get_config(\'statement_truncate_len\', 64));\n Query OK, 0 rows affected (0.00 sec)\n \n IF (@sys.statement_truncate_len IS NULL) THEN\n SET @sys.statement_truncate_len = sys.sys_get_config(\'statement_truncate_len\', 64);\n END IF;\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_value VARCHAR(128) DEFAULT NULL;  SET v_value = (SELECT value FROM sys.sys_config WHERE variable = in_variable_name);  IF (v_value IS NULL) THEN SET v_value = in_default_value; END IF;  RETURN v_value; END'),('sys','version_major','FUNCTION','version_major','SQL','NO_SQL','NO','INVOKER','',_binary 'tinyint(3) unsigned',_binary 'BEGIN RETURN SUBSTRING_INDEX(SUBSTRING_INDEX(VERSION(), \'-\', 1), \'.\', 1); END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Returns the major version of MySQL Server.\n \n Returns\n \n TINYINT UNSIGNED\n \n Example\n \n mysql> SELECT VERSION(), sys.version_major();\n +--------------------------------------+---------------------+\n | VERSION()                            | sys.version_major() |\n +--------------------------------------+---------------------+\n | 5.7.9-enterprise-commercial-advanced | 5                   |\n +--------------------------------------+---------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN RETURN SUBSTRING_INDEX(SUBSTRING_INDEX(VERSION(), \'-\', 1), \'.\', 1); END'),('sys','version_minor','FUNCTION','version_minor','SQL','NO_SQL','NO','INVOKER','',_binary 'tinyint(3) unsigned',_binary 'BEGIN RETURN SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(VERSION(), \'-\', 1), \'.\', 2), \'.\', -1); END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Returns the minor (release series) version of MySQL Server.\n \n Returns\n \n TINYINT UNSIGNED\n \n Example\n \n mysql> SELECT VERSION(), sys.server_minor();\n +--------------------------------------+---------------------+\n | VERSION()                            | sys.version_minor() |\n +--------------------------------------+---------------------+\n | 5.7.9-enterprise-commercial-advanced | 7                   |\n +--------------------------------------+---------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN RETURN SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(VERSION(), \'-\', 1), \'.\', 2), \'.\', -1); END'),('sys','version_patch','FUNCTION','version_patch','SQL','NO_SQL','NO','INVOKER','',_binary 'tinyint(3) unsigned',_binary 'BEGIN RETURN SUBSTRING_INDEX(SUBSTRING_INDEX(VERSION(), \'-\', 1), \'.\', -1); END','mysql.sys@localhost','2019-02-15 20:59:24','2019-02-15 20:59:24','','\n Description\n \n Returns the patch release version of MySQL Server.\n \n Returns\n \n TINYINT UNSIGNED\n \n Example\n \n mysql> SELECT VERSION(), sys.version_patch();\n +--------------------------------------+---------------------+\n | VERSION()                            | sys.version_patch() |\n +--------------------------------------+---------------------+\n | 5.7.9-enterprise-commercial-advanced | 9                   |\n +--------------------------------------+---------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN RETURN SUBSTRING_INDEX(SUBSTRING_INDEX(VERSION(), \'-\', 1), \'.\', -1); END'),('sys','create_synonym_db','PROCEDURE','create_synonym_db','SQL','MODIFIES_SQL_DATA','NO','INVOKER',_binary ' IN in_db_name VARCHAR(64),  IN in_synonym VARCHAR(64) ','',_binary 'BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_db_name_check VARCHAR(64); DECLARE v_db_err_msg TEXT; DECLARE v_table VARCHAR(64); DECLARE v_views_created INT DEFAULT 0;  DECLARE db_doesnt_exist CONDITION FOR SQLSTATE \'42000\'; DECLARE db_name_exists CONDITION FOR SQLSTATE \'HY000\';  DECLARE c_table_names CURSOR FOR  SELECT TABLE_NAME  FROM INFORMATION_SCHEMA.TABLES  WHERE TABLE_SCHEMA = in_db_name;  DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  SELECT SCHEMA_NAME INTO v_db_name_check FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = in_db_name;  IF v_db_name_check IS NULL THEN SET v_db_err_msg = CONCAT(\'Unknown database \', in_db_name); SIGNAL SQLSTATE \'HY000\' SET MESSAGE_TEXT = v_db_err_msg; END IF;  SELECT SCHEMA_NAME INTO v_db_name_check FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = in_synonym;  IF v_db_name_check = in_synonym THEN SET v_db_err_msg = CONCAT(\'Can\\\'t create database \', in_synonym, \'; database exists\'); SIGNAL SQLSTATE \'HY000\' SET MESSAGE_TEXT = v_db_err_msg; END IF;  SET @create_db_stmt := CONCAT(\'CREATE DATABASE \', sys.quote_identifier(in_synonym)); PREPARE create_db_stmt FROM @create_db_stmt; EXECUTE create_db_stmt; DEALLOCATE PREPARE create_db_stmt;  SET v_done = FALSE; OPEN c_table_names; c_table_names: LOOP FETCH c_table_names INTO v_table; IF v_done THEN LEAVE c_table_names; END IF;  SET @create_view_stmt = CONCAT( \'CREATE SQL SECURITY INVOKER VIEW \', sys.quote_identifier(in_synonym), \'.\', sys.quote_identifier(v_table), \' AS SELECT * FROM \', sys.quote_identifier(in_db_name), \'.\', sys.quote_identifier(v_table) ); PREPARE create_view_stmt FROM @create_view_stmt; EXECUTE create_view_stmt; DEALLOCATE PREPARE create_view_stmt;  SET v_views_created = v_views_created + 1; END LOOP; CLOSE c_table_names;  SELECT CONCAT( \'Created \', v_views_created, \' view\', IF(v_views_created != 1, \'s\', \'\'), \' in the \', sys.quote_identifier(in_synonym), \' database\' ) AS summary;  END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Takes a source database name and synonym name, and then creates the \n synonym database with views that point to all of the tables within\n the source database.\n \n Useful for creating a \"ps\" synonym for \"performance_schema\",\n or \"is\" instead of \"information_schema\", for example.\n \n Parameters\n \n in_db_name (VARCHAR(64)):\n The database name that you would like to create a synonym for.\n in_synonym (VARCHAR(64)):\n The database synonym name.\n \n Example\n \n mysql> SHOW DATABASES;\n +--------------------+\n | Database           |\n +--------------------+\n | information_schema |\n | mysql              |\n | performance_schema |\n | sys                |\n | test               |\n +--------------------+\n 5 rows in set (0.00 sec)\n \n mysql> CALL sys.create_synonym_db(\'performance_schema\', \'ps\');\n +---------------------------------------+\n | summary                               |\n +---------------------------------------+\n | Created 74 views in the `ps` database |\n +---------------------------------------+\n 1 row in set (8.57 sec)\n \n Query OK, 0 rows affected (8.57 sec)\n \n mysql> SHOW DATABASES;\n +--------------------+\n | Database           |\n +--------------------+\n | information_schema |\n | mysql              |\n | performance_schema |\n | ps                 |\n | sys                |\n | test               |\n +--------------------+\n 6 rows in set (0.00 sec)\n \n mysql> SHOW FULL TABLES FROM ps;\n +------------------------------------------------------+------------+\n | Tables_in_ps                                         | Table_type |\n +------------------------------------------------------+------------+\n | accounts                                             | VIEW       |\n | cond_instances                                       | VIEW       |\n | events_stages_current                                | VIEW       |\n | events_stages_history                                | VIEW       |\n ...\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_db_name_check VARCHAR(64); DECLARE v_db_err_msg TEXT; DECLARE v_table VARCHAR(64); DECLARE v_views_created INT DEFAULT 0;  DECLARE db_doesnt_exist CONDITION FOR SQLSTATE \'42000\'; DECLARE db_name_exists CONDITION FOR SQLSTATE \'HY000\';  DECLARE c_table_names CURSOR FOR  SELECT TABLE_NAME  FROM INFORMATION_SCHEMA.TABLES  WHERE TABLE_SCHEMA = in_db_name;  DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  SELECT SCHEMA_NAME INTO v_db_name_check FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = in_db_name;  IF v_db_name_check IS NULL THEN SET v_db_err_msg = CONCAT(\'Unknown database \', in_db_name); SIGNAL SQLSTATE \'HY000\' SET MESSAGE_TEXT = v_db_err_msg; END IF;  SELECT SCHEMA_NAME INTO v_db_name_check FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = in_synonym;  IF v_db_name_check = in_synonym THEN SET v_db_err_msg = CONCAT(\'Can\'t create database \', in_synonym, \'; database exists\'); SIGNAL SQLSTATE \'HY000\' SET MESSAGE_TEXT = v_db_err_msg; END IF;  SET @create_db_stmt := CONCAT(\'CREATE DATABASE \', sys.quote_identifier(in_synonym)); PREPARE create_db_stmt FROM @create_db_stmt; EXECUTE create_db_stmt; DEALLOCATE PREPARE create_db_stmt;  SET v_done = FALSE; OPEN c_table_names; c_table_names: LOOP FETCH c_table_names INTO v_table; IF v_done THEN LEAVE c_table_names; END IF;  SET @create_view_stmt = CONCAT( \'CREATE SQL SECURITY INVOKER VIEW \', sys.quote_identifier(in_synonym), \'.\', sys.quote_identifier(v_table), \' AS SELECT * FROM \', sys.quote_identifier(in_db_name), \'.\', sys.quote_identifier(v_table) ); PREPARE create_view_stmt FROM @create_view_stmt; EXECUTE create_view_stmt; DEALLOCATE PREPARE create_view_stmt;  SET v_views_created = v_views_created + 1; END LOOP; CLOSE c_table_names;  SELECT CONCAT( \'Created \', v_views_created, \' view\', IF(v_views_created != 1, \'s\', \'\'), \' in the \', sys.quote_identifier(in_synonym), \' database\' ) AS summary;  END'),('sys','execute_prepared_stmt','PROCEDURE','execute_prepared_stmt','SQL','READS_SQL_DATA','NO','INVOKER',_binary ' IN in_query longtext CHARACTER SET UTF8 ','',_binary 'BEGIN IF (@sys.debug IS NULL) THEN SET @sys.debug = sys.sys_get_config(\'debug\', \'OFF\'); END IF;  IF (in_query IS NULL OR LENGTH(in_query) < 4) THEN SIGNAL SQLSTATE \'45000\' SET MESSAGE_TEXT = \"The @sys.execute_prepared_stmt.sql must contain a query\"; END IF;  SET @sys.execute_prepared_stmt.sql = in_query;  IF (@sys.debug = \'ON\') THEN SELECT @sys.execute_prepared_stmt.sql AS \'Debug\'; END IF; PREPARE sys_execute_prepared_stmt FROM @sys.execute_prepared_stmt.sql; EXECUTE sys_execute_prepared_stmt; DEALLOCATE PREPARE sys_execute_prepared_stmt;  SET @sys.execute_prepared_stmt.sql = NULL; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Takes the query in the argument and executes it using a prepared statement. The prepared statement is deallocated,\n so the procedure is mainly useful for executing one off dynamically created queries.\n \n The sys_execute_prepared_stmt prepared statement name is used for the query and is required not to exist.\n \n \n Parameters\n \n in_query (longtext CHARACTER SET UTF8):\n The query to execute.\n \n \n Configuration Options\n \n sys.debug\n Whether to provide debugging output.\n Default is \'OFF\'. Set to \'ON\' to include.\n \n \n Example\n \n mysql> CALL sys.execute_prepared_stmt(\'SELECT * FROM sys.sys_config\');\n +------------------------+-------+---------------------+--------+\n | variable               | value | set_time            | set_by |\n +------------------------+-------+---------------------+--------+\n | statement_truncate_len | 64    | 2015-06-30 13:06:00 | NULL   |\n +------------------------+-------+---------------------+--------+\n 1 row in set (0.00 sec)\n \n Query OK, 0 rows affected (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN IF (@sys.debug IS NULL) THEN SET @sys.debug = sys.sys_get_config(\'debug\', \'OFF\'); END IF;  IF (in_query IS NULL OR LENGTH(in_query) < 4) THEN SIGNAL SQLSTATE \'45000\' SET MESSAGE_TEXT = \"The @sys.execute_prepared_stmt.sql must contain a query\"; END IF;  SET @sys.execute_prepared_stmt.sql = in_query;  IF (@sys.debug = \'ON\') THEN SELECT @sys.execute_prepared_stmt.sql AS \'Debug\'; END IF; PREPARE sys_execute_prepared_stmt FROM @sys.execute_prepared_stmt.sql; EXECUTE sys_execute_prepared_stmt; DEALLOCATE PREPARE sys_execute_prepared_stmt;  SET @sys.execute_prepared_stmt.sql = NULL; END'),('sys','diagnostics','PROCEDURE','diagnostics','SQL','READS_SQL_DATA','NO','INVOKER',_binary ' IN in_max_runtime int unsigned, IN in_interval int unsigned, IN in_auto_config enum (\'current\', \'medium\', \'full\') ','',_binary 'BEGIN DECLARE v_start, v_runtime, v_iter_start, v_sleep DECIMAL(20,2) DEFAULT 0.0; DECLARE v_has_innodb, v_has_ndb, v_has_ps, v_has_replication, v_has_ps_replication VARCHAR(8) CHARSET utf8 DEFAULT \'NO\'; DECLARE v_this_thread_enabled, v_has_ps_vars, v_has_metrics ENUM(\'YES\', \'NO\'); DECLARE v_table_name, v_banner VARCHAR(64) CHARSET utf8; DECLARE v_sql_status_summary_select, v_sql_status_summary_delta, v_sql_status_summary_from, v_no_delta_names TEXT; DECLARE v_output_time, v_output_time_prev DECIMAL(20,3) UNSIGNED; DECLARE v_output_count, v_count, v_old_group_concat_max_len INT UNSIGNED DEFAULT 0; DECLARE v_status_summary_width TINYINT UNSIGNED DEFAULT 50; DECLARE v_done BOOLEAN DEFAULT FALSE; DECLARE c_ndbinfo CURSOR FOR SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = \'ndbinfo\' AND TABLE_NAME NOT IN ( \'blocks\', \'config_params\', \'dict_obj_types\', \'disk_write_speed_base\', \'memory_per_fragment\', \'memoryusage\', \'operations_per_fragment\', \'threadblocks\' ); DECLARE c_sysviews_w_delta CURSOR FOR SELECT table_name FROM tmp_sys_views_delta ORDER BY table_name;  DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  SELECT INSTRUMENTED INTO v_this_thread_enabled FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); IF (v_this_thread_enabled = \'YES\') THEN CALL sys.ps_setup_disable_thread(CONNECTION_ID()); END IF;  IF (in_max_runtime < in_interval) THEN SIGNAL SQLSTATE \'45000\' SET MESSAGE_TEXT = \'in_max_runtime must be greater than or equal to in_interval\'; END IF; IF (in_max_runtime = 0) THEN SIGNAL SQLSTATE \'45000\' SET MESSAGE_TEXT = \'in_max_runtime must be greater than 0\'; END IF; IF (in_interval = 0) THEN SIGNAL SQLSTATE \'45000\' SET MESSAGE_TEXT = \'in_interval must be greater than 0\'; END IF;  IF (@sys.diagnostics.allow_i_s_tables IS NULL) THEN SET @sys.diagnostics.allow_i_s_tables = sys.sys_get_config(\'diagnostics.allow_i_s_tables\', \'OFF\'); END IF; IF (@sys.diagnostics.include_raw IS NULL) THEN SET @sys.diagnostics.include_raw      = sys.sys_get_config(\'diagnostics.include_raw\'     , \'OFF\'); END IF; IF (@sys.debug IS NULL) THEN SET @sys.debug                        = sys.sys_get_config(\'debug\'                       , \'OFF\'); END IF; IF (@sys.statement_truncate_len IS NULL) THEN SET @sys.statement_truncate_len       = sys.sys_get_config(\'statement_truncate_len\'      , \'64\' ); END IF;  SET @log_bin := @@sql_log_bin; IF (@log_bin = 1) THEN SET sql_log_bin = 0; END IF;  SET v_no_delta_names = CONCAT(\'s%{COUNT}.Variable_name NOT IN (\', \'\'\'innodb_buffer_pool_pages_total\'\', \', \'\'\'innodb_page_size\'\', \', \'\'\'last_query_cost\'\', \', \'\'\'last_query_partial_plans\'\', \', \'\'\'qcache_total_blocks\'\', \', \'\'\'slave_last_heartbeat\'\', \', \'\'\'ssl_ctx_verify_depth\'\', \', \'\'\'ssl_ctx_verify_mode\'\', \', \'\'\'ssl_session_cache_size\'\', \', \'\'\'ssl_verify_depth\'\', \', \'\'\'ssl_verify_mode\'\', \', \'\'\'ssl_version\'\', \', \'\'\'buffer_flush_lsn_avg_rate\'\', \', \'\'\'buffer_flush_pct_for_dirty\'\', \', \'\'\'buffer_flush_pct_for_lsn\'\', \', \'\'\'buffer_pool_pages_total\'\', \', \'\'\'lock_row_lock_time_avg\'\', \', \'\'\'lock_row_lock_time_max\'\', \', \'\'\'innodb_page_size\'\'\', \')\');  IF (in_auto_config <> \'current\') THEN IF (@sys.debug = \'ON\') THEN SELECT CONCAT(\'Updating Performance Schema configuration to \', in_auto_config) AS \'Debug\'; END IF; CALL sys.ps_setup_save(0);  IF (in_auto_config = \'medium\') THEN UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\' WHERE NAME NOT LIKE \'%\\_history%\';  UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED   = \'YES\' WHERE NAME NOT LIKE \'wait/synch/%\'; ELSEIF (in_auto_config = \'full\') THEN UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\';  UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED   = \'YES\'; END IF;  UPDATE performance_schema.threads SET INSTRUMENTED = \'YES\' WHERE PROCESSLIST_ID <> CONNECTION_ID(); END IF;  SET v_start        = UNIX_TIMESTAMP(NOW(2)), in_interval    = IFNULL(in_interval, 30), in_max_runtime = IFNULL(in_max_runtime, 60);  SET v_banner = REPEAT( \'-\', LEAST( GREATEST( 36, CHAR_LENGTH(VERSION()), CHAR_LENGTH(@@global.version_comment), CHAR_LENGTH(@@global.version_compile_os), CHAR_LENGTH(@@global.version_compile_machine), CHAR_LENGTH(@@global.socket), CHAR_LENGTH(@@global.datadir) ), 64 ) ); SELECT \'Hostname\' AS \'Name\', @@global.hostname AS \'Value\' UNION ALL SELECT \'Port\' AS \'Name\', @@global.port AS \'Value\' UNION ALL SELECT \'Socket\' AS \'Name\', @@global.socket AS \'Value\' UNION ALL SELECT \'Datadir\' AS \'Name\', @@global.datadir AS \'Value\' UNION ALL SELECT \'Server UUID\' AS \'Name\', @@global.server_uuid AS \'Value\' UNION ALL SELECT REPEAT(\'-\', 23) AS \'Name\', v_banner AS \'Value\' UNION ALL SELECT \'MySQL Version\' AS \'Name\', VERSION() AS \'Value\' UNION ALL SELECT \'Sys Schema Version\' AS \'Name\', (SELECT sys_version FROM sys.version) AS \'Value\' UNION ALL SELECT \'Version Comment\' AS \'Name\', @@global.version_comment AS \'Value\' UNION ALL SELECT \'Version Compile OS\' AS \'Name\', @@global.version_compile_os AS \'Value\' UNION ALL SELECT \'Version Compile Machine\' AS \'Name\', @@global.version_compile_machine AS \'Value\' UNION ALL SELECT REPEAT(\'-\', 23) AS \'Name\', v_banner AS \'Value\' UNION ALL SELECT \'UTC Time\' AS \'Name\', UTC_TIMESTAMP() AS \'Value\' UNION ALL SELECT \'Local Time\' AS \'Name\', NOW() AS \'Value\' UNION ALL SELECT \'Time Zone\' AS \'Name\', @@global.time_zone AS \'Value\' UNION ALL SELECT \'System Time Zone\' AS \'Name\', @@global.system_time_zone AS \'Value\' UNION ALL SELECT \'Time Zone Offset\' AS \'Name\', TIMEDIFF(NOW(), UTC_TIMESTAMP()) AS \'Value\';  SET v_has_innodb         = IFNULL((SELECT SUPPORT FROM information_schema.ENGINES WHERE ENGINE = \'InnoDB\'), \'NO\'), v_has_ndb            = IFNULL((SELECT SUPPORT FROM information_schema.ENGINES WHERE ENGINE = \'NDBCluster\'), \'NO\'), v_has_ps             = IFNULL((SELECT SUPPORT FROM information_schema.ENGINES WHERE ENGINE = \'PERFORMANCE_SCHEMA\'), \'NO\'), v_has_ps_replication = IF(v_has_ps = \'YES\' AND EXISTS(SELECT 1 FROM information_schema.TABLES WHERE TABLE_SCHEMA = \'performance_schema\' AND TABLE_NAME = \'replication_applier_status\'), \'YES\', \'NO\' ), v_has_replication    =  IF(v_has_ps_replication = \'YES\', IF((SELECT COUNT(*) FROM performance_schema.replication_connection_status) > 0, \'YES\', \'NO\'), IF(@@master_info_repository = \'TABLE\', IF((SELECT COUNT(*) FROM mysql.slave_master_info) > 0, \'YES\', \'NO\'), IF(@@relay_log_info_repository = \'TABLE\', IF((SELECT COUNT(*) FROM mysql.slave_relay_log_info) > 0, \'YES\', \'NO\'), \'MAYBE\')) ) , v_has_metrics        = IF(v_has_ps = \'YES\' OR (sys.version_major() = 5 AND sys.version_minor() = 6), \'YES\', \'NO\'), v_has_ps_vars        = \'NO\';   SET v_has_ps_vars = IF(@@global.show_compatibility_56, \'NO\', \'YES\');  SET v_has_ps_vars = \'YES\';  IF (@sys.debug = \'ON\') THEN SELECT v_has_innodb AS \'Has_InnoDB\', v_has_ndb AS \'Has_NDBCluster\', v_has_ps AS \'Has_Performance_Schema\', v_has_ps_vars AS \'Has_P_S_SHOW_Variables\', v_has_metrics AS \'Has_metrics\', v_has_ps_replication \'AS Has_P_S_Replication\', v_has_replication AS \'Has_Replication\'; END IF;  IF (v_has_innodb IN (\'DEFAULT\', \'YES\')) THEN SET @sys.diagnostics.sql = \'SHOW ENGINE InnoDB STATUS\'; PREPARE stmt_innodb_status FROM @sys.diagnostics.sql; END IF;  IF (v_has_ps = \'YES\') THEN SET @sys.diagnostics.sql = \'SHOW ENGINE PERFORMANCE_SCHEMA STATUS\'; PREPARE stmt_ps_status FROM @sys.diagnostics.sql; END IF;  IF (v_has_ndb IN (\'DEFAULT\', \'YES\')) THEN SET @sys.diagnostics.sql = \'SHOW ENGINE NDBCLUSTER STATUS\'; PREPARE stmt_ndbcluster_status FROM @sys.diagnostics.sql; END IF;  SET @sys.diagnostics.sql_gen_query_template = \'SELECT CONCAT( \'\'SELECT \'\', GROUP_CONCAT( CASE WHEN (SUBSTRING(TABLE_NAME, 3), COLUMN_NAME) IN ( (\'\'io_global_by_file_by_bytes\'\', \'\'total\'\'), (\'\'io_global_by_wait_by_bytes\'\', \'\'total_requested\'\') ) THEN CONCAT(\'\'sys.format_bytes(\'\', COLUMN_NAME, \'\') AS \'\', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -8) = \'\'_latency\'\' THEN CONCAT(\'\'sys.format_time(\'\', COLUMN_NAME, \'\') AS \'\', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -7) = \'\'_memory\'\' OR SUBSTRING(COLUMN_NAME, -17) = \'\'_memory_allocated\'\' OR ((SUBSTRING(COLUMN_NAME, -5) = \'\'_read\'\' OR SUBSTRING(COLUMN_NAME, -8) = \'\'_written\'\' OR SUBSTRING(COLUMN_NAME, -6) = \'\'_write\'\') AND SUBSTRING(COLUMN_NAME, 1, 6) <> \'\'COUNT_\'\') THEN CONCAT(\'\'sys.format_bytes(\'\', COLUMN_NAME, \'\') AS \'\', COLUMN_NAME) ELSE COLUMN_NAME END ORDER BY ORDINAL_POSITION SEPARATOR \'\',\\n       \'\' ), \'\'\\n  FROM tmp_\'\', SUBSTRING(TABLE_NAME FROM 3), \'\'_%{OUTPUT}\'\' ) AS Query INTO @sys.diagnostics.sql_select FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = \'\'sys\'\' AND TABLE_NAME = ? GROUP BY TABLE_NAME\';  SET @sys.diagnostics.sql_gen_query_delta = \'SELECT CONCAT( \'\'SELECT \'\', GROUP_CONCAT( CASE WHEN FIND_IN_SET(COLUMN_NAME, diag.pk) THEN COLUMN_NAME WHEN diag.TABLE_NAME = \'\'io_global_by_file_by_bytes\'\' AND COLUMN_NAME = \'\'write_pct\'\' THEN CONCAT(\'\'IFNULL(ROUND(100-(((e.total_read-IFNULL(s.total_read, 0))\'\', \'\'/NULLIF(((e.total_read-IFNULL(s.total_read, 0))+(e.total_written-IFNULL(s.total_written, 0))), 0))*100), 2), 0.00) AS \'\', COLUMN_NAME) WHEN (diag.TABLE_NAME, COLUMN_NAME) IN ( (\'\'io_global_by_file_by_bytes\'\', \'\'total\'\'), (\'\'io_global_by_wait_by_bytes\'\', \'\'total_requested\'\') ) THEN CONCAT(\'\'sys.format_bytes(e.\'\', COLUMN_NAME, \'\'-IFNULL(s.\'\', COLUMN_NAME, \'\', 0)) AS \'\', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, 1, 4) IN (\'\'max_\'\', \'\'min_\'\') AND SUBSTRING(COLUMN_NAME, -8) = \'\'_latency\'\' THEN CONCAT(\'\'sys.format_time(e.\'\', COLUMN_NAME, \'\') AS \'\', COLUMN_NAME) WHEN COLUMN_NAME = \'\'avg_latency\'\' THEN CONCAT(\'\'sys.format_time((e.total_latency - IFNULL(s.total_latency, 0))\'\', \'\'/NULLIF(e.total - IFNULL(s.total, 0), 0)) AS \'\', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -12) = \'\'_avg_latency\'\' THEN CONCAT(\'\'sys.format_time((e.\'\', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), \'\'_latency - IFNULL(s.\'\', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), \'\'_latency, 0))\'\', \'\'/NULLIF(e.\'\', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), \'\'s - IFNULL(s.\'\', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), \'\'s, 0), 0)) AS \'\', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -8) = \'\'_latency\'\' THEN CONCAT(\'\'sys.format_time(e.\'\', COLUMN_NAME, \'\' - IFNULL(s.\'\', COLUMN_NAME, \'\', 0)) AS \'\', COLUMN_NAME) WHEN COLUMN_NAME IN (\'\'avg_read\'\', \'\'avg_write\'\', \'\'avg_written\'\') THEN CONCAT(\'\'sys.format_bytes(IFNULL((e.total_\'\', IF(COLUMN_NAME = \'\'avg_read\'\', \'\'read\'\', \'\'written\'\'), \'\'-IFNULL(s.total_\'\', IF(COLUMN_NAME = \'\'avg_read\'\', \'\'read\'\', \'\'written\'\'), \'\', 0))\'\', \'\'/NULLIF(e.count_\'\', IF(COLUMN_NAME = \'\'avg_read\'\', \'\'read\'\', \'\'write\'\'), \'\'-IFNULL(s.count_\'\', IF(COLUMN_NAME = \'\'avg_read\'\', \'\'read\'\', \'\'write\'\'), \'\', 0), 0), 0)) AS \'\', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -7) = \'\'_memory\'\' OR SUBSTRING(COLUMN_NAME, -17) = \'\'_memory_allocated\'\' OR ((SUBSTRING(COLUMN_NAME, -5) = \'\'_read\'\' OR SUBSTRING(COLUMN_NAME, -8) = \'\'_written\'\' OR SUBSTRING(COLUMN_NAME, -6) = \'\'_write\'\') AND SUBSTRING(COLUMN_NAME, 1, 6) <> \'\'COUNT_\'\') THEN CONCAT(\'\'sys.format_bytes(e.\'\', COLUMN_NAME, \'\' - IFNULL(s.\'\', COLUMN_NAME, \'\', 0)) AS \'\', COLUMN_NAME) ELSE CONCAT(\'\'(e.\'\', COLUMN_NAME, \'\' - IFNULL(s.\'\', COLUMN_NAME, \'\', 0)) AS \'\', COLUMN_NAME) END ORDER BY ORDINAL_POSITION SEPARATOR \'\',\\n       \'\' ), \'\'\\n  FROM tmp_\'\', diag.TABLE_NAME, \'\'_end e LEFT OUTER JOIN tmp_\'\', diag.TABLE_NAME, \'\'_start s USING (\'\', diag.pk, \'\')\'\' ) AS Query INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta diag INNER JOIN information_schema.COLUMNS c ON c.TABLE_NAME = CONCAT(\'\'x$\'\', diag.TABLE_NAME) WHERE c.TABLE_SCHEMA = \'\'sys\'\' AND diag.TABLE_NAME = ? GROUP BY diag.TABLE_NAME\';  IF (v_has_ps = \'YES\') THEN DROP TEMPORARY TABLE IF EXISTS tmp_sys_views_delta; CREATE TEMPORARY TABLE tmp_sys_views_delta ( TABLE_NAME varchar(64) NOT NULL, order_by text COMMENT \'ORDER BY clause for the initial and overall views\', order_by_delta text COMMENT \'ORDER BY clause for the delta views\', where_delta text COMMENT \'WHERE clause to use for delta views to only include rows with a \"count\" > 0\', limit_rows int unsigned COMMENT \'The maximum number of rows to include for the view\', pk varchar(128) COMMENT \'Used with the FIND_IN_SET() function so use comma separated list without whitespace\', PRIMARY KEY (TABLE_NAME) );  IF (@sys.debug = \'ON\') THEN SELECT \'Populating tmp_sys_views_delta\' AS \'Debug\'; END IF; INSERT INTO tmp_sys_views_delta VALUES (\'host_summary\'                       , \'%{TABLE}.statement_latency DESC\', \'(e.statement_latency-IFNULL(s.statement_latency, 0)) DESC\', \'(e.statements - IFNULL(s.statements, 0)) > 0\', NULL, \'host\'), (\'host_summary_by_file_io\'            , \'%{TABLE}.io_latency DESC\', \'(e.io_latency-IFNULL(s.io_latency, 0)) DESC\', \'(e.ios - IFNULL(s.ios, 0)) > 0\', NULL, \'host\'), (\'host_summary_by_file_io_type\'       , \'%{TABLE}.host, %{TABLE}.total_latency DESC\', \'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'host,event_name\'), (\'host_summary_by_stages\'             , \'%{TABLE}.host, %{TABLE}.total_latency DESC\', \'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'host,event_name\'), (\'host_summary_by_statement_latency\'  , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'host\'), (\'host_summary_by_statement_type\'     , \'%{TABLE}.host, %{TABLE}.total_latency DESC\', \'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'host,statement\'), (\'io_by_thread_by_latency\'            , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user,thread_id,processlist_id\'), (\'io_global_by_file_by_bytes\'         , \'%{TABLE}.total DESC\', \'(e.total-IFNULL(s.total, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', 100, \'file\'), (\'io_global_by_file_by_latency\'       , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', 100, \'file\'), (\'io_global_by_wait_by_bytes\'         , \'%{TABLE}.total_requested DESC\', \'(e.total_requested-IFNULL(s.total_requested, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'event_name\'), (\'io_global_by_wait_by_latency\'       , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'event_name\'), (\'schema_index_statistics\'            , \'(%{TABLE}.select_latency+%{TABLE}.insert_latency+%{TABLE}.update_latency+%{TABLE}.delete_latency) DESC\', \'((e.select_latency+e.insert_latency+e.update_latency+e.delete_latency)-IFNULL(s.select_latency+s.insert_latency+s.update_latency+s.delete_latency, 0)) DESC\', \'((e.rows_selected+e.insert_latency+e.rows_updated+e.rows_deleted)-IFNULL(s.rows_selected+s.rows_inserted+s.rows_updated+s.rows_deleted, 0)) > 0\', 100, \'table_schema,table_name,index_name\'), (\'schema_table_statistics\'            , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) > 0\', 100, \'table_schema,table_name\'), (\'schema_tables_with_full_table_scans\', \'%{TABLE}.rows_full_scanned DESC\', \'(e.rows_full_scanned-IFNULL(s.rows_full_scanned, 0)) DESC\', \'(e.rows_full_scanned-IFNULL(s.rows_full_scanned, 0)) > 0\', 100, \'object_schema,object_name\'), (\'user_summary\'                       , \'%{TABLE}.statement_latency DESC\', \'(e.statement_latency-IFNULL(s.statement_latency, 0)) DESC\', \'(e.statements - IFNULL(s.statements, 0)) > 0\', NULL, \'user\'), (\'user_summary_by_file_io\'            , \'%{TABLE}.io_latency DESC\', \'(e.io_latency-IFNULL(s.io_latency, 0)) DESC\', \'(e.ios - IFNULL(s.ios, 0)) > 0\', NULL, \'user\'), (\'user_summary_by_file_io_type\'       , \'%{TABLE}.user, %{TABLE}.latency DESC\', \'e.user, (e.latency-IFNULL(s.latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user,event_name\'), (\'user_summary_by_stages\'             , \'%{TABLE}.user, %{TABLE}.total_latency DESC\', \'e.user, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user,event_name\'), (\'user_summary_by_statement_latency\'  , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user\'), (\'user_summary_by_statement_type\'     , \'%{TABLE}.user, %{TABLE}.total_latency DESC\', \'e.user, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user,statement\'), (\'wait_classes_global_by_avg_latency\' , \'IFNULL(%{TABLE}.total_latency / NULLIF(%{TABLE}.total, 0), 0) DESC\', \'IFNULL((e.total_latency-IFNULL(s.total_latency, 0)) / NULLIF((e.total - IFNULL(s.total, 0)), 0), 0) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'event_class\'), (\'wait_classes_global_by_latency\'     , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'event_class\'), (\'waits_by_host_by_latency\'           , \'%{TABLE}.host, %{TABLE}.total_latency DESC\', \'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'host,event\'), (\'waits_by_user_by_latency\'           , \'%{TABLE}.user, %{TABLE}.total_latency DESC\', \'e.user, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user,event\'), (\'waits_global_by_latency\'            , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'events\') ; END IF;   SELECT \'  =======================  Configuration  =======================  \' AS \'\'; SELECT \'GLOBAL VARIABLES\' AS \'The following output is:\'; IF (v_has_ps_vars = \'YES\') THEN SELECT LOWER(VARIABLE_NAME) AS Variable_name, VARIABLE_VALUE AS Variable_value FROM performance_schema.global_variables ORDER BY VARIABLE_NAME; ELSE SELECT LOWER(VARIABLE_NAME) AS Variable_name, VARIABLE_VALUE AS Variable_value FROM information_schema.GLOBAL_VARIABLES ORDER BY VARIABLE_NAME; END IF;  IF (v_has_ps = \'YES\') THEN SELECT \'Performance Schema Setup - Actors\' AS \'The following output is:\'; SELECT * FROM performance_schema.setup_actors;  SELECT \'Performance Schema Setup - Consumers\' AS \'The following output is:\'; SELECT NAME AS Consumer, ENABLED, sys.ps_is_consumer_enabled(NAME) AS COLLECTS FROM performance_schema.setup_consumers;  SELECT \'Performance Schema Setup - Instruments\' AS \'The following output is:\'; SELECT SUBSTRING_INDEX(NAME, \'/\', 2) AS \'InstrumentClass\', ROUND(100*SUM(IF(ENABLED = \'YES\', 1, 0))/COUNT(*), 2) AS \'EnabledPct\', ROUND(100*SUM(IF(TIMED = \'YES\', 1, 0))/COUNT(*), 2) AS \'TimedPct\' FROM performance_schema.setup_instruments GROUP BY SUBSTRING_INDEX(NAME, \'/\', 2) ORDER BY SUBSTRING_INDEX(NAME, \'/\', 2);  SELECT \'Performance Schema Setup - Objects\' AS \'The following output is:\'; SELECT * FROM performance_schema.setup_objects;  SELECT \'Performance Schema Setup - Threads\' AS \'The following output is:\'; SELECT `TYPE` AS ThreadType, COUNT(*) AS \'Total\', ROUND(100*SUM(IF(INSTRUMENTED = \'YES\', 1, 0))/COUNT(*), 2) AS \'InstrumentedPct\' FROM performance_schema.threads GROUP BY TYPE; END IF;   IF (v_has_replication = \'NO\') THEN SELECT \'No Replication Configured\' AS \'Replication Status\'; ELSE SELECT CONCAT(\'Replication Configured: \', v_has_replication, \' - Performance Schema Replication Tables: \', v_has_ps_replication) AS \'Replication Status\';  IF (v_has_ps_replication = \'YES\') THEN SELECT \'Replication - Connection Configuration\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_connection_configuration ORDER BY CHANNEL_NAME ; END IF;  IF (v_has_ps_replication = \'YES\') THEN SELECT \'Replication - Applier Configuration\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_applier_configuration ORDER BY CHANNEL_NAME; END IF;  IF (@@master_info_repository = \'TABLE\') THEN SELECT \'Replication - Master Info Repository Configuration\' AS \'The following output is:\'; SELECT  Channel_name, Host, User_name, Port, Connect_retry, Enabled_ssl, Ssl_ca, Ssl_capath, Ssl_cert, Ssl_cipher, Ssl_key, Ssl_verify_server_cert, Heartbeat, Bind, Ignored_server_ids, Uuid, Retry_count, Ssl_crl, Ssl_crlpath, Tls_version, Enabled_auto_position FROM mysql.slave_master_info ORDER BY Channel_name ; END IF;  IF (@@relay_log_info_repository = \'TABLE\') THEN SELECT \'Replication - Relay Log Repository Configuration\' AS \'The following output is:\'; SELECT  Channel_name, Sql_delay, Number_of_workers, Id FROM mysql.slave_relay_log_info ORDER BY Channel_name ; END IF; END IF;   IF (v_has_ndb IN (\'DEFAULT\', \'YES\')) THEN SELECT \'Cluster Thread Blocks\' AS \'The following output is:\'; SELECT * FROM ndbinfo.threadblocks; END IF;  IF (v_has_ps = \'YES\') THEN IF (@sys.diagnostics.include_raw = \'ON\') THEN SELECT \'  ========================  Initial Status  ========================  \' AS \'\'; END IF;  DROP TEMPORARY TABLE IF EXISTS tmp_digests_start; CALL sys.statement_performance_analyzer(\'create_tmp\', \'tmp_digests_start\', NULL); CALL sys.statement_performance_analyzer(\'snapshot\', NULL, NULL); CALL sys.statement_performance_analyzer(\'save\', \'tmp_digests_start\', NULL);  IF (@sys.diagnostics.include_raw = \'ON\') THEN SET @sys.diagnostics.sql = REPLACE(@sys.diagnostics.sql_gen_query_template, \'%{OUTPUT}\', \'start\'); IF (@sys.debug = \'ON\') THEN SELECT \'The following query will be used to generate the query for each sys view\' AS \'Debug\'; SELECT @sys.diagnostics.sql AS \'Debug\'; END IF; PREPARE stmt_gen_query FROM @sys.diagnostics.sql; END IF; SET v_done = FALSE; OPEN c_sysviews_w_delta; c_sysviews_w_delta_loop: LOOP FETCH c_sysviews_w_delta INTO v_table_name; IF v_done THEN LEAVE c_sysviews_w_delta_loop; END IF;  IF (@sys.debug = \'ON\') THEN SELECT CONCAT(\'The following queries are for storing the initial content of \', v_table_name) AS \'Debug\'; END IF;  CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE IF EXISTS `tmp_\', v_table_name, \'_start`\')); CALL sys.execute_prepared_stmt(CONCAT(\'CREATE TEMPORARY TABLE `tmp_\', v_table_name, \'_start` SELECT * FROM `sys`.`x$\', v_table_name, \'`\'));  IF (@sys.diagnostics.include_raw = \'ON\') THEN SET @sys.diagnostics.table_name = CONCAT(\'x$\', v_table_name); EXECUTE stmt_gen_query USING @sys.diagnostics.table_name; SELECT CONCAT(@sys.diagnostics.sql_select, IF(order_by IS NOT NULL, CONCAT(\'\\n ORDER BY \', REPLACE(order_by, \'%{TABLE}\', CONCAT(\'tmp_\', v_table_name, \'_start\'))), \'\'), IF(limit_rows IS NOT NULL, CONCAT(\'\\n LIMIT \', limit_rows), \'\') ) INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta WHERE TABLE_NAME = v_table_name; SELECT CONCAT(\'Initial \', v_table_name) AS \'The following output is:\'; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql_select); END IF; END LOOP; CLOSE c_sysviews_w_delta;  IF (@sys.diagnostics.include_raw = \'ON\') THEN DEALLOCATE PREPARE stmt_gen_query; END IF; END IF;  SET v_sql_status_summary_select = \'SELECT Variable_name\', v_sql_status_summary_delta  = \'\', v_sql_status_summary_from   = \'\';  REPEAT  SET v_output_count = v_output_count + 1; IF (v_output_count > 1) THEN SET v_sleep = in_interval-(UNIX_TIMESTAMP(NOW(2))-v_iter_start); SELECT NOW() AS \'Time\', CONCAT(\'Going to sleep for \', v_sleep, \' seconds. Please do not interrupt\') AS \'The following output is:\'; DO SLEEP(in_interval); END IF; SET v_iter_start = UNIX_TIMESTAMP(NOW(2));  SELECT NOW(), CONCAT(\'Iteration Number \', IFNULL(v_output_count, \'NULL\')) AS \'The following output is:\';  IF (@@log_bin = 1) THEN SELECT \'SHOW MASTER STATUS\' AS \'The following output is:\'; SHOW MASTER STATUS; END IF;  IF (v_has_replication <> \'NO\') THEN SELECT \'SHOW SLAVE STATUS\' AS \'The following output is:\'; SHOW SLAVE STATUS;  IF (v_has_ps_replication = \'YES\') THEN SELECT \'Replication Connection Status\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_connection_status;  SELECT \'Replication Applier Status\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_applier_status ORDER BY CHANNEL_NAME;  SELECT \'Replication Applier Status - Coordinator\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_applier_status_by_coordinator ORDER BY CHANNEL_NAME;  SELECT \'Replication Applier Status - Worker\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_applier_status_by_worker ORDER BY CHANNEL_NAME, WORKER_ID; END IF;  IF (@@master_info_repository = \'TABLE\') THEN SELECT \'Replication - Master Log Status\' AS \'The following output is:\'; SELECT Master_log_name, Master_log_pos FROM mysql.slave_master_info; END IF;  IF (@@relay_log_info_repository = \'TABLE\') THEN SELECT \'Replication - Relay Log Status\' AS \'The following output is:\'; SELECT sys.format_path(Relay_log_name) AS Relay_log_name, Relay_log_pos, Master_log_name, Master_log_pos FROM mysql.slave_relay_log_info;  SELECT \'Replication - Worker Status\' AS \'The following output is:\'; SELECT Id, sys.format_path(Relay_log_name) AS Relay_log_name, Relay_log_pos, Master_log_name, Master_log_pos, sys.format_path(Checkpoint_relay_log_name) AS Checkpoint_relay_log_name, Checkpoint_relay_log_pos, Checkpoint_master_log_name, Checkpoint_master_log_pos, Checkpoint_seqno, Checkpoint_group_size, HEX(Checkpoint_group_bitmap) AS Checkpoint_group_bitmap , Channel_name FROM mysql.slave_worker_info ORDER BY  Channel_name, Id; END IF; END IF;  SET v_table_name = CONCAT(\'tmp_metrics_\', v_output_count); CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE IF EXISTS \', v_table_name));  CALL sys.execute_prepared_stmt(CONCAT(\'CREATE TEMPORARY TABLE \', v_table_name, \' ( Variable_name VARCHAR(193) NOT NULL, Variable_value VARCHAR(1024), Type VARCHAR(225) NOT NULL, Enabled ENUM(\'\'YES\'\', \'\'NO\'\', \'\'PARTIAL\'\') NOT NULL, PRIMARY KEY (Type, Variable_name) ) ENGINE = InnoDB DEFAULT CHARSET=utf8\'));  IF (v_has_metrics) THEN SET @sys.diagnostics.sql = CONCAT( \'INSERT INTO \', v_table_name, \' SELECT Variable_name, REPLACE(Variable_value, \'\'\\n\'\', \'\'\\\\\\\\n\'\') AS Variable_value, Type, Enabled FROM sys.metrics\' ); ELSE SET @sys.diagnostics.sql = CONCAT( \'INSERT INTO \', v_table_name, \'(SELECT LOWER(VARIABLE_NAME) AS Variable_name, REPLACE(VARIABLE_VALUE, \'\'\\n\'\', \'\'\\\\\\\\n\'\') AS Variable_value, \'\'Global Status\'\' AS Type, \'\'YES\'\' AS Enabled FROM performance_schema.global_status ) UNION ALL ( SELECT NAME AS Variable_name, COUNT AS Variable_value, CONCAT(\'\'InnoDB Metrics - \'\', SUBSYSTEM) AS Type, IF(STATUS = \'\'enabled\'\', \'\'YES\'\', \'\'NO\'\') AS Enabled FROM information_schema.INNODB_METRICS WHERE NAME NOT IN ( \'\'lock_row_lock_time\'\', \'\'lock_row_lock_time_avg\'\', \'\'lock_row_lock_time_max\'\', \'\'lock_row_lock_waits\'\', \'\'buffer_pool_reads\'\', \'\'buffer_pool_read_requests\'\', \'\'buffer_pool_write_requests\'\', \'\'buffer_pool_wait_free\'\', \'\'buffer_pool_read_ahead\'\', \'\'buffer_pool_read_ahead_evicted\'\', \'\'buffer_pool_pages_total\'\', \'\'buffer_pool_pages_misc\'\', \'\'buffer_pool_pages_data\'\', \'\'buffer_pool_bytes_data\'\', \'\'buffer_pool_pages_dirty\'\', \'\'buffer_pool_bytes_dirty\'\', \'\'buffer_pool_pages_free\'\', \'\'buffer_pages_created\'\', \'\'buffer_pages_written\'\', \'\'buffer_pages_read\'\', \'\'buffer_data_reads\'\', \'\'buffer_data_written\'\', \'\'file_num_open_files\'\', \'\'os_log_bytes_written\'\', \'\'os_log_fsyncs\'\', \'\'os_log_pending_fsyncs\'\', \'\'os_log_pending_writes\'\', \'\'log_waits\'\', \'\'log_write_requests\'\', \'\'log_writes\'\', \'\'innodb_dblwr_writes\'\', \'\'innodb_dblwr_pages_written\'\', \'\'innodb_page_size\'\') ) UNION ALL ( SELECT \'\'NOW()\'\' AS Variable_name, NOW(3) AS Variable_value, \'\'System Time\'\' AS Type, \'\'YES\'\' AS Enabled ) UNION ALL ( SELECT \'\'UNIX_TIMESTAMP()\'\' AS Variable_name, ROUND(UNIX_TIMESTAMP(NOW(3)), 3) AS Variable_value, \'\'System Time\'\' AS Type, \'\'YES\'\' AS Enabled ) ORDER BY Type, Variable_name;\' ); END IF; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql);  CALL sys.execute_prepared_stmt( CONCAT(\'(SELECT Variable_value INTO @sys.diagnostics.output_time FROM \', v_table_name, \' WHERE Type = \'\'System Time\'\' AND Variable_name = \'\'UNIX_TIMESTAMP()\'\')\') ); SET v_output_time = @sys.diagnostics.output_time;  SET v_sql_status_summary_select = CONCAT(v_sql_status_summary_select, \', CONCAT( LEFT(s\', v_output_count, \'.Variable_value, \', v_status_summary_width, \'), IF(\', REPLACE(v_no_delta_names, \'%{COUNT}\', v_output_count), \' AND s\', v_output_count, \'.Variable_value REGEXP \'\'^[0-9]+(\\\\\\\\.[0-9]+)?$\'\', CONCAT(\'\' (\'\', ROUND(s\', v_output_count, \'.Variable_value/\', v_output_time, \', 2), \'\'/sec)\'\'), \'\'\'\') ) AS \'\'Output \', v_output_count, \'\'\'\'), v_sql_status_summary_from   = CONCAT(v_sql_status_summary_from, \' \', IF(v_output_count = 1, \'  FROM \', \'       INNER JOIN \'), v_table_name, \' s\', v_output_count, IF (v_output_count = 1, \'\', \' USING (Type, Variable_name)\')); IF (v_output_count > 1) THEN SET v_sql_status_summary_delta  = CONCAT(v_sql_status_summary_delta, \', IF(\', REPLACE(v_no_delta_names, \'%{COUNT}\', v_output_count), \' AND s\', (v_output_count-1), \'.Variable_value REGEXP \'\'^[0-9]+(\\\\\\\\.[0-9]+)?$\'\' AND s\', v_output_count, \'.Variable_value REGEXP \'\'^[0-9]+(\\\\\\\\.[0-9]+)?$\'\', CONCAT(IF(s\', (v_output_count-1), \'.Variable_value REGEXP \'\'^[0-9]+\\\\\\\\.[0-9]+$\'\' OR s\', v_output_count, \'.Variable_value REGEXP \'\'^[0-9]+\\\\\\\\.[0-9]+$\'\', ROUND((s\', v_output_count, \'.Variable_value-s\', (v_output_count-1), \'.Variable_value), 2), (s\', v_output_count, \'.Variable_value-s\', (v_output_count-1), \'.Variable_value) ), \'\' (\'\', ROUND((s\', v_output_count, \'.Variable_value-s\', (v_output_count-1), \'.Variable_value)/(\', v_output_time, \'-\', v_output_time_prev, \'), 2), \'\'/sec)\'\' ), \'\'\'\' ) AS \'\'Delta (\', (v_output_count-1), \' -> \', v_output_count, \')\'\'\'); END IF;  SET v_output_time_prev = v_output_time;  IF (@sys.diagnostics.include_raw = \'ON\') THEN IF (v_has_metrics) THEN SELECT \'SELECT * FROM sys.metrics\' AS \'The following output is:\'; ELSE SELECT \'sys.metrics equivalent\' AS \'The following output is:\'; END IF; CALL sys.execute_prepared_stmt(CONCAT(\'SELECT Type, Variable_name, Enabled, Variable_value FROM \', v_table_name, \' ORDER BY Type, Variable_name\')); END IF;  IF (v_has_innodb IN (\'DEFAULT\', \'YES\')) THEN SELECT \'SHOW ENGINE INNODB STATUS\' AS \'The following output is:\'; EXECUTE stmt_innodb_status; SELECT \'InnoDB - Transactions\' AS \'The following output is:\'; SELECT * FROM information_schema.INNODB_TRX; END IF;  IF (v_has_ndb IN (\'DEFAULT\', \'YES\')) THEN SELECT \'SHOW ENGINE NDBCLUSTER STATUS\' AS \'The following output is:\'; EXECUTE stmt_ndbcluster_status;  SELECT \'ndbinfo.memoryusage\' AS \'The following output is:\'; SELECT node_id, memory_type, sys.format_bytes(used) AS used, used_pages, sys.format_bytes(total) AS total, total_pages, ROUND(100*(used/total), 2) AS \'Used %\' FROM ndbinfo.memoryusage;  SET v_done = FALSE; OPEN c_ndbinfo; c_ndbinfo_loop: LOOP FETCH c_ndbinfo INTO v_table_name; IF v_done THEN LEAVE c_ndbinfo_loop; END IF;  SELECT CONCAT(\'SELECT * FROM ndbinfo.\', v_table_name) AS \'The following output is:\'; CALL sys.execute_prepared_stmt(CONCAT(\'SELECT * FROM `ndbinfo`.`\', v_table_name, \'`\')); END LOOP; CLOSE c_ndbinfo;  SELECT * FROM information_schema.FILES; END IF;  SELECT \'SELECT * FROM sys.processlist\' AS \'The following output is:\'; SELECT processlist.* FROM sys.processlist;  IF (v_has_ps = \'YES\') THEN IF (sys.ps_is_consumer_enabled(\'events_waits_history_long\') = \'YES\') THEN SELECT \'SELECT * FROM sys.latest_file_io\' AS \'The following output is:\'; SELECT * FROM sys.latest_file_io; END IF;  IF (EXISTS(SELECT 1 FROM performance_schema.setup_instruments WHERE NAME LIKE \'memory/%\' AND ENABLED = \'YES\')) THEN SELECT \'SELECT * FROM sys.memory_by_host_by_current_bytes\' AS \'The following output is:\'; SELECT * FROM sys.memory_by_host_by_current_bytes;  SELECT \'SELECT * FROM sys.memory_by_thread_by_current_bytes\' AS \'The following output is:\'; SELECT * FROM sys.memory_by_thread_by_current_bytes;  SELECT \'SELECT * FROM sys.memory_by_user_by_current_bytes\' AS \'The following output is:\'; SELECT * FROM sys.memory_by_user_by_current_bytes;  SELECT \'SELECT * FROM sys.memory_global_by_current_bytes\' AS \'The following output is:\'; SELECT * FROM sys.memory_global_by_current_bytes; END IF; END IF;  SET v_runtime = (UNIX_TIMESTAMP(NOW(2)) - v_start); UNTIL (v_runtime + in_interval >= in_max_runtime) END REPEAT;  IF (v_has_ps = \'YES\') THEN SELECT \'SHOW ENGINE PERFORMANCE_SCHEMA STATUS\' AS \'The following output is:\'; EXECUTE stmt_ps_status; END IF;  IF (v_has_innodb IN (\'DEFAULT\', \'YES\')) THEN DEALLOCATE PREPARE stmt_innodb_status; END IF; IF (v_has_ps = \'YES\') THEN DEALLOCATE PREPARE stmt_ps_status; END IF; IF (v_has_ndb IN (\'DEFAULT\', \'YES\')) THEN DEALLOCATE PREPARE stmt_ndbcluster_status; END IF;   SELECT \'  ============================  Schema Information  ============================  \' AS \'\';  SELECT COUNT(*) AS \'Total Number of Tables\' FROM information_schema.TABLES;  IF (@sys.diagnostics.allow_i_s_tables = \'ON\') THEN SELECT \'Storage Engine Usage\' AS \'The following output is:\'; SELECT ENGINE, COUNT(*) AS NUM_TABLES, sys.format_bytes(SUM(DATA_LENGTH)) AS DATA_LENGTH, sys.format_bytes(SUM(INDEX_LENGTH)) AS INDEX_LENGTH, sys.format_bytes(SUM(DATA_LENGTH+INDEX_LENGTH)) AS TOTAL FROM information_schema.TABLES GROUP BY ENGINE;  SELECT \'Schema Object Overview\' AS \'The following output is:\'; SELECT * FROM sys.schema_object_overview;  SELECT \'Tables without a PRIMARY KEY\' AS \'The following output is:\'; SELECT TABLES.TABLE_SCHEMA, ENGINE, COUNT(*) AS NumTables FROM information_schema.TABLES LEFT OUTER JOIN information_schema.STATISTICS ON STATISTICS.TABLE_SCHEMA = TABLES.TABLE_SCHEMA AND STATISTICS.TABLE_NAME = TABLES.TABLE_NAME AND STATISTICS.INDEX_NAME = \'PRIMARY\' WHERE STATISTICS.TABLE_NAME IS NULL AND TABLES.TABLE_SCHEMA NOT IN (\'mysql\', \'information_schema\', \'performance_schema\', \'sys\') AND TABLES.TABLE_TYPE = \'BASE TABLE\' GROUP BY TABLES.TABLE_SCHEMA, ENGINE; END IF;  IF (v_has_ps = \'YES\') THEN SELECT \'Unused Indexes\' AS \'The following output is:\'; SELECT object_schema, COUNT(*) AS NumUnusedIndexes FROM performance_schema.table_io_waits_summary_by_index_usage  WHERE index_name IS NOT NULL AND count_star = 0 AND object_schema NOT IN (\'mysql\', \'sys\') AND index_name != \'PRIMARY\' GROUP BY object_schema; END IF;  IF (v_has_ps = \'YES\') THEN SELECT \'  =========================  Overall Status  =========================  \' AS \'\';  SELECT \'CALL sys.ps_statement_avg_latency_histogram()\' AS \'The following output is:\'; CALL sys.ps_statement_avg_latency_histogram();  CALL sys.statement_performance_analyzer(\'snapshot\', NULL, NULL); CALL sys.statement_performance_analyzer(\'overall\', NULL, \'with_runtimes_in_95th_percentile\');  SET @sys.diagnostics.sql = REPLACE(@sys.diagnostics.sql_gen_query_template, \'%{OUTPUT}\', \'end\'); IF (@sys.debug = \'ON\') THEN SELECT \'The following query will be used to generate the query for each sys view\' AS \'Debug\'; SELECT @sys.diagnostics.sql AS \'Debug\'; END IF; PREPARE stmt_gen_query FROM @sys.diagnostics.sql;  SET v_done = FALSE; OPEN c_sysviews_w_delta; c_sysviews_w_delta_loop: LOOP FETCH c_sysviews_w_delta INTO v_table_name; IF v_done THEN LEAVE c_sysviews_w_delta_loop; END IF;  IF (@sys.debug = \'ON\') THEN SELECT CONCAT(\'The following queries are for storing the final content of \', v_table_name) AS \'Debug\'; END IF;  CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE IF EXISTS `tmp_\', v_table_name, \'_end`\')); CALL sys.execute_prepared_stmt(CONCAT(\'CREATE TEMPORARY TABLE `tmp_\', v_table_name, \'_end` SELECT * FROM `sys`.`x$\', v_table_name, \'`\'));  IF (@sys.diagnostics.include_raw = \'ON\') THEN SET @sys.diagnostics.table_name = CONCAT(\'x$\', v_table_name); EXECUTE stmt_gen_query USING @sys.diagnostics.table_name; SELECT CONCAT(@sys.diagnostics.sql_select, IF(order_by IS NOT NULL, CONCAT(\'\\n ORDER BY \', REPLACE(order_by, \'%{TABLE}\', CONCAT(\'tmp_\', v_table_name, \'_end\'))), \'\'), IF(limit_rows IS NOT NULL, CONCAT(\'\\n LIMIT \', limit_rows), \'\') ) INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta WHERE TABLE_NAME = v_table_name; SELECT CONCAT(\'Overall \', v_table_name) AS \'The following output is:\'; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql_select); END IF; END LOOP; CLOSE c_sysviews_w_delta;  DEALLOCATE PREPARE stmt_gen_query;   SELECT \'  ======================  Delta Status  ======================  \' AS \'\';  CALL sys.statement_performance_analyzer(\'delta\', \'tmp_digests_start\', \'with_runtimes_in_95th_percentile\'); CALL sys.statement_performance_analyzer(\'cleanup\', NULL, NULL);  DROP TEMPORARY TABLE tmp_digests_start;  IF (@sys.debug = \'ON\') THEN SELECT \'The following query will be used to generate the query for each sys view delta\' AS \'Debug\'; SELECT @sys.diagnostics.sql_gen_query_delta AS \'Debug\'; END IF; PREPARE stmt_gen_query_delta FROM @sys.diagnostics.sql_gen_query_delta;  SET v_old_group_concat_max_len = @@session.group_concat_max_len; SET @@session.group_concat_max_len = 2048; SET v_done = FALSE; OPEN c_sysviews_w_delta; c_sysviews_w_delta_loop: LOOP FETCH c_sysviews_w_delta INTO v_table_name; IF v_done THEN LEAVE c_sysviews_w_delta_loop; END IF;  SET @sys.diagnostics.table_name = v_table_name; EXECUTE stmt_gen_query_delta USING @sys.diagnostics.table_name; SELECT CONCAT(@sys.diagnostics.sql_select, IF(where_delta IS NOT NULL, CONCAT(\'\\n WHERE \', where_delta), \'\'), IF(order_by_delta IS NOT NULL, CONCAT(\'\\n ORDER BY \', order_by_delta), \'\'), IF(limit_rows IS NOT NULL, CONCAT(\'\\n LIMIT \', limit_rows), \'\') ) INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta WHERE TABLE_NAME = v_table_name;  SELECT CONCAT(\'Delta \', v_table_name) AS \'The following output is:\'; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql_select);  CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE `tmp_\', v_table_name, \'_end`\')); CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE `tmp_\', v_table_name, \'_start`\')); END LOOP; CLOSE c_sysviews_w_delta; SET @@session.group_concat_max_len = v_old_group_concat_max_len;  DEALLOCATE PREPARE stmt_gen_query_delta; DROP TEMPORARY TABLE tmp_sys_views_delta; END IF;  IF (v_has_metrics) THEN SELECT \'SELECT * FROM sys.metrics\' AS \'The following output is:\'; ELSE SELECT \'sys.metrics equivalent\' AS \'The following output is:\'; END IF; CALL sys.execute_prepared_stmt( CONCAT(v_sql_status_summary_select, v_sql_status_summary_delta, \', Type, s1.Enabled\', v_sql_status_summary_from, \' ORDER BY Type, Variable_name\' ) );  SET v_count = 0; WHILE (v_count < v_output_count) DO SET v_count = v_count + 1; SET v_table_name = CONCAT(\'tmp_metrics_\', v_count); CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE IF EXISTS \', v_table_name)); END WHILE;  IF (in_auto_config <> \'current\') THEN CALL sys.ps_setup_reload_saved(); SET sql_log_bin = @log_bin; END IF;  SET @sys.diagnostics.output_time            = NULL, @sys.diagnostics.sql                    = NULL, @sys.diagnostics.sql_gen_query_delta    = NULL, @sys.diagnostics.sql_gen_query_template = NULL, @sys.diagnostics.sql_select             = NULL, @sys.diagnostics.table_name             = NULL;  IF (v_this_thread_enabled = \'YES\') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF;  IF (@log_bin = 1) THEN SET sql_log_bin = @log_bin; END IF; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Create a report of the current status of the server for diagnostics purposes. Data collected includes (some items depends on versions and settings):\n \n * The GLOBAL VARIABLES\n * Several sys schema views including metrics or equivalent (depending on version and settings)\n * Queries in the 95th percentile\n * Several ndbinfo views for MySQL Cluster\n * Replication (both master and slave) information.\n \n Some of the sys schema views are calculated as initial (optional), overall, delta:\n \n * The initial view is the content of the view at the start of this procedure.\n This output will be the same as the the start values used for the delta view.\n The initial view is included if @sys.diagnostics.include_raw = \'ON\'.\n * The overall view is the content of the view at the end of this procedure.\n This output is the same as the end values used for the delta view.\n The overall view is always included.\n * The delta view is the difference from the beginning to the end. Note that for min and max values\n they are simply the min or max value from the end view respectively, so does not necessarily reflect\n the minimum/maximum value in the monitored period.\n Note: except for the metrics views the delta is only calculation between the first and last outputs.\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Versions supported:\n * MySQL 5.6: 5.6.10 and later\n * MySQL 5.7: 5.7.9 and later\n \n Parameters\n \n in_max_runtime (INT UNSIGNED):\n The maximum time to keep collecting data.\n Use NULL to get the default which is 60 seconds, otherwise enter a value greater than 0.\n in_interval (INT UNSIGNED):\n How long to sleep between data collections.\n Use NULL to get the default which is 30 seconds, otherwise enter a value greater than 0.\n in_auto_config (ENUM(\'current\', \'medium\', \'full\'))\n Automatically enable Performance Schema instruments and consumers.\n NOTE: The more that are enabled, the more impact on the performance.\n Supported values are:\n * current - use the current settings.\n * medium - enable some settings.\n * full - enables all settings. This will have a big impact on the\n performance - be careful using this option.\n If another setting the \'current\' is chosen, the current settings\n are restored at the end of the procedure.\n \n \n Configuration Options\n \n sys.diagnostics.allow_i_s_tables\n Specifies whether it is allowed to do table scan queries on information_schema.TABLES. This can be expensive if there\n are many tables. Set to \'ON\' to allow, \'OFF\' to not allow.\n Default is \'OFF\'.\n \n sys.diagnostics.include_raw\n Set to \'ON\' to include the raw data (e.g. the original output of \"SELECT * FROM sys.metrics\").\n Use this to get the initial values of the various views.\n Default is \'OFF\'.\n \n sys.statement_truncate_len\n How much of queries in the process list output to include.\n Default is 64.\n \n sys.debug\n Whether to provide debugging output.\n Default is \'OFF\'. Set to \'ON\' to include.\n \n \n Example\n \n To create a report and append it to the file diag.out:\n \n mysql> TEE diag.out;\n mysql> CALL sys.diagnostics(120, 30, \'current\');\n ...\n mysql> NOTEE;\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_start, v_runtime, v_iter_start, v_sleep DECIMAL(20,2) DEFAULT 0.0; DECLARE v_has_innodb, v_has_ndb, v_has_ps, v_has_replication, v_has_ps_replication VARCHAR(8) CHARSET utf8 DEFAULT \'NO\'; DECLARE v_this_thread_enabled, v_has_ps_vars, v_has_metrics ENUM(\'YES\', \'NO\'); DECLARE v_table_name, v_banner VARCHAR(64) CHARSET utf8; DECLARE v_sql_status_summary_select, v_sql_status_summary_delta, v_sql_status_summary_from, v_no_delta_names TEXT; DECLARE v_output_time, v_output_time_prev DECIMAL(20,3) UNSIGNED; DECLARE v_output_count, v_count, v_old_group_concat_max_len INT UNSIGNED DEFAULT 0; DECLARE v_status_summary_width TINYINT UNSIGNED DEFAULT 50; DECLARE v_done BOOLEAN DEFAULT FALSE; DECLARE c_ndbinfo CURSOR FOR SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = \'ndbinfo\' AND TABLE_NAME NOT IN ( \'blocks\', \'config_params\', \'dict_obj_types\', \'disk_write_speed_base\', \'memory_per_fragment\', \'memoryusage\', \'operations_per_fragment\', \'threadblocks\' ); DECLARE c_sysviews_w_delta CURSOR FOR SELECT table_name FROM tmp_sys_views_delta ORDER BY table_name;  DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  SELECT INSTRUMENTED INTO v_this_thread_enabled FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); IF (v_this_thread_enabled = \'YES\') THEN CALL sys.ps_setup_disable_thread(CONNECTION_ID()); END IF;  IF (in_max_runtime < in_interval) THEN SIGNAL SQLSTATE \'45000\' SET MESSAGE_TEXT = \'in_max_runtime must be greater than or equal to in_interval\'; END IF; IF (in_max_runtime = 0) THEN SIGNAL SQLSTATE \'45000\' SET MESSAGE_TEXT = \'in_max_runtime must be greater than 0\'; END IF; IF (in_interval = 0) THEN SIGNAL SQLSTATE \'45000\' SET MESSAGE_TEXT = \'in_interval must be greater than 0\'; END IF;  IF (@sys.diagnostics.allow_i_s_tables IS NULL) THEN SET @sys.diagnostics.allow_i_s_tables = sys.sys_get_config(\'diagnostics.allow_i_s_tables\', \'OFF\'); END IF; IF (@sys.diagnostics.include_raw IS NULL) THEN SET @sys.diagnostics.include_raw      = sys.sys_get_config(\'diagnostics.include_raw\'     , \'OFF\'); END IF; IF (@sys.debug IS NULL) THEN SET @sys.debug                        = sys.sys_get_config(\'debug\'                       , \'OFF\'); END IF; IF (@sys.statement_truncate_len IS NULL) THEN SET @sys.statement_truncate_len       = sys.sys_get_config(\'statement_truncate_len\'      , \'64\' ); END IF;  SET @log_bin := @@sql_log_bin; IF (@log_bin = 1) THEN SET sql_log_bin = 0; END IF;  SET v_no_delta_names = CONCAT(\'s%{COUNT}.Variable_name NOT IN (\', \'\'innodb_buffer_pool_pages_total\', \', \'\'innodb_page_size\', \', \'\'last_query_cost\', \', \'\'last_query_partial_plans\', \', \'\'qcache_total_blocks\', \', \'\'slave_last_heartbeat\', \', \'\'ssl_ctx_verify_depth\', \', \'\'ssl_ctx_verify_mode\', \', \'\'ssl_session_cache_size\', \', \'\'ssl_verify_depth\', \', \'\'ssl_verify_mode\', \', \'\'ssl_version\', \', \'\'buffer_flush_lsn_avg_rate\', \', \'\'buffer_flush_pct_for_dirty\', \', \'\'buffer_flush_pct_for_lsn\', \', \'\'buffer_pool_pages_total\', \', \'\'lock_row_lock_time_avg\', \', \'\'lock_row_lock_time_max\', \', \'\'innodb_page_size\'\', \')\');  IF (in_auto_config <> \'current\') THEN IF (@sys.debug = \'ON\') THEN SELECT CONCAT(\'Updating Performance Schema configuration to \', in_auto_config) AS \'Debug\'; END IF; CALL sys.ps_setup_save(0);  IF (in_auto_config = \'medium\') THEN UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\' WHERE NAME NOT LIKE \'%\\_history%\';  UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED   = \'YES\' WHERE NAME NOT LIKE \'wait/synch/%\'; ELSEIF (in_auto_config = \'full\') THEN UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\';  UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED   = \'YES\'; END IF;  UPDATE performance_schema.threads SET INSTRUMENTED = \'YES\' WHERE PROCESSLIST_ID <> CONNECTION_ID(); END IF;  SET v_start        = UNIX_TIMESTAMP(NOW(2)), in_interval    = IFNULL(in_interval, 30), in_max_runtime = IFNULL(in_max_runtime, 60);  SET v_banner = REPEAT( \'-\', LEAST( GREATEST( 36, CHAR_LENGTH(VERSION()), CHAR_LENGTH(@@global.version_comment), CHAR_LENGTH(@@global.version_compile_os), CHAR_LENGTH(@@global.version_compile_machine), CHAR_LENGTH(@@global.socket), CHAR_LENGTH(@@global.datadir) ), 64 ) ); SELECT \'Hostname\' AS \'Name\', @@global.hostname AS \'Value\' UNION ALL SELECT \'Port\' AS \'Name\', @@global.port AS \'Value\' UNION ALL SELECT \'Socket\' AS \'Name\', @@global.socket AS \'Value\' UNION ALL SELECT \'Datadir\' AS \'Name\', @@global.datadir AS \'Value\' UNION ALL SELECT \'Server UUID\' AS \'Name\', @@global.server_uuid AS \'Value\' UNION ALL SELECT REPEAT(\'-\', 23) AS \'Name\', v_banner AS \'Value\' UNION ALL SELECT \'MySQL Version\' AS \'Name\', VERSION() AS \'Value\' UNION ALL SELECT \'Sys Schema Version\' AS \'Name\', (SELECT sys_version FROM sys.version) AS \'Value\' UNION ALL SELECT \'Version Comment\' AS \'Name\', @@global.version_comment AS \'Value\' UNION ALL SELECT \'Version Compile OS\' AS \'Name\', @@global.version_compile_os AS \'Value\' UNION ALL SELECT \'Version Compile Machine\' AS \'Name\', @@global.version_compile_machine AS \'Value\' UNION ALL SELECT REPEAT(\'-\', 23) AS \'Name\', v_banner AS \'Value\' UNION ALL SELECT \'UTC Time\' AS \'Name\', UTC_TIMESTAMP() AS \'Value\' UNION ALL SELECT \'Local Time\' AS \'Name\', NOW() AS \'Value\' UNION ALL SELECT \'Time Zone\' AS \'Name\', @@global.time_zone AS \'Value\' UNION ALL SELECT \'System Time Zone\' AS \'Name\', @@global.system_time_zone AS \'Value\' UNION ALL SELECT \'Time Zone Offset\' AS \'Name\', TIMEDIFF(NOW(), UTC_TIMESTAMP()) AS \'Value\';  SET v_has_innodb         = IFNULL((SELECT SUPPORT FROM information_schema.ENGINES WHERE ENGINE = \'InnoDB\'), \'NO\'), v_has_ndb            = IFNULL((SELECT SUPPORT FROM information_schema.ENGINES WHERE ENGINE = \'NDBCluster\'), \'NO\'), v_has_ps             = IFNULL((SELECT SUPPORT FROM information_schema.ENGINES WHERE ENGINE = \'PERFORMANCE_SCHEMA\'), \'NO\'), v_has_ps_replication = IF(v_has_ps = \'YES\' AND EXISTS(SELECT 1 FROM information_schema.TABLES WHERE TABLE_SCHEMA = \'performance_schema\' AND TABLE_NAME = \'replication_applier_status\'), \'YES\', \'NO\' ), v_has_replication    =  IF(v_has_ps_replication = \'YES\', IF((SELECT COUNT(*) FROM performance_schema.replication_connection_status) > 0, \'YES\', \'NO\'), IF(@@master_info_repository = \'TABLE\', IF((SELECT COUNT(*) FROM mysql.slave_master_info) > 0, \'YES\', \'NO\'), IF(@@relay_log_info_repository = \'TABLE\', IF((SELECT COUNT(*) FROM mysql.slave_relay_log_info) > 0, \'YES\', \'NO\'), \'MAYBE\')) ) , v_has_metrics        = IF(v_has_ps = \'YES\' OR (sys.version_major() = 5 AND sys.version_minor() = 6), \'YES\', \'NO\'), v_has_ps_vars        = \'NO\';   SET v_has_ps_vars = IF(@@global.show_compatibility_56, \'NO\', \'YES\');  SET v_has_ps_vars = \'YES\';  IF (@sys.debug = \'ON\') THEN SELECT v_has_innodb AS \'Has_InnoDB\', v_has_ndb AS \'Has_NDBCluster\', v_has_ps AS \'Has_Performance_Schema\', v_has_ps_vars AS \'Has_P_S_SHOW_Variables\', v_has_metrics AS \'Has_metrics\', v_has_ps_replication \'AS Has_P_S_Replication\', v_has_replication AS \'Has_Replication\'; END IF;  IF (v_has_innodb IN (\'DEFAULT\', \'YES\')) THEN SET @sys.diagnostics.sql = \'SHOW ENGINE InnoDB STATUS\'; PREPARE stmt_innodb_status FROM @sys.diagnostics.sql; END IF;  IF (v_has_ps = \'YES\') THEN SET @sys.diagnostics.sql = \'SHOW ENGINE PERFORMANCE_SCHEMA STATUS\'; PREPARE stmt_ps_status FROM @sys.diagnostics.sql; END IF;  IF (v_has_ndb IN (\'DEFAULT\', \'YES\')) THEN SET @sys.diagnostics.sql = \'SHOW ENGINE NDBCLUSTER STATUS\'; PREPARE stmt_ndbcluster_status FROM @sys.diagnostics.sql; END IF;  SET @sys.diagnostics.sql_gen_query_template = \'SELECT CONCAT( \'SELECT \', GROUP_CONCAT( CASE WHEN (SUBSTRING(TABLE_NAME, 3), COLUMN_NAME) IN ( (\'io_global_by_file_by_bytes\', \'total\'), (\'io_global_by_wait_by_bytes\', \'total_requested\') ) THEN CONCAT(\'sys.format_bytes(\', COLUMN_NAME, \') AS \', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -8) = \'_latency\' THEN CONCAT(\'sys.format_time(\', COLUMN_NAME, \') AS \', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -7) = \'_memory\' OR SUBSTRING(COLUMN_NAME, -17) = \'_memory_allocated\' OR ((SUBSTRING(COLUMN_NAME, -5) = \'_read\' OR SUBSTRING(COLUMN_NAME, -8) = \'_written\' OR SUBSTRING(COLUMN_NAME, -6) = \'_write\') AND SUBSTRING(COLUMN_NAME, 1, 6) <> \'COUNT_\') THEN CONCAT(\'sys.format_bytes(\', COLUMN_NAME, \') AS \', COLUMN_NAME) ELSE COLUMN_NAME END ORDER BY ORDINAL_POSITION SEPARATOR \',\n       \' ), \'\n  FROM tmp_\', SUBSTRING(TABLE_NAME FROM 3), \'_%{OUTPUT}\' ) AS Query INTO @sys.diagnostics.sql_select FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = \'sys\' AND TABLE_NAME = ? GROUP BY TABLE_NAME\';  SET @sys.diagnostics.sql_gen_query_delta = \'SELECT CONCAT( \'SELECT \', GROUP_CONCAT( CASE WHEN FIND_IN_SET(COLUMN_NAME, diag.pk) THEN COLUMN_NAME WHEN diag.TABLE_NAME = \'io_global_by_file_by_bytes\' AND COLUMN_NAME = \'write_pct\' THEN CONCAT(\'IFNULL(ROUND(100-(((e.total_read-IFNULL(s.total_read, 0))\', \'/NULLIF(((e.total_read-IFNULL(s.total_read, 0))+(e.total_written-IFNULL(s.total_written, 0))), 0))*100), 2), 0.00) AS \', COLUMN_NAME) WHEN (diag.TABLE_NAME, COLUMN_NAME) IN ( (\'io_global_by_file_by_bytes\', \'total\'), (\'io_global_by_wait_by_bytes\', \'total_requested\') ) THEN CONCAT(\'sys.format_bytes(e.\', COLUMN_NAME, \'-IFNULL(s.\', COLUMN_NAME, \', 0)) AS \', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, 1, 4) IN (\'max_\', \'min_\') AND SUBSTRING(COLUMN_NAME, -8) = \'_latency\' THEN CONCAT(\'sys.format_time(e.\', COLUMN_NAME, \') AS \', COLUMN_NAME) WHEN COLUMN_NAME = \'avg_latency\' THEN CONCAT(\'sys.format_time((e.total_latency - IFNULL(s.total_latency, 0))\', \'/NULLIF(e.total - IFNULL(s.total, 0), 0)) AS \', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -12) = \'_avg_latency\' THEN CONCAT(\'sys.format_time((e.\', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), \'_latency - IFNULL(s.\', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), \'_latency, 0))\', \'/NULLIF(e.\', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), \'s - IFNULL(s.\', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), \'s, 0), 0)) AS \', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -8) = \'_latency\' THEN CONCAT(\'sys.format_time(e.\', COLUMN_NAME, \' - IFNULL(s.\', COLUMN_NAME, \', 0)) AS \', COLUMN_NAME) WHEN COLUMN_NAME IN (\'avg_read\', \'avg_write\', \'avg_written\') THEN CONCAT(\'sys.format_bytes(IFNULL((e.total_\', IF(COLUMN_NAME = \'avg_read\', \'read\', \'written\'), \'-IFNULL(s.total_\', IF(COLUMN_NAME = \'avg_read\', \'read\', \'written\'), \', 0))\', \'/NULLIF(e.count_\', IF(COLUMN_NAME = \'avg_read\', \'read\', \'write\'), \'-IFNULL(s.count_\', IF(COLUMN_NAME = \'avg_read\', \'read\', \'write\'), \', 0), 0), 0)) AS \', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -7) = \'_memory\' OR SUBSTRING(COLUMN_NAME, -17) = \'_memory_allocated\' OR ((SUBSTRING(COLUMN_NAME, -5) = \'_read\' OR SUBSTRING(COLUMN_NAME, -8) = \'_written\' OR SUBSTRING(COLUMN_NAME, -6) = \'_write\') AND SUBSTRING(COLUMN_NAME, 1, 6) <> \'COUNT_\') THEN CONCAT(\'sys.format_bytes(e.\', COLUMN_NAME, \' - IFNULL(s.\', COLUMN_NAME, \', 0)) AS \', COLUMN_NAME) ELSE CONCAT(\'(e.\', COLUMN_NAME, \' - IFNULL(s.\', COLUMN_NAME, \', 0)) AS \', COLUMN_NAME) END ORDER BY ORDINAL_POSITION SEPARATOR \',\n       \' ), \'\n  FROM tmp_\', diag.TABLE_NAME, \'_end e LEFT OUTER JOIN tmp_\', diag.TABLE_NAME, \'_start s USING (\', diag.pk, \')\' ) AS Query INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta diag INNER JOIN information_schema.COLUMNS c ON c.TABLE_NAME = CONCAT(\'x$\', diag.TABLE_NAME) WHERE c.TABLE_SCHEMA = \'sys\' AND diag.TABLE_NAME = ? GROUP BY diag.TABLE_NAME\';  IF (v_has_ps = \'YES\') THEN DROP TEMPORARY TABLE IF EXISTS tmp_sys_views_delta; CREATE TEMPORARY TABLE tmp_sys_views_delta ( TABLE_NAME varchar(64) NOT NULL, order_by text COMMENT \'ORDER BY clause for the initial and overall views\', order_by_delta text COMMENT \'ORDER BY clause for the delta views\', where_delta text COMMENT \'WHERE clause to use for delta views to only include rows with a \"count\" > 0\', limit_rows int unsigned COMMENT \'The maximum number of rows to include for the view\', pk varchar(128) COMMENT \'Used with the FIND_IN_SET() function so use comma separated list without whitespace\', PRIMARY KEY (TABLE_NAME) );  IF (@sys.debug = \'ON\') THEN SELECT \'Populating tmp_sys_views_delta\' AS \'Debug\'; END IF; INSERT INTO tmp_sys_views_delta VALUES (\'host_summary\'                       , \'%{TABLE}.statement_latency DESC\', \'(e.statement_latency-IFNULL(s.statement_latency, 0)) DESC\', \'(e.statements - IFNULL(s.statements, 0)) > 0\', NULL, \'host\'), (\'host_summary_by_file_io\'            , \'%{TABLE}.io_latency DESC\', \'(e.io_latency-IFNULL(s.io_latency, 0)) DESC\', \'(e.ios - IFNULL(s.ios, 0)) > 0\', NULL, \'host\'), (\'host_summary_by_file_io_type\'       , \'%{TABLE}.host, %{TABLE}.total_latency DESC\', \'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'host,event_name\'), (\'host_summary_by_stages\'             , \'%{TABLE}.host, %{TABLE}.total_latency DESC\', \'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'host,event_name\'), (\'host_summary_by_statement_latency\'  , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'host\'), (\'host_summary_by_statement_type\'     , \'%{TABLE}.host, %{TABLE}.total_latency DESC\', \'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'host,statement\'), (\'io_by_thread_by_latency\'            , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user,thread_id,processlist_id\'), (\'io_global_by_file_by_bytes\'         , \'%{TABLE}.total DESC\', \'(e.total-IFNULL(s.total, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', 100, \'file\'), (\'io_global_by_file_by_latency\'       , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', 100, \'file\'), (\'io_global_by_wait_by_bytes\'         , \'%{TABLE}.total_requested DESC\', \'(e.total_requested-IFNULL(s.total_requested, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'event_name\'), (\'io_global_by_wait_by_latency\'       , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'event_name\'), (\'schema_index_statistics\'            , \'(%{TABLE}.select_latency+%{TABLE}.insert_latency+%{TABLE}.update_latency+%{TABLE}.delete_latency) DESC\', \'((e.select_latency+e.insert_latency+e.update_latency+e.delete_latency)-IFNULL(s.select_latency+s.insert_latency+s.update_latency+s.delete_latency, 0)) DESC\', \'((e.rows_selected+e.insert_latency+e.rows_updated+e.rows_deleted)-IFNULL(s.rows_selected+s.rows_inserted+s.rows_updated+s.rows_deleted, 0)) > 0\', 100, \'table_schema,table_name,index_name\'), (\'schema_table_statistics\'            , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) > 0\', 100, \'table_schema,table_name\'), (\'schema_tables_with_full_table_scans\', \'%{TABLE}.rows_full_scanned DESC\', \'(e.rows_full_scanned-IFNULL(s.rows_full_scanned, 0)) DESC\', \'(e.rows_full_scanned-IFNULL(s.rows_full_scanned, 0)) > 0\', 100, \'object_schema,object_name\'), (\'user_summary\'                       , \'%{TABLE}.statement_latency DESC\', \'(e.statement_latency-IFNULL(s.statement_latency, 0)) DESC\', \'(e.statements - IFNULL(s.statements, 0)) > 0\', NULL, \'user\'), (\'user_summary_by_file_io\'            , \'%{TABLE}.io_latency DESC\', \'(e.io_latency-IFNULL(s.io_latency, 0)) DESC\', \'(e.ios - IFNULL(s.ios, 0)) > 0\', NULL, \'user\'), (\'user_summary_by_file_io_type\'       , \'%{TABLE}.user, %{TABLE}.latency DESC\', \'e.user, (e.latency-IFNULL(s.latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user,event_name\'), (\'user_summary_by_stages\'             , \'%{TABLE}.user, %{TABLE}.total_latency DESC\', \'e.user, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user,event_name\'), (\'user_summary_by_statement_latency\'  , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user\'), (\'user_summary_by_statement_type\'     , \'%{TABLE}.user, %{TABLE}.total_latency DESC\', \'e.user, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user,statement\'), (\'wait_classes_global_by_avg_latency\' , \'IFNULL(%{TABLE}.total_latency / NULLIF(%{TABLE}.total, 0), 0) DESC\', \'IFNULL((e.total_latency-IFNULL(s.total_latency, 0)) / NULLIF((e.total - IFNULL(s.total, 0)), 0), 0) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'event_class\'), (\'wait_classes_global_by_latency\'     , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'event_class\'), (\'waits_by_host_by_latency\'           , \'%{TABLE}.host, %{TABLE}.total_latency DESC\', \'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'host,event\'), (\'waits_by_user_by_latency\'           , \'%{TABLE}.user, %{TABLE}.total_latency DESC\', \'e.user, (e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'user,event\'), (\'waits_global_by_latency\'            , \'%{TABLE}.total_latency DESC\', \'(e.total_latency-IFNULL(s.total_latency, 0)) DESC\', \'(e.total - IFNULL(s.total, 0)) > 0\', NULL, \'events\') ; END IF;   SELECT \'  =======================  Configuration  =======================  \' AS \'\'; SELECT \'GLOBAL VARIABLES\' AS \'The following output is:\'; IF (v_has_ps_vars = \'YES\') THEN SELECT LOWER(VARIABLE_NAME) AS Variable_name, VARIABLE_VALUE AS Variable_value FROM performance_schema.global_variables ORDER BY VARIABLE_NAME; ELSE SELECT LOWER(VARIABLE_NAME) AS Variable_name, VARIABLE_VALUE AS Variable_value FROM information_schema.GLOBAL_VARIABLES ORDER BY VARIABLE_NAME; END IF;  IF (v_has_ps = \'YES\') THEN SELECT \'Performance Schema Setup - Actors\' AS \'The following output is:\'; SELECT * FROM performance_schema.setup_actors;  SELECT \'Performance Schema Setup - Consumers\' AS \'The following output is:\'; SELECT NAME AS Consumer, ENABLED, sys.ps_is_consumer_enabled(NAME) AS COLLECTS FROM performance_schema.setup_consumers;  SELECT \'Performance Schema Setup - Instruments\' AS \'The following output is:\'; SELECT SUBSTRING_INDEX(NAME, \'/\', 2) AS \'InstrumentClass\', ROUND(100*SUM(IF(ENABLED = \'YES\', 1, 0))/COUNT(*), 2) AS \'EnabledPct\', ROUND(100*SUM(IF(TIMED = \'YES\', 1, 0))/COUNT(*), 2) AS \'TimedPct\' FROM performance_schema.setup_instruments GROUP BY SUBSTRING_INDEX(NAME, \'/\', 2) ORDER BY SUBSTRING_INDEX(NAME, \'/\', 2);  SELECT \'Performance Schema Setup - Objects\' AS \'The following output is:\'; SELECT * FROM performance_schema.setup_objects;  SELECT \'Performance Schema Setup - Threads\' AS \'The following output is:\'; SELECT `TYPE` AS ThreadType, COUNT(*) AS \'Total\', ROUND(100*SUM(IF(INSTRUMENTED = \'YES\', 1, 0))/COUNT(*), 2) AS \'InstrumentedPct\' FROM performance_schema.threads GROUP BY TYPE; END IF;   IF (v_has_replication = \'NO\') THEN SELECT \'No Replication Configured\' AS \'Replication Status\'; ELSE SELECT CONCAT(\'Replication Configured: \', v_has_replication, \' - Performance Schema Replication Tables: \', v_has_ps_replication) AS \'Replication Status\';  IF (v_has_ps_replication = \'YES\') THEN SELECT \'Replication - Connection Configuration\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_connection_configuration ORDER BY CHANNEL_NAME ; END IF;  IF (v_has_ps_replication = \'YES\') THEN SELECT \'Replication - Applier Configuration\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_applier_configuration ORDER BY CHANNEL_NAME; END IF;  IF (@@master_info_repository = \'TABLE\') THEN SELECT \'Replication - Master Info Repository Configuration\' AS \'The following output is:\'; SELECT  Channel_name, Host, User_name, Port, Connect_retry, Enabled_ssl, Ssl_ca, Ssl_capath, Ssl_cert, Ssl_cipher, Ssl_key, Ssl_verify_server_cert, Heartbeat, Bind, Ignored_server_ids, Uuid, Retry_count, Ssl_crl, Ssl_crlpath, Tls_version, Enabled_auto_position FROM mysql.slave_master_info ORDER BY Channel_name ; END IF;  IF (@@relay_log_info_repository = \'TABLE\') THEN SELECT \'Replication - Relay Log Repository Configuration\' AS \'The following output is:\'; SELECT  Channel_name, Sql_delay, Number_of_workers, Id FROM mysql.slave_relay_log_info ORDER BY Channel_name ; END IF; END IF;   IF (v_has_ndb IN (\'DEFAULT\', \'YES\')) THEN SELECT \'Cluster Thread Blocks\' AS \'The following output is:\'; SELECT * FROM ndbinfo.threadblocks; END IF;  IF (v_has_ps = \'YES\') THEN IF (@sys.diagnostics.include_raw = \'ON\') THEN SELECT \'  ========================  Initial Status  ========================  \' AS \'\'; END IF;  DROP TEMPORARY TABLE IF EXISTS tmp_digests_start; CALL sys.statement_performance_analyzer(\'create_tmp\', \'tmp_digests_start\', NULL); CALL sys.statement_performance_analyzer(\'snapshot\', NULL, NULL); CALL sys.statement_performance_analyzer(\'save\', \'tmp_digests_start\', NULL);  IF (@sys.diagnostics.include_raw = \'ON\') THEN SET @sys.diagnostics.sql = REPLACE(@sys.diagnostics.sql_gen_query_template, \'%{OUTPUT}\', \'start\'); IF (@sys.debug = \'ON\') THEN SELECT \'The following query will be used to generate the query for each sys view\' AS \'Debug\'; SELECT @sys.diagnostics.sql AS \'Debug\'; END IF; PREPARE stmt_gen_query FROM @sys.diagnostics.sql; END IF; SET v_done = FALSE; OPEN c_sysviews_w_delta; c_sysviews_w_delta_loop: LOOP FETCH c_sysviews_w_delta INTO v_table_name; IF v_done THEN LEAVE c_sysviews_w_delta_loop; END IF;  IF (@sys.debug = \'ON\') THEN SELECT CONCAT(\'The following queries are for storing the initial content of \', v_table_name) AS \'Debug\'; END IF;  CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE IF EXISTS `tmp_\', v_table_name, \'_start`\')); CALL sys.execute_prepared_stmt(CONCAT(\'CREATE TEMPORARY TABLE `tmp_\', v_table_name, \'_start` SELECT * FROM `sys`.`x$\', v_table_name, \'`\'));  IF (@sys.diagnostics.include_raw = \'ON\') THEN SET @sys.diagnostics.table_name = CONCAT(\'x$\', v_table_name); EXECUTE stmt_gen_query USING @sys.diagnostics.table_name; SELECT CONCAT(@sys.diagnostics.sql_select, IF(order_by IS NOT NULL, CONCAT(\'\n ORDER BY \', REPLACE(order_by, \'%{TABLE}\', CONCAT(\'tmp_\', v_table_name, \'_start\'))), \'\'), IF(limit_rows IS NOT NULL, CONCAT(\'\n LIMIT \', limit_rows), \'\') ) INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta WHERE TABLE_NAME = v_table_name; SELECT CONCAT(\'Initial \', v_table_name) AS \'The following output is:\'; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql_select); END IF; END LOOP; CLOSE c_sysviews_w_delta;  IF (@sys.diagnostics.include_raw = \'ON\') THEN DEALLOCATE PREPARE stmt_gen_query; END IF; END IF;  SET v_sql_status_summary_select = \'SELECT Variable_name\', v_sql_status_summary_delta  = \'\', v_sql_status_summary_from   = \'\';  REPEAT  SET v_output_count = v_output_count + 1; IF (v_output_count > 1) THEN SET v_sleep = in_interval-(UNIX_TIMESTAMP(NOW(2))-v_iter_start); SELECT NOW() AS \'Time\', CONCAT(\'Going to sleep for \', v_sleep, \' seconds. Please do not interrupt\') AS \'The following output is:\'; DO SLEEP(in_interval); END IF; SET v_iter_start = UNIX_TIMESTAMP(NOW(2));  SELECT NOW(), CONCAT(\'Iteration Number \', IFNULL(v_output_count, \'NULL\')) AS \'The following output is:\';  IF (@@log_bin = 1) THEN SELECT \'SHOW MASTER STATUS\' AS \'The following output is:\'; SHOW MASTER STATUS; END IF;  IF (v_has_replication <> \'NO\') THEN SELECT \'SHOW SLAVE STATUS\' AS \'The following output is:\'; SHOW SLAVE STATUS;  IF (v_has_ps_replication = \'YES\') THEN SELECT \'Replication Connection Status\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_connection_status;  SELECT \'Replication Applier Status\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_applier_status ORDER BY CHANNEL_NAME;  SELECT \'Replication Applier Status - Coordinator\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_applier_status_by_coordinator ORDER BY CHANNEL_NAME;  SELECT \'Replication Applier Status - Worker\' AS \'The following output is:\'; SELECT * FROM performance_schema.replication_applier_status_by_worker ORDER BY CHANNEL_NAME, WORKER_ID; END IF;  IF (@@master_info_repository = \'TABLE\') THEN SELECT \'Replication - Master Log Status\' AS \'The following output is:\'; SELECT Master_log_name, Master_log_pos FROM mysql.slave_master_info; END IF;  IF (@@relay_log_info_repository = \'TABLE\') THEN SELECT \'Replication - Relay Log Status\' AS \'The following output is:\'; SELECT sys.format_path(Relay_log_name) AS Relay_log_name, Relay_log_pos, Master_log_name, Master_log_pos FROM mysql.slave_relay_log_info;  SELECT \'Replication - Worker Status\' AS \'The following output is:\'; SELECT Id, sys.format_path(Relay_log_name) AS Relay_log_name, Relay_log_pos, Master_log_name, Master_log_pos, sys.format_path(Checkpoint_relay_log_name) AS Checkpoint_relay_log_name, Checkpoint_relay_log_pos, Checkpoint_master_log_name, Checkpoint_master_log_pos, Checkpoint_seqno, Checkpoint_group_size, HEX(Checkpoint_group_bitmap) AS Checkpoint_group_bitmap , Channel_name FROM mysql.slave_worker_info ORDER BY  Channel_name, Id; END IF; END IF;  SET v_table_name = CONCAT(\'tmp_metrics_\', v_output_count); CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE IF EXISTS \', v_table_name));  CALL sys.execute_prepared_stmt(CONCAT(\'CREATE TEMPORARY TABLE \', v_table_name, \' ( Variable_name VARCHAR(193) NOT NULL, Variable_value VARCHAR(1024), Type VARCHAR(225) NOT NULL, Enabled ENUM(\'YES\', \'NO\', \'PARTIAL\') NOT NULL, PRIMARY KEY (Type, Variable_name) ) ENGINE = InnoDB DEFAULT CHARSET=utf8\'));  IF (v_has_metrics) THEN SET @sys.diagnostics.sql = CONCAT( \'INSERT INTO \', v_table_name, \' SELECT Variable_name, REPLACE(Variable_value, \'\n\', \'\\\\n\') AS Variable_value, Type, Enabled FROM sys.metrics\' ); ELSE SET @sys.diagnostics.sql = CONCAT( \'INSERT INTO \', v_table_name, \'(SELECT LOWER(VARIABLE_NAME) AS Variable_name, REPLACE(VARIABLE_VALUE, \'\n\', \'\\\\n\') AS Variable_value, \'Global Status\' AS Type, \'YES\' AS Enabled FROM performance_schema.global_status ) UNION ALL ( SELECT NAME AS Variable_name, COUNT AS Variable_value, CONCAT(\'InnoDB Metrics - \', SUBSYSTEM) AS Type, IF(STATUS = \'enabled\', \'YES\', \'NO\') AS Enabled FROM information_schema.INNODB_METRICS WHERE NAME NOT IN ( \'lock_row_lock_time\', \'lock_row_lock_time_avg\', \'lock_row_lock_time_max\', \'lock_row_lock_waits\', \'buffer_pool_reads\', \'buffer_pool_read_requests\', \'buffer_pool_write_requests\', \'buffer_pool_wait_free\', \'buffer_pool_read_ahead\', \'buffer_pool_read_ahead_evicted\', \'buffer_pool_pages_total\', \'buffer_pool_pages_misc\', \'buffer_pool_pages_data\', \'buffer_pool_bytes_data\', \'buffer_pool_pages_dirty\', \'buffer_pool_bytes_dirty\', \'buffer_pool_pages_free\', \'buffer_pages_created\', \'buffer_pages_written\', \'buffer_pages_read\', \'buffer_data_reads\', \'buffer_data_written\', \'file_num_open_files\', \'os_log_bytes_written\', \'os_log_fsyncs\', \'os_log_pending_fsyncs\', \'os_log_pending_writes\', \'log_waits\', \'log_write_requests\', \'log_writes\', \'innodb_dblwr_writes\', \'innodb_dblwr_pages_written\', \'innodb_page_size\') ) UNION ALL ( SELECT \'NOW()\' AS Variable_name, NOW(3) AS Variable_value, \'System Time\' AS Type, \'YES\' AS Enabled ) UNION ALL ( SELECT \'UNIX_TIMESTAMP()\' AS Variable_name, ROUND(UNIX_TIMESTAMP(NOW(3)), 3) AS Variable_value, \'System Time\' AS Type, \'YES\' AS Enabled ) ORDER BY Type, Variable_name;\' ); END IF; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql);  CALL sys.execute_prepared_stmt( CONCAT(\'(SELECT Variable_value INTO @sys.diagnostics.output_time FROM \', v_table_name, \' WHERE Type = \'System Time\' AND Variable_name = \'UNIX_TIMESTAMP()\')\') ); SET v_output_time = @sys.diagnostics.output_time;  SET v_sql_status_summary_select = CONCAT(v_sql_status_summary_select, \', CONCAT( LEFT(s\', v_output_count, \'.Variable_value, \', v_status_summary_width, \'), IF(\', REPLACE(v_no_delta_names, \'%{COUNT}\', v_output_count), \' AND s\', v_output_count, \'.Variable_value REGEXP \'^[0-9]+(\\\\.[0-9]+)?$\', CONCAT(\' (\', ROUND(s\', v_output_count, \'.Variable_value/\', v_output_time, \', 2), \'/sec)\'), \'\') ) AS \'Output \', v_output_count, \'\'\'), v_sql_status_summary_from   = CONCAT(v_sql_status_summary_from, \' \', IF(v_output_count = 1, \'  FROM \', \'       INNER JOIN \'), v_table_name, \' s\', v_output_count, IF (v_output_count = 1, \'\', \' USING (Type, Variable_name)\')); IF (v_output_count > 1) THEN SET v_sql_status_summary_delta  = CONCAT(v_sql_status_summary_delta, \', IF(\', REPLACE(v_no_delta_names, \'%{COUNT}\', v_output_count), \' AND s\', (v_output_count-1), \'.Variable_value REGEXP \'^[0-9]+(\\\\.[0-9]+)?$\' AND s\', v_output_count, \'.Variable_value REGEXP \'^[0-9]+(\\\\.[0-9]+)?$\', CONCAT(IF(s\', (v_output_count-1), \'.Variable_value REGEXP \'^[0-9]+\\\\.[0-9]+$\' OR s\', v_output_count, \'.Variable_value REGEXP \'^[0-9]+\\\\.[0-9]+$\', ROUND((s\', v_output_count, \'.Variable_value-s\', (v_output_count-1), \'.Variable_value), 2), (s\', v_output_count, \'.Variable_value-s\', (v_output_count-1), \'.Variable_value) ), \' (\', ROUND((s\', v_output_count, \'.Variable_value-s\', (v_output_count-1), \'.Variable_value)/(\', v_output_time, \'-\', v_output_time_prev, \'), 2), \'/sec)\' ), \'\' ) AS \'Delta (\', (v_output_count-1), \' -> \', v_output_count, \')\'\'); END IF;  SET v_output_time_prev = v_output_time;  IF (@sys.diagnostics.include_raw = \'ON\') THEN IF (v_has_metrics) THEN SELECT \'SELECT * FROM sys.metrics\' AS \'The following output is:\'; ELSE SELECT \'sys.metrics equivalent\' AS \'The following output is:\'; END IF; CALL sys.execute_prepared_stmt(CONCAT(\'SELECT Type, Variable_name, Enabled, Variable_value FROM \', v_table_name, \' ORDER BY Type, Variable_name\')); END IF;  IF (v_has_innodb IN (\'DEFAULT\', \'YES\')) THEN SELECT \'SHOW ENGINE INNODB STATUS\' AS \'The following output is:\'; EXECUTE stmt_innodb_status; SELECT \'InnoDB - Transactions\' AS \'The following output is:\'; SELECT * FROM information_schema.INNODB_TRX; END IF;  IF (v_has_ndb IN (\'DEFAULT\', \'YES\')) THEN SELECT \'SHOW ENGINE NDBCLUSTER STATUS\' AS \'The following output is:\'; EXECUTE stmt_ndbcluster_status;  SELECT \'ndbinfo.memoryusage\' AS \'The following output is:\'; SELECT node_id, memory_type, sys.format_bytes(used) AS used, used_pages, sys.format_bytes(total) AS total, total_pages, ROUND(100*(used/total), 2) AS \'Used %\' FROM ndbinfo.memoryusage;  SET v_done = FALSE; OPEN c_ndbinfo; c_ndbinfo_loop: LOOP FETCH c_ndbinfo INTO v_table_name; IF v_done THEN LEAVE c_ndbinfo_loop; END IF;  SELECT CONCAT(\'SELECT * FROM ndbinfo.\', v_table_name) AS \'The following output is:\'; CALL sys.execute_prepared_stmt(CONCAT(\'SELECT * FROM `ndbinfo`.`\', v_table_name, \'`\')); END LOOP; CLOSE c_ndbinfo;  SELECT * FROM information_schema.FILES; END IF;  SELECT \'SELECT * FROM sys.processlist\' AS \'The following output is:\'; SELECT processlist.* FROM sys.processlist;  IF (v_has_ps = \'YES\') THEN IF (sys.ps_is_consumer_enabled(\'events_waits_history_long\') = \'YES\') THEN SELECT \'SELECT * FROM sys.latest_file_io\' AS \'The following output is:\'; SELECT * FROM sys.latest_file_io; END IF;  IF (EXISTS(SELECT 1 FROM performance_schema.setup_instruments WHERE NAME LIKE \'memory/%\' AND ENABLED = \'YES\')) THEN SELECT \'SELECT * FROM sys.memory_by_host_by_current_bytes\' AS \'The following output is:\'; SELECT * FROM sys.memory_by_host_by_current_bytes;  SELECT \'SELECT * FROM sys.memory_by_thread_by_current_bytes\' AS \'The following output is:\'; SELECT * FROM sys.memory_by_thread_by_current_bytes;  SELECT \'SELECT * FROM sys.memory_by_user_by_current_bytes\' AS \'The following output is:\'; SELECT * FROM sys.memory_by_user_by_current_bytes;  SELECT \'SELECT * FROM sys.memory_global_by_current_bytes\' AS \'The following output is:\'; SELECT * FROM sys.memory_global_by_current_bytes; END IF; END IF;  SET v_runtime = (UNIX_TIMESTAMP(NOW(2)) - v_start); UNTIL (v_runtime + in_interval >= in_max_runtime) END REPEAT;  IF (v_has_ps = \'YES\') THEN SELECT \'SHOW ENGINE PERFORMANCE_SCHEMA STATUS\' AS \'The following output is:\'; EXECUTE stmt_ps_status; END IF;  IF (v_has_innodb IN (\'DEFAULT\', \'YES\')) THEN DEALLOCATE PREPARE stmt_innodb_status; END IF; IF (v_has_ps = \'YES\') THEN DEALLOCATE PREPARE stmt_ps_status; END IF; IF (v_has_ndb IN (\'DEFAULT\', \'YES\')) THEN DEALLOCATE PREPARE stmt_ndbcluster_status; END IF;   SELECT \'  ============================  Schema Information  ============================  \' AS \'\';  SELECT COUNT(*) AS \'Total Number of Tables\' FROM information_schema.TABLES;  IF (@sys.diagnostics.allow_i_s_tables = \'ON\') THEN SELECT \'Storage Engine Usage\' AS \'The following output is:\'; SELECT ENGINE, COUNT(*) AS NUM_TABLES, sys.format_bytes(SUM(DATA_LENGTH)) AS DATA_LENGTH, sys.format_bytes(SUM(INDEX_LENGTH)) AS INDEX_LENGTH, sys.format_bytes(SUM(DATA_LENGTH+INDEX_LENGTH)) AS TOTAL FROM information_schema.TABLES GROUP BY ENGINE;  SELECT \'Schema Object Overview\' AS \'The following output is:\'; SELECT * FROM sys.schema_object_overview;  SELECT \'Tables without a PRIMARY KEY\' AS \'The following output is:\'; SELECT TABLES.TABLE_SCHEMA, ENGINE, COUNT(*) AS NumTables FROM information_schema.TABLES LEFT OUTER JOIN information_schema.STATISTICS ON STATISTICS.TABLE_SCHEMA = TABLES.TABLE_SCHEMA AND STATISTICS.TABLE_NAME = TABLES.TABLE_NAME AND STATISTICS.INDEX_NAME = \'PRIMARY\' WHERE STATISTICS.TABLE_NAME IS NULL AND TABLES.TABLE_SCHEMA NOT IN (\'mysql\', \'information_schema\', \'performance_schema\', \'sys\') AND TABLES.TABLE_TYPE = \'BASE TABLE\' GROUP BY TABLES.TABLE_SCHEMA, ENGINE; END IF;  IF (v_has_ps = \'YES\') THEN SELECT \'Unused Indexes\' AS \'The following output is:\'; SELECT object_schema, COUNT(*) AS NumUnusedIndexes FROM performance_schema.table_io_waits_summary_by_index_usage  WHERE index_name IS NOT NULL AND count_star = 0 AND object_schema NOT IN (\'mysql\', \'sys\') AND index_name != \'PRIMARY\' GROUP BY object_schema; END IF;  IF (v_has_ps = \'YES\') THEN SELECT \'  =========================  Overall Status  =========================  \' AS \'\';  SELECT \'CALL sys.ps_statement_avg_latency_histogram()\' AS \'The following output is:\'; CALL sys.ps_statement_avg_latency_histogram();  CALL sys.statement_performance_analyzer(\'snapshot\', NULL, NULL); CALL sys.statement_performance_analyzer(\'overall\', NULL, \'with_runtimes_in_95th_percentile\');  SET @sys.diagnostics.sql = REPLACE(@sys.diagnostics.sql_gen_query_template, \'%{OUTPUT}\', \'end\'); IF (@sys.debug = \'ON\') THEN SELECT \'The following query will be used to generate the query for each sys view\' AS \'Debug\'; SELECT @sys.diagnostics.sql AS \'Debug\'; END IF; PREPARE stmt_gen_query FROM @sys.diagnostics.sql;  SET v_done = FALSE; OPEN c_sysviews_w_delta; c_sysviews_w_delta_loop: LOOP FETCH c_sysviews_w_delta INTO v_table_name; IF v_done THEN LEAVE c_sysviews_w_delta_loop; END IF;  IF (@sys.debug = \'ON\') THEN SELECT CONCAT(\'The following queries are for storing the final content of \', v_table_name) AS \'Debug\'; END IF;  CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE IF EXISTS `tmp_\', v_table_name, \'_end`\')); CALL sys.execute_prepared_stmt(CONCAT(\'CREATE TEMPORARY TABLE `tmp_\', v_table_name, \'_end` SELECT * FROM `sys`.`x$\', v_table_name, \'`\'));  IF (@sys.diagnostics.include_raw = \'ON\') THEN SET @sys.diagnostics.table_name = CONCAT(\'x$\', v_table_name); EXECUTE stmt_gen_query USING @sys.diagnostics.table_name; SELECT CONCAT(@sys.diagnostics.sql_select, IF(order_by IS NOT NULL, CONCAT(\'\n ORDER BY \', REPLACE(order_by, \'%{TABLE}\', CONCAT(\'tmp_\', v_table_name, \'_end\'))), \'\'), IF(limit_rows IS NOT NULL, CONCAT(\'\n LIMIT \', limit_rows), \'\') ) INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta WHERE TABLE_NAME = v_table_name; SELECT CONCAT(\'Overall \', v_table_name) AS \'The following output is:\'; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql_select); END IF; END LOOP; CLOSE c_sysviews_w_delta;  DEALLOCATE PREPARE stmt_gen_query;   SELECT \'  ======================  Delta Status  ======================  \' AS \'\';  CALL sys.statement_performance_analyzer(\'delta\', \'tmp_digests_start\', \'with_runtimes_in_95th_percentile\'); CALL sys.statement_performance_analyzer(\'cleanup\', NULL, NULL);  DROP TEMPORARY TABLE tmp_digests_start;  IF (@sys.debug = \'ON\') THEN SELECT \'The following query will be used to generate the query for each sys view delta\' AS \'Debug\'; SELECT @sys.diagnostics.sql_gen_query_delta AS \'Debug\'; END IF; PREPARE stmt_gen_query_delta FROM @sys.diagnostics.sql_gen_query_delta;  SET v_old_group_concat_max_len = @@session.group_concat_max_len; SET @@session.group_concat_max_len = 2048; SET v_done = FALSE; OPEN c_sysviews_w_delta; c_sysviews_w_delta_loop: LOOP FETCH c_sysviews_w_delta INTO v_table_name; IF v_done THEN LEAVE c_sysviews_w_delta_loop; END IF;  SET @sys.diagnostics.table_name = v_table_name; EXECUTE stmt_gen_query_delta USING @sys.diagnostics.table_name; SELECT CONCAT(@sys.diagnostics.sql_select, IF(where_delta IS NOT NULL, CONCAT(\'\n WHERE \', where_delta), \'\'), IF(order_by_delta IS NOT NULL, CONCAT(\'\n ORDER BY \', order_by_delta), \'\'), IF(limit_rows IS NOT NULL, CONCAT(\'\n LIMIT \', limit_rows), \'\') ) INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta WHERE TABLE_NAME = v_table_name;  SELECT CONCAT(\'Delta \', v_table_name) AS \'The following output is:\'; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql_select);  CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE `tmp_\', v_table_name, \'_end`\')); CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE `tmp_\', v_table_name, \'_start`\')); END LOOP; CLOSE c_sysviews_w_delta; SET @@session.group_concat_max_len = v_old_group_concat_max_len;  DEALLOCATE PREPARE stmt_gen_query_delta; DROP TEMPORARY TABLE tmp_sys_views_delta; END IF;  IF (v_has_metrics) THEN SELECT \'SELECT * FROM sys.metrics\' AS \'The following output is:\'; ELSE SELECT \'sys.metrics equivalent\' AS \'The following output is:\'; END IF; CALL sys.execute_prepared_stmt( CONCAT(v_sql_status_summary_select, v_sql_status_summary_delta, \', Type, s1.Enabled\', v_sql_status_summary_from, \' ORDER BY Type, Variable_name\' ) );  SET v_count = 0; WHILE (v_count < v_output_count) DO SET v_count = v_count + 1; SET v_table_name = CONCAT(\'tmp_metrics_\', v_count); CALL sys.execute_prepared_stmt(CONCAT(\'DROP TEMPORARY TABLE IF EXISTS \', v_table_name)); END WHILE;  IF (in_auto_config <> \'current\') THEN CALL sys.ps_setup_reload_saved(); SET sql_log_bin = @log_bin; END IF;  SET @sys.diagnostics.output_time            = NULL, @sys.diagnostics.sql                    = NULL, @sys.diagnostics.sql_gen_query_delta    = NULL, @sys.diagnostics.sql_gen_query_template = NULL, @sys.diagnostics.sql_select             = NULL, @sys.diagnostics.table_name             = NULL;  IF (v_this_thread_enabled = \'YES\') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF;  IF (@log_bin = 1) THEN SET sql_log_bin = @log_bin; END IF; END'),('sys','ps_statement_avg_latency_histogram','PROCEDURE','ps_statement_avg_latency_histogram','SQL','READS_SQL_DATA','NO','INVOKER','','',_binary 'BEGIN SELECT CONCAT(\'\\n\', \'\\n  . = 1 unit\', \'\\n  * = 2 units\', \'\\n  # = 3 units\\n\', @label := CONCAT(@label_inner := CONCAT(\'\\n(0 - \', ROUND((@bucket_size := (SELECT ROUND((MAX(avg_us) - MIN(avg_us)) / (@buckets := 16)) AS size FROM sys.x$ps_digest_avg_latency_distribution)) / (@unit_div := 1000)), (@unit := \'ms\'), \')\'), REPEAT(\' \', (@max_label_size := ((1 + LENGTH(ROUND((@bucket_size * 15) / @unit_div)) + 3 + LENGTH(ROUND(@bucket_size * 16) / @unit_div)) + 1)) - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us <= @bucket_size), 0)), REPEAT(\' \', (@max_label_len := (@max_label_size + LENGTH((@total_queries := (SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution)))) + 1) - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < (@one_unit := 40), \'.\', IF(@count_in_bucket < (@two_unit := 80), \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'),  @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND(@bucket_size / @unit_div), \' - \', ROUND((@bucket_size * 2) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size AND b1.avg_us <= @bucket_size * 2), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 2) / @unit_div), \' - \', ROUND((@bucket_size * 3) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 2 AND b1.avg_us <= @bucket_size * 3), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 3) / @unit_div), \' - \', ROUND((@bucket_size * 4) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 3 AND b1.avg_us <= @bucket_size * 4), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 4) / @unit_div), \' - \', ROUND((@bucket_size * 5) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 4 AND b1.avg_us <= @bucket_size * 5), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 5) / @unit_div), \' - \', ROUND((@bucket_size * 6) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 5 AND b1.avg_us <= @bucket_size * 6), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 6) / @unit_div), \' - \', ROUND((@bucket_size * 7) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 6 AND b1.avg_us <= @bucket_size * 7), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 7) / @unit_div), \' - \', ROUND((@bucket_size * 8) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 7 AND b1.avg_us <= @bucket_size * 8), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 8) / @unit_div), \' - \', ROUND((@bucket_size * 9) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 8 AND b1.avg_us <= @bucket_size * 9), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 9) / @unit_div), \' - \', ROUND((@bucket_size * 10) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 9 AND b1.avg_us <= @bucket_size * 10), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 10) / @unit_div), \' - \', ROUND((@bucket_size * 11) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 10 AND b1.avg_us <= @bucket_size * 11), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 11) / @unit_div), \' - \', ROUND((@bucket_size * 12) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 11 AND b1.avg_us <= @bucket_size * 12), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 12) / @unit_div), \' - \', ROUND((@bucket_size * 13) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 12 AND b1.avg_us <= @bucket_size * 13), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 13) / @unit_div), \' - \', ROUND((@bucket_size * 14) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 13 AND b1.avg_us <= @bucket_size * 14), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 14) / @unit_div), \' - \', ROUND((@bucket_size * 15) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 14 AND b1.avg_us <= @bucket_size * 15), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 15) / @unit_div), \' - \', ROUND((@bucket_size * 16) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 15 AND b1.avg_us <= @bucket_size * 16), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'),  \'\\n\\n  Total Statements: \', @total_queries, \'; Buckets: \', @buckets , \'; Bucket Size: \', ROUND(@bucket_size / @unit_div) , \' \', @unit, \';\\n\'  ) AS `Performance Schema Statement Digest Average Latency Histogram`;  END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Outputs a textual histogram graph of the average latency values\n across all normalized queries tracked within the Performance Schema\n events_statements_summary_by_digest table.\n \n Can be used to show a very high level picture of what kind of \n latency distribution statements running within this instance have.\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_statement_avg_latency_histogram()\\G\n *************************** 1. row ***************************\n Performance Schema Statement Digest Average Latency Histogram:\n \n . = 1 unit\n * = 2 units\n # = 3 units\n \n (0 - 38ms)     240 | ################################################################################\n (38 - 77ms)    38  | ......................................\n (77 - 115ms)   3   | ...\n (115 - 154ms)  62  | *******************************\n (154 - 192ms)  3   | ...\n (192 - 231ms)  0   |\n (231 - 269ms)  0   |\n (269 - 307ms)  0   |\n (307 - 346ms)  0   |\n (346 - 384ms)  1   | .\n (384 - 423ms)  1   | .\n (423 - 461ms)  0   |\n (461 - 499ms)  0   |\n (499 - 538ms)  0   |\n (538 - 576ms)  0   |\n (576 - 615ms)  1   | .\n \n Total Statements: 350; Buckets: 16; Bucket Size: 38 ms;\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN SELECT CONCAT(\'\n\', \'\n  . = 1 unit\', \'\n  * = 2 units\', \'\n  # = 3 units\n\', @label := CONCAT(@label_inner := CONCAT(\'\n(0 - \', ROUND((@bucket_size := (SELECT ROUND((MAX(avg_us) - MIN(avg_us)) / (@buckets := 16)) AS size FROM sys.x$ps_digest_avg_latency_distribution)) / (@unit_div := 1000)), (@unit := \'ms\'), \')\'), REPEAT(\' \', (@max_label_size := ((1 + LENGTH(ROUND((@bucket_size * 15) / @unit_div)) + 3 + LENGTH(ROUND(@bucket_size * 16) / @unit_div)) + 1)) - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us <= @bucket_size), 0)), REPEAT(\' \', (@max_label_len := (@max_label_size + LENGTH((@total_queries := (SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution)))) + 1) - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < (@one_unit := 40), \'.\', IF(@count_in_bucket < (@two_unit := 80), \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'),  @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND(@bucket_size / @unit_div), \' - \', ROUND((@bucket_size * 2) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size AND b1.avg_us <= @bucket_size * 2), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 2) / @unit_div), \' - \', ROUND((@bucket_size * 3) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 2 AND b1.avg_us <= @bucket_size * 3), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 3) / @unit_div), \' - \', ROUND((@bucket_size * 4) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 3 AND b1.avg_us <= @bucket_size * 4), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 4) / @unit_div), \' - \', ROUND((@bucket_size * 5) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 4 AND b1.avg_us <= @bucket_size * 5), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 5) / @unit_div), \' - \', ROUND((@bucket_size * 6) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 5 AND b1.avg_us <= @bucket_size * 6), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 6) / @unit_div), \' - \', ROUND((@bucket_size * 7) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 6 AND b1.avg_us <= @bucket_size * 7), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 7) / @unit_div), \' - \', ROUND((@bucket_size * 8) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 7 AND b1.avg_us <= @bucket_size * 8), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 8) / @unit_div), \' - \', ROUND((@bucket_size * 9) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 8 AND b1.avg_us <= @bucket_size * 9), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 9) / @unit_div), \' - \', ROUND((@bucket_size * 10) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 9 AND b1.avg_us <= @bucket_size * 10), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 10) / @unit_div), \' - \', ROUND((@bucket_size * 11) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 10 AND b1.avg_us <= @bucket_size * 11), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 11) / @unit_div), \' - \', ROUND((@bucket_size * 12) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 11 AND b1.avg_us <= @bucket_size * 12), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 12) / @unit_div), \' - \', ROUND((@bucket_size * 13) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 12 AND b1.avg_us <= @bucket_size * 13), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 13) / @unit_div), \' - \', ROUND((@bucket_size * 14) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 13 AND b1.avg_us <= @bucket_size * 14), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 14) / @unit_div), \' - \', ROUND((@bucket_size * 15) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 14 AND b1.avg_us <= @bucket_size * 15), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 15) / @unit_div), \' - \', ROUND((@bucket_size * 16) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1  WHERE b1.avg_us > @bucket_size * 15 AND b1.avg_us <= @bucket_size * 16), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')),  	             IF(@count_in_bucket < @one_unit, @count_in_bucket, 	             	IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'),  \'\n\n  Total Statements: \', @total_queries, \'; Buckets: \', @buckets , \'; Bucket Size: \', ROUND(@bucket_size / @unit_div) , \' \', @unit, \';\n\'  ) AS `Performance Schema Statement Digest Average Latency Histogram`;  END'),('sys','ps_trace_statement_digest','PROCEDURE','ps_trace_statement_digest','SQL','MODIFIES_SQL_DATA','NO','INVOKER',_binary ' IN in_digest VARCHAR(32), IN in_runtime INT,  IN in_interval DECIMAL(2,2), IN in_start_fresh BOOLEAN, IN in_auto_enable BOOLEAN ','',_binary 'BEGIN  DECLARE v_start_fresh BOOLEAN DEFAULT false; DECLARE v_auto_enable BOOLEAN DEFAULT false; DECLARE v_explain     BOOLEAN DEFAULT true; DECLARE v_this_thread_enabed ENUM(\'YES\', \'NO\'); DECLARE v_runtime INT DEFAULT 0; DECLARE v_start INT DEFAULT 0; DECLARE v_found_stmts INT;  SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0;  SELECT INSTRUMENTED INTO v_this_thread_enabed FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); CALL sys.ps_setup_disable_thread(CONNECTION_ID());  DROP TEMPORARY TABLE IF EXISTS stmt_trace; CREATE TEMPORARY TABLE stmt_trace ( thread_id BIGINT UNSIGNED, timer_start BIGINT UNSIGNED, event_id BIGINT UNSIGNED, sql_text longtext, timer_wait BIGINT UNSIGNED, lock_time BIGINT UNSIGNED, errors BIGINT UNSIGNED, mysql_errno INT, rows_sent BIGINT UNSIGNED, rows_affected BIGINT UNSIGNED, rows_examined BIGINT UNSIGNED, created_tmp_tables BIGINT UNSIGNED, created_tmp_disk_tables BIGINT UNSIGNED, no_index_used BIGINT UNSIGNED, PRIMARY KEY (thread_id, timer_start) );  DROP TEMPORARY TABLE IF EXISTS stmt_stages; CREATE TEMPORARY TABLE stmt_stages ( event_id BIGINT UNSIGNED, stmt_id BIGINT UNSIGNED, event_name VARCHAR(128), timer_wait BIGINT UNSIGNED, PRIMARY KEY (event_id) );  SET v_start_fresh = in_start_fresh; IF v_start_fresh THEN TRUNCATE TABLE performance_schema.events_statements_history_long; TRUNCATE TABLE performance_schema.events_stages_history_long; END IF;  SET v_auto_enable = in_auto_enable; IF v_auto_enable THEN CALL sys.ps_setup_save(0);  UPDATE performance_schema.threads SET INSTRUMENTED = IF(PROCESSLIST_ID IS NOT NULL, \'YES\', \'NO\');  UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\' WHERE NAME NOT LIKE \'%\\_history\' AND NAME NOT LIKE \'events_wait%\' AND NAME NOT LIKE \'events_transactions%\' AND NAME <> \'statements_digest\';  UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED   = \'YES\' WHERE NAME LIKE \'statement/%\' OR NAME LIKE \'stage/%\'; END IF;  WHILE v_runtime < in_runtime DO SELECT UNIX_TIMESTAMP() INTO v_start;  INSERT IGNORE INTO stmt_trace SELECT thread_id, timer_start, event_id, sql_text, timer_wait, lock_time, errors, mysql_errno,  rows_sent, rows_affected, rows_examined, created_tmp_tables, created_tmp_disk_tables, no_index_used FROM performance_schema.events_statements_history_long WHERE digest = in_digest;  INSERT IGNORE INTO stmt_stages SELECT stages.event_id, stmt_trace.event_id, stages.event_name, stages.timer_wait FROM performance_schema.events_stages_history_long AS stages JOIN stmt_trace ON stages.nesting_event_id = stmt_trace.event_id;  SELECT SLEEP(in_interval) INTO @sleep; SET v_runtime = v_runtime + (UNIX_TIMESTAMP() - v_start); END WHILE;  SELECT \"SUMMARY STATISTICS\";  SELECT COUNT(*) executions, sys.format_time(SUM(timer_wait)) AS exec_time, sys.format_time(SUM(lock_time)) AS lock_time, SUM(rows_sent) AS rows_sent, SUM(rows_affected) AS rows_affected, SUM(rows_examined) AS rows_examined, SUM(created_tmp_tables) AS tmp_tables, SUM(no_index_used) AS full_scans FROM stmt_trace;  SELECT event_name, COUNT(*) as count, sys.format_time(SUM(timer_wait)) as latency FROM stmt_stages GROUP BY event_name ORDER BY SUM(timer_wait) DESC;  SELECT \"LONGEST RUNNING STATEMENT\";  SELECT thread_id, sys.format_time(timer_wait) AS exec_time, sys.format_time(lock_time) AS lock_time, rows_sent, rows_affected, rows_examined, created_tmp_tables AS tmp_tables, no_index_used AS full_scan FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1;  SELECT sql_text FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1;  SELECT sql_text, event_id INTO @sql, @sql_id FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1;  IF (@sql_id IS NOT NULL) THEN SELECT event_name, sys.format_time(timer_wait) as latency FROM stmt_stages WHERE stmt_id = @sql_id ORDER BY event_id; END IF;  DROP TEMPORARY TABLE stmt_trace; DROP TEMPORARY TABLE stmt_stages;  IF (@sql IS NOT NULL) THEN SET @stmt := CONCAT(\"EXPLAIN FORMAT=JSON \", @sql); BEGIN DECLARE CONTINUE HANDLER FOR 1064, 1146 SET v_explain = false;  PREPARE explain_stmt FROM @stmt; END;  IF (v_explain) THEN EXECUTE explain_stmt; DEALLOCATE PREPARE explain_stmt; END IF; END IF;  IF v_auto_enable THEN CALL sys.ps_setup_reload_saved(); END IF; IF (v_this_thread_enabed = \'YES\') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF;  SET sql_log_bin = @log_bin; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Traces all instrumentation within Performance Schema for a specific\n Statement Digest. \n \n When finding a statement of interest within the \n performance_schema.events_statements_summary_by_digest table, feed\n the DIGEST MD5 value in to this procedure, set how long to poll for, \n and at what interval to poll, and it will generate a report of all \n statistics tracked within Performance Schema for that digest for the\n interval.\n \n It will also attempt to generate an EXPLAIN for the longest running \n example of the digest during the interval. Note this may fail, as:\n \n * Performance Schema truncates long SQL_TEXT values (and hence the \n EXPLAIN will fail due to parse errors)\n * the default schema is sys (so tables that are not fully qualified\n in the query may not be found)\n * some queries such as SHOW are not supported in EXPLAIN.\n \n When the EXPLAIN fails, the error will be ignored and no EXPLAIN\n output generated.\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n in_digest (VARCHAR(32)):\n The statement digest identifier you would like to analyze\n in_runtime (INT):\n The number of seconds to run analysis for\n in_interval (DECIMAL(2,2)):\n The interval (in seconds, may be fractional) at which to try\n and take snapshots\n in_start_fresh (BOOLEAN):\n Whether to TRUNCATE the events_statements_history_long and\n events_stages_history_long tables before starting\n in_auto_enable (BOOLEAN):\n Whether to automatically turn on required consumers\n \n Example\n \n mysql> call ps_trace_statement_digest(\'891ec6860f98ba46d89dd20b0c03652c\', 10, 0.1, true, true);\n +--------------------+\n | SUMMARY STATISTICS |\n +--------------------+\n | SUMMARY STATISTICS |\n +--------------------+\n 1 row in set (9.11 sec)\n \n +------------+-----------+-----------+-----------+---------------+------------+------------+\n | executions | exec_time | lock_time | rows_sent | rows_examined | tmp_tables | full_scans |\n +------------+-----------+-----------+-----------+---------------+------------+------------+\n |         21 | 4.11 ms   | 2.00 ms   |         0 |            21 |          0 |          0 |\n +------------+-----------+-----------+-----------+---------------+------------+------------+\n 1 row in set (9.11 sec)\n \n +------------------------------------------+-------+-----------+\n | event_name                               | count | latency   |\n +------------------------------------------+-------+-----------+\n | stage/sql/checking query cache for query |    16 | 724.37 us |\n | stage/sql/statistics                     |    16 | 546.92 us |\n | stage/sql/freeing items                  |    18 | 520.11 us |\n | stage/sql/init                           |    51 | 466.80 us |\n ...\n | stage/sql/cleaning up                    |    18 | 11.92 us  |\n | stage/sql/executing                      |    16 | 6.95 us   |\n +------------------------------------------+-------+-----------+\n 17 rows in set (9.12 sec)\n \n +---------------------------+\n | LONGEST RUNNING STATEMENT |\n +---------------------------+\n | LONGEST RUNNING STATEMENT |\n +---------------------------+\n 1 row in set (9.16 sec)\n \n +-----------+-----------+-----------+-----------+---------------+------------+-----------+\n | thread_id | exec_time | lock_time | rows_sent | rows_examined | tmp_tables | full_scan |\n +-----------+-----------+-----------+-----------+---------------+------------+-----------+\n |    166646 | 618.43 us | 1.00 ms   |         0 |             1 |          0 |         0 |\n +-----------+-----------+-----------+-----------+---------------+------------+-----------+\n 1 row in set (9.16 sec)\n \n // Truncated for clarity...\n +-----------------------------------------------------------------+\n | sql_text                                                        |\n +-----------------------------------------------------------------+\n | select hibeventhe0_.id as id1382_, hibeventhe0_.createdTime ... |\n +-----------------------------------------------------------------+\n 1 row in set (9.17 sec)\n \n +------------------------------------------+-----------+\n | event_name                               | latency   |\n +------------------------------------------+-----------+\n | stage/sql/init                           | 8.61 us   |\n | stage/sql/Waiting for query cache lock   | 453.23 us |\n | stage/sql/init                           | 331.07 ns |\n | stage/sql/checking query cache for query | 43.04 us  |\n ...\n | stage/sql/freeing items                  | 30.46 us  |\n | stage/sql/cleaning up                    | 662.13 ns |\n +------------------------------------------+-----------+\n 18 rows in set (9.23 sec)\n \n +----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n | id | select_type | table        | type  | possible_keys | key       | key_len | ref         | rows | Extra |\n +----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n |  1 | SIMPLE      | hibeventhe0_ | const | fixedTime     | fixedTime | 775     | const,const |    1 | NULL  |\n +----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n 1 row in set (9.27 sec)\n \n Query OK, 0 rows affected (9.28 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN  DECLARE v_start_fresh BOOLEAN DEFAULT false; DECLARE v_auto_enable BOOLEAN DEFAULT false; DECLARE v_explain     BOOLEAN DEFAULT true; DECLARE v_this_thread_enabed ENUM(\'YES\', \'NO\'); DECLARE v_runtime INT DEFAULT 0; DECLARE v_start INT DEFAULT 0; DECLARE v_found_stmts INT;  SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0;  SELECT INSTRUMENTED INTO v_this_thread_enabed FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); CALL sys.ps_setup_disable_thread(CONNECTION_ID());  DROP TEMPORARY TABLE IF EXISTS stmt_trace; CREATE TEMPORARY TABLE stmt_trace ( thread_id BIGINT UNSIGNED, timer_start BIGINT UNSIGNED, event_id BIGINT UNSIGNED, sql_text longtext, timer_wait BIGINT UNSIGNED, lock_time BIGINT UNSIGNED, errors BIGINT UNSIGNED, mysql_errno INT, rows_sent BIGINT UNSIGNED, rows_affected BIGINT UNSIGNED, rows_examined BIGINT UNSIGNED, created_tmp_tables BIGINT UNSIGNED, created_tmp_disk_tables BIGINT UNSIGNED, no_index_used BIGINT UNSIGNED, PRIMARY KEY (thread_id, timer_start) );  DROP TEMPORARY TABLE IF EXISTS stmt_stages; CREATE TEMPORARY TABLE stmt_stages ( event_id BIGINT UNSIGNED, stmt_id BIGINT UNSIGNED, event_name VARCHAR(128), timer_wait BIGINT UNSIGNED, PRIMARY KEY (event_id) );  SET v_start_fresh = in_start_fresh; IF v_start_fresh THEN TRUNCATE TABLE performance_schema.events_statements_history_long; TRUNCATE TABLE performance_schema.events_stages_history_long; END IF;  SET v_auto_enable = in_auto_enable; IF v_auto_enable THEN CALL sys.ps_setup_save(0);  UPDATE performance_schema.threads SET INSTRUMENTED = IF(PROCESSLIST_ID IS NOT NULL, \'YES\', \'NO\');  UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\' WHERE NAME NOT LIKE \'%\\_history\' AND NAME NOT LIKE \'events_wait%\' AND NAME NOT LIKE \'events_transactions%\' AND NAME <> \'statements_digest\';  UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED   = \'YES\' WHERE NAME LIKE \'statement/%\' OR NAME LIKE \'stage/%\'; END IF;  WHILE v_runtime < in_runtime DO SELECT UNIX_TIMESTAMP() INTO v_start;  INSERT IGNORE INTO stmt_trace SELECT thread_id, timer_start, event_id, sql_text, timer_wait, lock_time, errors, mysql_errno,  rows_sent, rows_affected, rows_examined, created_tmp_tables, created_tmp_disk_tables, no_index_used FROM performance_schema.events_statements_history_long WHERE digest = in_digest;  INSERT IGNORE INTO stmt_stages SELECT stages.event_id, stmt_trace.event_id, stages.event_name, stages.timer_wait FROM performance_schema.events_stages_history_long AS stages JOIN stmt_trace ON stages.nesting_event_id = stmt_trace.event_id;  SELECT SLEEP(in_interval) INTO @sleep; SET v_runtime = v_runtime + (UNIX_TIMESTAMP() - v_start); END WHILE;  SELECT \"SUMMARY STATISTICS\";  SELECT COUNT(*) executions, sys.format_time(SUM(timer_wait)) AS exec_time, sys.format_time(SUM(lock_time)) AS lock_time, SUM(rows_sent) AS rows_sent, SUM(rows_affected) AS rows_affected, SUM(rows_examined) AS rows_examined, SUM(created_tmp_tables) AS tmp_tables, SUM(no_index_used) AS full_scans FROM stmt_trace;  SELECT event_name, COUNT(*) as count, sys.format_time(SUM(timer_wait)) as latency FROM stmt_stages GROUP BY event_name ORDER BY SUM(timer_wait) DESC;  SELECT \"LONGEST RUNNING STATEMENT\";  SELECT thread_id, sys.format_time(timer_wait) AS exec_time, sys.format_time(lock_time) AS lock_time, rows_sent, rows_affected, rows_examined, created_tmp_tables AS tmp_tables, no_index_used AS full_scan FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1;  SELECT sql_text FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1;  SELECT sql_text, event_id INTO @sql, @sql_id FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1;  IF (@sql_id IS NOT NULL) THEN SELECT event_name, sys.format_time(timer_wait) as latency FROM stmt_stages WHERE stmt_id = @sql_id ORDER BY event_id; END IF;  DROP TEMPORARY TABLE stmt_trace; DROP TEMPORARY TABLE stmt_stages;  IF (@sql IS NOT NULL) THEN SET @stmt := CONCAT(\"EXPLAIN FORMAT=JSON \", @sql); BEGIN DECLARE CONTINUE HANDLER FOR 1064, 1146 SET v_explain = false;  PREPARE explain_stmt FROM @stmt; END;  IF (v_explain) THEN EXECUTE explain_stmt; DEALLOCATE PREPARE explain_stmt; END IF; END IF;  IF v_auto_enable THEN CALL sys.ps_setup_reload_saved(); END IF; IF (v_this_thread_enabed = \'YES\') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF;  SET sql_log_bin = @log_bin; END'),('sys','ps_trace_thread','PROCEDURE','ps_trace_thread','SQL','MODIFIES_SQL_DATA','NO','INVOKER',_binary ' IN in_thread_id BIGINT UNSIGNED, IN in_outfile VARCHAR(255), IN in_max_runtime DECIMAL(20,2), IN in_interval DECIMAL(20,2), IN in_start_fresh BOOLEAN, IN in_auto_setup BOOLEAN, IN in_debug BOOLEAN ','',_binary 'BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_start, v_runtime DECIMAL(20,2) DEFAULT 0.0; DECLARE v_min_event_id bigint unsigned DEFAULT 0; DECLARE v_this_thread_enabed ENUM(\'YES\', \'NO\'); DECLARE v_event longtext; DECLARE c_stack CURSOR FOR SELECT CONCAT(IF(nesting_event_id IS NOT NULL, CONCAT(nesting_event_id, \' -> \'), \'\'),  event_id, \'; \', event_id, \' [label=\"\', \'(\', sys.format_time(timer_wait), \') \', IF (event_name NOT LIKE \'wait/io%\',  SUBSTRING_INDEX(event_name, \'/\', -2),  IF (event_name NOT LIKE \'wait/io/file%\' OR event_name NOT LIKE \'wait/io/socket%\', SUBSTRING_INDEX(event_name, \'/\', -4), event_name) ), IF (event_name LIKE \'transaction\', IFNULL(CONCAT(\'\\\\n\', wait_info), \'\'), \'\'), IF (event_name LIKE \'statement/%\', IFNULL(CONCAT(\'\\\\n\', wait_info), \'\'), \'\'), IF (in_debug AND event_name LIKE \'wait%\', wait_info, \'\'), \'\", \',  CASE WHEN event_name LIKE \'wait/io/file%\' THEN  \'shape=box, style=filled, color=red\' WHEN event_name LIKE \'wait/io/table%\' THEN  \'shape=box, style=filled, color=green\' WHEN event_name LIKE \'wait/io/socket%\' THEN \'shape=box, style=filled, color=yellow\' WHEN event_name LIKE \'wait/synch/mutex%\' THEN \'style=filled, color=lightskyblue\' WHEN event_name LIKE \'wait/synch/cond%\' THEN \'style=filled, color=darkseagreen3\' WHEN event_name LIKE \'wait/synch/rwlock%\' THEN \'style=filled, color=orchid\' WHEN event_name LIKE \'wait/synch/sxlock%\' THEN \'style=filled, color=palevioletred\'  WHEN event_name LIKE \'wait/lock%\' THEN \'shape=box, style=filled, color=tan\' WHEN event_name LIKE \'statement/%\' THEN CONCAT(\'shape=box, style=bold\', CASE WHEN event_name LIKE \'statement/com/%\' THEN \' style=filled, color=darkseagreen\' ELSE IF((timer_wait/1000000000000) > @@long_query_time,  \' style=filled, color=red\',  \' style=filled, color=lightblue\') END ) WHEN event_name LIKE \'transaction\' THEN \'shape=box, style=filled, color=lightblue3\' WHEN event_name LIKE \'stage/%\' THEN \'style=filled, color=slategray3\' WHEN event_name LIKE \'%idle%\' THEN \'shape=box, style=filled, color=firebrick3\' ELSE \'\' END, \'];\\n\' ) event, event_id FROM ( (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, CONCAT(\'trx_id: \',  IFNULL(trx_id, \'\'), \'\\\\n\', \'gtid: \', IFNULL(gtid, \'\'), \'\\\\n\', \'state: \', state, \'\\\\n\', \'mode: \', access_mode, \'\\\\n\', \'isolation: \', isolation_level, \'\\\\n\', \'autocommit: \', autocommit, \'\\\\n\', \'savepoints: \', number_of_savepoints, \'\\\\n\' ) AS wait_info FROM performance_schema.events_transactions_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id,  CONCAT(\'statement: \', sql_text, \'\\\\n\', \'errors: \', errors, \'\\\\n\', \'warnings: \', warnings, \'\\\\n\', \'lock time: \', sys.format_time(lock_time),\'\\\\n\', \'rows affected: \', rows_affected, \'\\\\n\', \'rows sent: \', rows_sent, \'\\\\n\', \'rows examined: \', rows_examined, \'\\\\n\', \'tmp tables: \', created_tmp_tables, \'\\\\n\', \'tmp disk tables: \', created_tmp_disk_tables, \'\\\\n\' \'select scan: \', select_scan, \'\\\\n\', \'select full join: \', select_full_join, \'\\\\n\', \'select full range join: \', select_full_range_join, \'\\\\n\', \'select range: \', select_range, \'\\\\n\', \'select range check: \', select_range_check, \'\\\\n\',  \'sort merge passes: \', sort_merge_passes, \'\\\\n\', \'sort rows: \', sort_rows, \'\\\\n\', \'sort range: \', sort_range, \'\\\\n\', \'sort scan: \', sort_scan, \'\\\\n\', \'no index used: \', IF(no_index_used, \'TRUE\', \'FALSE\'), \'\\\\n\', \'no good index used: \', IF(no_good_index_used, \'TRUE\', \'FALSE\'), \'\\\\n\' ) AS wait_info FROM performance_schema.events_statements_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, null AS wait_info FROM performance_schema.events_stages_history_long  WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION  (SELECT thread_id, event_id,  CONCAT(event_name,  IF(event_name NOT LIKE \'wait/synch/mutex%\', IFNULL(CONCAT(\' - \', operation), \'\'), \'\'),  IF(number_of_bytes IS NOT NULL, CONCAT(\' \', number_of_bytes, \' bytes\'), \'\'), IF(event_name LIKE \'wait/io/file%\', \'\\\\n\', \'\'), IF(object_schema IS NOT NULL, CONCAT(\'\\\\nObject: \', object_schema, \'.\'), \'\'),  IF(object_name IS NOT NULL,  IF (event_name LIKE \'wait/io/socket%\', CONCAT(\'\\\\n\', IF (object_name LIKE \':0%\', @@socket, object_name)), object_name), \'\' ), IF(index_name IS NOT NULL, CONCAT(\' Index: \', index_name), \'\'), \'\\\\n\' ) AS event_name, timer_wait, timer_start, nesting_event_id, source AS wait_info FROM performance_schema.events_waits_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) ) events  ORDER BY event_id; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0;  SELECT INSTRUMENTED INTO v_this_thread_enabed FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); CALL sys.ps_setup_disable_thread(CONNECTION_ID());  IF (in_auto_setup) THEN CALL sys.ps_setup_save(0);  DELETE FROM performance_schema.setup_actors;  UPDATE performance_schema.threads SET INSTRUMENTED = IF(THREAD_ID = in_thread_id, \'YES\', \'NO\');  UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\' WHERE NAME NOT LIKE \'%\\_history\';  UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED   = \'YES\'; END IF;  IF (in_start_fresh) THEN TRUNCATE performance_schema.events_transactions_history_long; TRUNCATE performance_schema.events_statements_history_long; TRUNCATE performance_schema.events_stages_history_long; TRUNCATE performance_schema.events_waits_history_long; END IF;  DROP TEMPORARY TABLE IF EXISTS tmp_events; CREATE TEMPORARY TABLE tmp_events ( event_id bigint unsigned NOT NULL, event longblob, PRIMARY KEY (event_id) );  INSERT INTO tmp_events VALUES (0, CONCAT(\'digraph events { rankdir=LR; nodesep=0.10;\\n\', \'// Stack created .....: \', NOW(), \'\\n\', \'// MySQL version .....: \', VERSION(), \'\\n\', \'// MySQL hostname ....: \', @@hostname, \'\\n\', \'// MySQL port ........: \', @@port, \'\\n\', \'// MySQL socket ......: \', @@socket, \'\\n\', \'// MySQL user ........: \', CURRENT_USER(), \'\\n\'));  SELECT CONCAT(\'Data collection starting for THREAD_ID = \', in_thread_id) AS \'Info\';  SET v_min_event_id = 0, v_start        = UNIX_TIMESTAMP(), in_interval    = IFNULL(in_interval, 1.00), in_max_runtime = IFNULL(in_max_runtime, 60.00);  WHILE (v_runtime < in_max_runtime AND (SELECT INSTRUMENTED FROM performance_schema.threads WHERE THREAD_ID = in_thread_id) = \'YES\') DO SET v_done = FALSE; OPEN c_stack; c_stack_loop: LOOP FETCH c_stack INTO v_event, v_min_event_id; IF v_done THEN LEAVE c_stack_loop; END IF;  IF (LENGTH(v_event) > 0) THEN INSERT INTO tmp_events VALUES (v_min_event_id, v_event); END IF; END LOOP; CLOSE c_stack;  SELECT SLEEP(in_interval) INTO @sleep; SET v_runtime = (UNIX_TIMESTAMP() - v_start); END WHILE;  INSERT INTO tmp_events VALUES (v_min_event_id+1, \'}\');  SET @query = CONCAT(\'SELECT event FROM tmp_events ORDER BY event_id INTO OUTFILE \'\'\', in_outfile, \'\'\' FIELDS ESCAPED BY \'\'\'\' LINES TERMINATED BY \'\'\'\'\'); PREPARE stmt_output FROM @query; EXECUTE stmt_output; DEALLOCATE PREPARE stmt_output;  SELECT CONCAT(\'Stack trace written to \', in_outfile) AS \'Info\'; SELECT CONCAT(\'dot -Tpdf -o /tmp/stack_\', in_thread_id, \'.pdf \', in_outfile) AS \'Convert to PDF\'; SELECT CONCAT(\'dot -Tpng -o /tmp/stack_\', in_thread_id, \'.png \', in_outfile) AS \'Convert to PNG\'; DROP TEMPORARY TABLE tmp_events;  IF (in_auto_setup) THEN CALL sys.ps_setup_reload_saved(); END IF; IF (v_this_thread_enabed = \'YES\') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF;  SET sql_log_bin = @log_bin; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Dumps all data within Performance Schema for an instrumented thread,\n to create a DOT formatted graph file. \n \n Each resultset returned from the procedure should be used for a complete graph\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n in_thread_id (BIGINT UNSIGNED):\n The thread that you would like a stack trace for\n in_outfile  (VARCHAR(255)):\n The filename the dot file will be written to\n in_max_runtime (DECIMAL(20,2)):\n The maximum time to keep collecting data.\n Use NULL to get the default which is 60 seconds.\n in_interval (DECIMAL(20,2)): \n How long to sleep between data collections. \n Use NULL to get the default which is 1 second.\n in_start_fresh (BOOLEAN):\n Whether to reset all Performance Schema data before tracing.\n in_auto_setup (BOOLEAN):\n Whether to disable all other threads and enable all consumers/instruments. \n This will also reset the settings at the end of the run.\n in_debug (BOOLEAN):\n Whether you would like to include file:lineno in the graph\n \n Example\n \n mysql> CALL sys.ps_trace_thread(25, CONCAT(\'/tmp/stack-\', REPLACE(NOW(), \' \', \'-\'), \'.dot\'), NULL, NULL, TRUE, TRUE, TRUE);\n +-------------------+\n | summary           |\n +-------------------+\n | Disabled 1 thread |\n +-------------------+\n 1 row in set (0.00 sec)\n \n +---------------------------------------------+\n | Info                                        |\n +---------------------------------------------+\n | Data collection starting for THREAD_ID = 25 |\n +---------------------------------------------+\n 1 row in set (0.03 sec)\n \n +-----------------------------------------------------------+\n | Info                                                      |\n +-----------------------------------------------------------+\n | Stack trace written to /tmp/stack-2014-02-16-21:18:41.dot |\n +-----------------------------------------------------------+\n 1 row in set (60.07 sec)\n \n +-------------------------------------------------------------------+\n | Convert to PDF                                                    |\n +-------------------------------------------------------------------+\n | dot -Tpdf -o /tmp/stack_25.pdf /tmp/stack-2014-02-16-21:18:41.dot |\n +-------------------------------------------------------------------+\n 1 row in set (60.07 sec)\n \n +-------------------------------------------------------------------+\n | Convert to PNG                                                    |\n +-------------------------------------------------------------------+\n | dot -Tpng -o /tmp/stack_25.png /tmp/stack-2014-02-16-21:18:41.dot |\n +-------------------------------------------------------------------+\n 1 row in set (60.07 sec)\n \n +------------------+\n | summary          |\n +------------------+\n | Enabled 1 thread |\n +------------------+\n 1 row in set (60.32 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_start, v_runtime DECIMAL(20,2) DEFAULT 0.0; DECLARE v_min_event_id bigint unsigned DEFAULT 0; DECLARE v_this_thread_enabed ENUM(\'YES\', \'NO\'); DECLARE v_event longtext; DECLARE c_stack CURSOR FOR SELECT CONCAT(IF(nesting_event_id IS NOT NULL, CONCAT(nesting_event_id, \' -> \'), \'\'),  event_id, \'; \', event_id, \' [label=\"\', \'(\', sys.format_time(timer_wait), \') \', IF (event_name NOT LIKE \'wait/io%\',  SUBSTRING_INDEX(event_name, \'/\', -2),  IF (event_name NOT LIKE \'wait/io/file%\' OR event_name NOT LIKE \'wait/io/socket%\', SUBSTRING_INDEX(event_name, \'/\', -4), event_name) ), IF (event_name LIKE \'transaction\', IFNULL(CONCAT(\'\\n\', wait_info), \'\'), \'\'), IF (event_name LIKE \'statement/%\', IFNULL(CONCAT(\'\\n\', wait_info), \'\'), \'\'), IF (in_debug AND event_name LIKE \'wait%\', wait_info, \'\'), \'\", \',  CASE WHEN event_name LIKE \'wait/io/file%\' THEN  \'shape=box, style=filled, color=red\' WHEN event_name LIKE \'wait/io/table%\' THEN  \'shape=box, style=filled, color=green\' WHEN event_name LIKE \'wait/io/socket%\' THEN \'shape=box, style=filled, color=yellow\' WHEN event_name LIKE \'wait/synch/mutex%\' THEN \'style=filled, color=lightskyblue\' WHEN event_name LIKE \'wait/synch/cond%\' THEN \'style=filled, color=darkseagreen3\' WHEN event_name LIKE \'wait/synch/rwlock%\' THEN \'style=filled, color=orchid\' WHEN event_name LIKE \'wait/synch/sxlock%\' THEN \'style=filled, color=palevioletred\'  WHEN event_name LIKE \'wait/lock%\' THEN \'shape=box, style=filled, color=tan\' WHEN event_name LIKE \'statement/%\' THEN CONCAT(\'shape=box, style=bold\', CASE WHEN event_name LIKE \'statement/com/%\' THEN \' style=filled, color=darkseagreen\' ELSE IF((timer_wait/1000000000000) > @@long_query_time,  \' style=filled, color=red\',  \' style=filled, color=lightblue\') END ) WHEN event_name LIKE \'transaction\' THEN \'shape=box, style=filled, color=lightblue3\' WHEN event_name LIKE \'stage/%\' THEN \'style=filled, color=slategray3\' WHEN event_name LIKE \'%idle%\' THEN \'shape=box, style=filled, color=firebrick3\' ELSE \'\' END, \'];\n\' ) event, event_id FROM ( (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, CONCAT(\'trx_id: \',  IFNULL(trx_id, \'\'), \'\\n\', \'gtid: \', IFNULL(gtid, \'\'), \'\\n\', \'state: \', state, \'\\n\', \'mode: \', access_mode, \'\\n\', \'isolation: \', isolation_level, \'\\n\', \'autocommit: \', autocommit, \'\\n\', \'savepoints: \', number_of_savepoints, \'\\n\' ) AS wait_info FROM performance_schema.events_transactions_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id,  CONCAT(\'statement: \', sql_text, \'\\n\', \'errors: \', errors, \'\\n\', \'warnings: \', warnings, \'\\n\', \'lock time: \', sys.format_time(lock_time),\'\\n\', \'rows affected: \', rows_affected, \'\\n\', \'rows sent: \', rows_sent, \'\\n\', \'rows examined: \', rows_examined, \'\\n\', \'tmp tables: \', created_tmp_tables, \'\\n\', \'tmp disk tables: \', created_tmp_disk_tables, \'\\n\' \'select scan: \', select_scan, \'\\n\', \'select full join: \', select_full_join, \'\\n\', \'select full range join: \', select_full_range_join, \'\\n\', \'select range: \', select_range, \'\\n\', \'select range check: \', select_range_check, \'\\n\',  \'sort merge passes: \', sort_merge_passes, \'\\n\', \'sort rows: \', sort_rows, \'\\n\', \'sort range: \', sort_range, \'\\n\', \'sort scan: \', sort_scan, \'\\n\', \'no index used: \', IF(no_index_used, \'TRUE\', \'FALSE\'), \'\\n\', \'no good index used: \', IF(no_good_index_used, \'TRUE\', \'FALSE\'), \'\\n\' ) AS wait_info FROM performance_schema.events_statements_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, null AS wait_info FROM performance_schema.events_stages_history_long  WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION  (SELECT thread_id, event_id,  CONCAT(event_name,  IF(event_name NOT LIKE \'wait/synch/mutex%\', IFNULL(CONCAT(\' - \', operation), \'\'), \'\'),  IF(number_of_bytes IS NOT NULL, CONCAT(\' \', number_of_bytes, \' bytes\'), \'\'), IF(event_name LIKE \'wait/io/file%\', \'\\n\', \'\'), IF(object_schema IS NOT NULL, CONCAT(\'\\nObject: \', object_schema, \'.\'), \'\'),  IF(object_name IS NOT NULL,  IF (event_name LIKE \'wait/io/socket%\', CONCAT(\'\\n\', IF (object_name LIKE \':0%\', @@socket, object_name)), object_name), \'\' ), IF(index_name IS NOT NULL, CONCAT(\' Index: \', index_name), \'\'), \'\\n\' ) AS event_name, timer_wait, timer_start, nesting_event_id, source AS wait_info FROM performance_schema.events_waits_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) ) events  ORDER BY event_id; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0;  SELECT INSTRUMENTED INTO v_this_thread_enabed FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); CALL sys.ps_setup_disable_thread(CONNECTION_ID());  IF (in_auto_setup) THEN CALL sys.ps_setup_save(0);  DELETE FROM performance_schema.setup_actors;  UPDATE performance_schema.threads SET INSTRUMENTED = IF(THREAD_ID = in_thread_id, \'YES\', \'NO\');  UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\' WHERE NAME NOT LIKE \'%\\_history\';  UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED   = \'YES\'; END IF;  IF (in_start_fresh) THEN TRUNCATE performance_schema.events_transactions_history_long; TRUNCATE performance_schema.events_statements_history_long; TRUNCATE performance_schema.events_stages_history_long; TRUNCATE performance_schema.events_waits_history_long; END IF;  DROP TEMPORARY TABLE IF EXISTS tmp_events; CREATE TEMPORARY TABLE tmp_events ( event_id bigint unsigned NOT NULL, event longblob, PRIMARY KEY (event_id) );  INSERT INTO tmp_events VALUES (0, CONCAT(\'digraph events { rankdir=LR; nodesep=0.10;\n\', \'// Stack created .....: \', NOW(), \'\n\', \'// MySQL version .....: \', VERSION(), \'\n\', \'// MySQL hostname ....: \', @@hostname, \'\n\', \'// MySQL port ........: \', @@port, \'\n\', \'// MySQL socket ......: \', @@socket, \'\n\', \'// MySQL user ........: \', CURRENT_USER(), \'\n\'));  SELECT CONCAT(\'Data collection starting for THREAD_ID = \', in_thread_id) AS \'Info\';  SET v_min_event_id = 0, v_start        = UNIX_TIMESTAMP(), in_interval    = IFNULL(in_interval, 1.00), in_max_runtime = IFNULL(in_max_runtime, 60.00);  WHILE (v_runtime < in_max_runtime AND (SELECT INSTRUMENTED FROM performance_schema.threads WHERE THREAD_ID = in_thread_id) = \'YES\') DO SET v_done = FALSE; OPEN c_stack; c_stack_loop: LOOP FETCH c_stack INTO v_event, v_min_event_id; IF v_done THEN LEAVE c_stack_loop; END IF;  IF (LENGTH(v_event) > 0) THEN INSERT INTO tmp_events VALUES (v_min_event_id, v_event); END IF; END LOOP; CLOSE c_stack;  SELECT SLEEP(in_interval) INTO @sleep; SET v_runtime = (UNIX_TIMESTAMP() - v_start); END WHILE;  INSERT INTO tmp_events VALUES (v_min_event_id+1, \'}\');  SET @query = CONCAT(\'SELECT event FROM tmp_events ORDER BY event_id INTO OUTFILE \'\', in_outfile, \'\' FIELDS ESCAPED BY \'\' LINES TERMINATED BY \'\'\'); PREPARE stmt_output FROM @query; EXECUTE stmt_output; DEALLOCATE PREPARE stmt_output;  SELECT CONCAT(\'Stack trace written to \', in_outfile) AS \'Info\'; SELECT CONCAT(\'dot -Tpdf -o /tmp/stack_\', in_thread_id, \'.pdf \', in_outfile) AS \'Convert to PDF\'; SELECT CONCAT(\'dot -Tpng -o /tmp/stack_\', in_thread_id, \'.png \', in_outfile) AS \'Convert to PNG\'; DROP TEMPORARY TABLE tmp_events;  IF (in_auto_setup) THEN CALL sys.ps_setup_reload_saved(); END IF; IF (v_this_thread_enabed = \'YES\') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF;  SET sql_log_bin = @log_bin; END'),('sys','ps_setup_disable_background_threads','PROCEDURE','ps_setup_disable_background_threads','SQL','MODIFIES_SQL_DATA','NO','INVOKER','','',_binary 'BEGIN UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE type = \'BACKGROUND\';  SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' background thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Disable all background thread instrumentation within Performance Schema.\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_setup_disable_background_threads();\n +--------------------------------+\n | summary                        |\n +--------------------------------+\n | Disabled 18 background threads |\n +--------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE type = \'BACKGROUND\';  SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' background thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_disable_consumer','PROCEDURE','ps_setup_disable_consumer','SQL','MODIFIES_SQL_DATA','NO','INVOKER',_binary ' IN consumer VARCHAR(128) ','',_binary 'BEGIN UPDATE performance_schema.setup_consumers SET enabled = \'NO\' WHERE name LIKE CONCAT(\'%\', consumer, \'%\');  SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' consumer\', IF(@rows != 1, \'s\', \'\')) AS summary; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Disables consumers within Performance Schema \n matching the input pattern.\n \n Parameters\n \n consumer (VARCHAR(128)):\n A LIKE pattern match (using \"%consumer%\") of consumers to disable\n \n Example\n \n To disable all consumers:\n \n mysql> CALL sys.ps_setup_disable_consumer(\'\');\n +--------------------------+\n | summary                  |\n +--------------------------+\n | Disabled 15 consumers    |\n +--------------------------+\n 1 row in set (0.02 sec)\n \n To disable just the event_stage consumers:\n \n mysql> CALL sys.ps_setup_disable_comsumers(\'stage\');\n +------------------------+\n | summary                |\n +------------------------+\n | Disabled 3 consumers   |\n +------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN UPDATE performance_schema.setup_consumers SET enabled = \'NO\' WHERE name LIKE CONCAT(\'%\', consumer, \'%\');  SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' consumer\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_disable_instrument','PROCEDURE','ps_setup_disable_instrument','SQL','MODIFIES_SQL_DATA','NO','INVOKER',_binary ' IN in_pattern VARCHAR(128) ','',_binary 'BEGIN UPDATE performance_schema.setup_instruments SET enabled = \'NO\', timed = \'NO\' WHERE name LIKE CONCAT(\'%\', in_pattern, \'%\');  SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' instrument\', IF(@rows != 1, \'s\', \'\')) AS summary; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Disables instruments within Performance Schema \n matching the input pattern.\n \n Parameters\n \n in_pattern (VARCHAR(128)):\n A LIKE pattern match (using \"%in_pattern%\") of events to disable\n \n Example\n \n To disable all mutex instruments:\n \n mysql> CALL sys.ps_setup_disable_instrument(\'wait/synch/mutex\');\n +--------------------------+\n | summary                  |\n +--------------------------+\n | Disabled 155 instruments |\n +--------------------------+\n 1 row in set (0.02 sec)\n \n To disable just a specific TCP/IP based network IO instrument:\n \n mysql> CALL sys.ps_setup_disable_instrument(\'wait/io/socket/sql/server_tcpip_socket\');\n +------------------------+\n | summary                |\n +------------------------+\n | Disabled 1 instruments |\n +------------------------+\n 1 row in set (0.00 sec)\n \n To disable all instruments:\n \n mysql> CALL sys.ps_setup_disable_instrument(\'\');\n +--------------------------+\n | summary                  |\n +--------------------------+\n | Disabled 547 instruments |\n +--------------------------+\n 1 row in set (0.01 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN UPDATE performance_schema.setup_instruments SET enabled = \'NO\', timed = \'NO\' WHERE name LIKE CONCAT(\'%\', in_pattern, \'%\');  SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' instrument\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_disable_thread','PROCEDURE','ps_setup_disable_thread','SQL','MODIFIES_SQL_DATA','NO','INVOKER',_binary ' IN in_connection_id BIGINT ','',_binary 'BEGIN UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE processlist_id = in_connection_id;  SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Disable the given connection/thread in Performance Schema.\n \n Parameters\n \n in_connection_id (BIGINT):\n The connection ID (PROCESSLIST_ID from performance_schema.threads\n or the ID shown within SHOW PROCESSLIST)\n \n Example\n \n mysql> CALL sys.ps_setup_disable_thread(3);\n +-------------------+\n | summary           |\n +-------------------+\n | Disabled 1 thread |\n +-------------------+\n 1 row in set (0.01 sec)\n \n To disable the current connection:\n \n mysql> CALL sys.ps_setup_disable_thread(CONNECTION_ID());\n +-------------------+\n | summary           |\n +-------------------+\n | Disabled 1 thread |\n +-------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE processlist_id = in_connection_id;  SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_enable_background_threads','PROCEDURE','ps_setup_enable_background_threads','SQL','MODIFIES_SQL_DATA','NO','INVOKER','','',_binary 'BEGIN UPDATE performance_schema.threads SET instrumented = \'YES\' WHERE type = \'BACKGROUND\';  SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' background thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Enable all background thread instrumentation within Performance Schema.\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_setup_enable_background_threads();\n +-------------------------------+\n | summary                       |\n +-------------------------------+\n | Enabled 18 background threads |\n +-------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN UPDATE performance_schema.threads SET instrumented = \'YES\' WHERE type = \'BACKGROUND\';  SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' background thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_enable_consumer','PROCEDURE','ps_setup_enable_consumer','SQL','MODIFIES_SQL_DATA','NO','INVOKER',_binary ' IN consumer VARCHAR(128) ','',_binary 'BEGIN UPDATE performance_schema.setup_consumers SET enabled = \'YES\' WHERE name LIKE CONCAT(\'%\', consumer, \'%\');  SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' consumer\', IF(@rows != 1, \'s\', \'\')) AS summary; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Enables consumers within Performance Schema \n matching the input pattern.\n \n Parameters\n \n consumer (VARCHAR(128)):\n A LIKE pattern match (using \"%consumer%\") of consumers to enable\n \n Example\n \n To enable all consumers:\n \n mysql> CALL sys.ps_setup_enable_consumer(\'\');\n +-------------------------+\n | summary                 |\n +-------------------------+\n | Enabled 10 consumers    |\n +-------------------------+\n 1 row in set (0.02 sec)\n \n Query OK, 0 rows affected (0.02 sec)\n \n To enable just \"waits\" consumers:\n \n mysql> CALL sys.ps_setup_enable_consumer(\'waits\');\n +-----------------------+\n | summary               |\n +-----------------------+\n | Enabled 3 consumers   |\n +-----------------------+\n 1 row in set (0.00 sec)\n \n Query OK, 0 rows affected (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN UPDATE performance_schema.setup_consumers SET enabled = \'YES\' WHERE name LIKE CONCAT(\'%\', consumer, \'%\');  SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' consumer\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_enable_instrument','PROCEDURE','ps_setup_enable_instrument','SQL','MODIFIES_SQL_DATA','NO','INVOKER',_binary ' IN in_pattern VARCHAR(128) ','',_binary 'BEGIN UPDATE performance_schema.setup_instruments SET enabled = \'YES\', timed = \'YES\' WHERE name LIKE CONCAT(\'%\', in_pattern, \'%\');  SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' instrument\', IF(@rows != 1, \'s\', \'\')) AS summary; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Enables instruments within Performance Schema \n matching the input pattern.\n \n Parameters\n \n in_pattern (VARCHAR(128)):\n A LIKE pattern match (using \"%in_pattern%\") of events to enable\n \n Example\n \n To enable all mutex instruments:\n \n mysql> CALL sys.ps_setup_enable_instrument(\'wait/synch/mutex\');\n +-------------------------+\n | summary                 |\n +-------------------------+\n | Enabled 155 instruments |\n +-------------------------+\n 1 row in set (0.02 sec)\n \n Query OK, 0 rows affected (0.02 sec)\n \n To enable just a specific TCP/IP based network IO instrument:\n \n mysql> CALL sys.ps_setup_enable_instrument(\'wait/io/socket/sql/server_tcpip_socket\');\n +-----------------------+\n | summary               |\n +-----------------------+\n | Enabled 1 instruments |\n +-----------------------+\n 1 row in set (0.00 sec)\n \n Query OK, 0 rows affected (0.00 sec)\n \n To enable all instruments:\n \n mysql> CALL sys.ps_setup_enable_instrument(\'\');\n +-------------------------+\n | summary                 |\n +-------------------------+\n | Enabled 547 instruments |\n +-------------------------+\n 1 row in set (0.01 sec)\n \n Query OK, 0 rows affected (0.01 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN UPDATE performance_schema.setup_instruments SET enabled = \'YES\', timed = \'YES\' WHERE name LIKE CONCAT(\'%\', in_pattern, \'%\');  SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' instrument\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_enable_thread','PROCEDURE','ps_setup_enable_thread','SQL','MODIFIES_SQL_DATA','NO','INVOKER',_binary ' IN in_connection_id BIGINT ','',_binary 'BEGIN UPDATE performance_schema.threads SET instrumented = \'YES\' WHERE processlist_id = in_connection_id;  SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Enable the given connection/thread in Performance Schema.\n \n Parameters\n \n in_connection_id (BIGINT):\n The connection ID (PROCESSLIST_ID from performance_schema.threads\n or the ID shown within SHOW PROCESSLIST)\n \n Example\n \n mysql> CALL sys.ps_setup_enable_thread(3);\n +------------------+\n | summary          |\n +------------------+\n | Enabled 1 thread |\n +------------------+\n 1 row in set (0.01 sec)\n \n To enable the current connection:\n \n mysql> CALL sys.ps_setup_enable_thread(CONNECTION_ID());\n +------------------+\n | summary          |\n +------------------+\n | Enabled 1 thread |\n +------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN UPDATE performance_schema.threads SET instrumented = \'YES\' WHERE processlist_id = in_connection_id;  SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_reload_saved','PROCEDURE','ps_setup_reload_saved','SQL','MODIFIES_SQL_DATA','NO','INVOKER','','',_binary 'BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_lock_result INT; DECLARE v_lock_used_by BIGINT; DECLARE v_signal_message TEXT; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN SIGNAL SQLSTATE VALUE \'90001\' SET MESSAGE_TEXT = \'An error occurred, was sys.ps_setup_save() run before this procedure?\'; END;  SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0;  SELECT IS_USED_LOCK(\'sys.ps_setup_save\') INTO v_lock_used_by;  IF (v_lock_used_by != CONNECTION_ID()) THEN SET v_signal_message = CONCAT(\'The sys.ps_setup_save lock is currently owned by \', v_lock_used_by); SIGNAL SQLSTATE VALUE \'90002\' SET MESSAGE_TEXT = v_signal_message; END IF;  DELETE FROM performance_schema.setup_actors; INSERT INTO performance_schema.setup_actors SELECT * FROM tmp_setup_actors;  BEGIN DECLARE v_name varchar(64); DECLARE v_enabled enum(\'YES\', \'NO\'); DECLARE c_consumers CURSOR FOR SELECT NAME, ENABLED FROM tmp_setup_consumers; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  SET v_done = FALSE; OPEN c_consumers; c_consumers_loop: LOOP FETCH c_consumers INTO v_name, v_enabled; IF v_done THEN LEAVE c_consumers_loop; END IF;  UPDATE performance_schema.setup_consumers SET ENABLED = v_enabled WHERE NAME = v_name; END LOOP; CLOSE c_consumers; END;  UPDATE performance_schema.setup_instruments INNER JOIN tmp_setup_instruments USING (NAME) SET performance_schema.setup_instruments.ENABLED = tmp_setup_instruments.ENABLED, performance_schema.setup_instruments.TIMED   = tmp_setup_instruments.TIMED; BEGIN DECLARE v_thread_id bigint unsigned; DECLARE v_instrumented enum(\'YES\', \'NO\'); DECLARE c_threads CURSOR FOR SELECT THREAD_ID, INSTRUMENTED FROM tmp_threads; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  SET v_done = FALSE; OPEN c_threads; c_threads_loop: LOOP FETCH c_threads INTO v_thread_id, v_instrumented; IF v_done THEN LEAVE c_threads_loop; END IF;  UPDATE performance_schema.threads SET INSTRUMENTED = v_instrumented WHERE THREAD_ID = v_thread_id; END LOOP; CLOSE c_threads; END;  UPDATE performance_schema.threads SET INSTRUMENTED = IF(PROCESSLIST_USER IS NOT NULL, sys.ps_is_account_enabled(PROCESSLIST_HOST, PROCESSLIST_USER), \'YES\') WHERE THREAD_ID NOT IN (SELECT THREAD_ID FROM tmp_threads);  DROP TEMPORARY TABLE tmp_setup_actors; DROP TEMPORARY TABLE tmp_setup_consumers; DROP TEMPORARY TABLE tmp_setup_instruments; DROP TEMPORARY TABLE tmp_threads;  SELECT RELEASE_LOCK(\'sys.ps_setup_save\') INTO v_lock_result;  SET sql_log_bin = @log_bin;  END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Reloads a saved Performance Schema configuration,\n so that you can alter the setup for debugging purposes, \n but restore it to a previous state.\n \n Use the companion procedure - ps_setup_save(), to \n save a configuration.\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_setup_save();\n Query OK, 0 rows affected (0.08 sec)\n \n mysql> UPDATE performance_schema.setup_instruments SET enabled = \'YES\', timed = \'YES\';\n Query OK, 547 rows affected (0.40 sec)\n Rows matched: 784  Changed: 547  Warnings: 0\n \n /* Run some tests that need more detailed instrumentation here */\n \n mysql> CALL sys.ps_setup_reload_saved();\n Query OK, 0 rows affected (0.32 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_lock_result INT; DECLARE v_lock_used_by BIGINT; DECLARE v_signal_message TEXT; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN SIGNAL SQLSTATE VALUE \'90001\' SET MESSAGE_TEXT = \'An error occurred, was sys.ps_setup_save() run before this procedure?\'; END;  SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0;  SELECT IS_USED_LOCK(\'sys.ps_setup_save\') INTO v_lock_used_by;  IF (v_lock_used_by != CONNECTION_ID()) THEN SET v_signal_message = CONCAT(\'The sys.ps_setup_save lock is currently owned by \', v_lock_used_by); SIGNAL SQLSTATE VALUE \'90002\' SET MESSAGE_TEXT = v_signal_message; END IF;  DELETE FROM performance_schema.setup_actors; INSERT INTO performance_schema.setup_actors SELECT * FROM tmp_setup_actors;  BEGIN DECLARE v_name varchar(64); DECLARE v_enabled enum(\'YES\', \'NO\'); DECLARE c_consumers CURSOR FOR SELECT NAME, ENABLED FROM tmp_setup_consumers; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  SET v_done = FALSE; OPEN c_consumers; c_consumers_loop: LOOP FETCH c_consumers INTO v_name, v_enabled; IF v_done THEN LEAVE c_consumers_loop; END IF;  UPDATE performance_schema.setup_consumers SET ENABLED = v_enabled WHERE NAME = v_name; END LOOP; CLOSE c_consumers; END;  UPDATE performance_schema.setup_instruments INNER JOIN tmp_setup_instruments USING (NAME) SET performance_schema.setup_instruments.ENABLED = tmp_setup_instruments.ENABLED, performance_schema.setup_instruments.TIMED   = tmp_setup_instruments.TIMED; BEGIN DECLARE v_thread_id bigint unsigned; DECLARE v_instrumented enum(\'YES\', \'NO\'); DECLARE c_threads CURSOR FOR SELECT THREAD_ID, INSTRUMENTED FROM tmp_threads; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  SET v_done = FALSE; OPEN c_threads; c_threads_loop: LOOP FETCH c_threads INTO v_thread_id, v_instrumented; IF v_done THEN LEAVE c_threads_loop; END IF;  UPDATE performance_schema.threads SET INSTRUMENTED = v_instrumented WHERE THREAD_ID = v_thread_id; END LOOP; CLOSE c_threads; END;  UPDATE performance_schema.threads SET INSTRUMENTED = IF(PROCESSLIST_USER IS NOT NULL, sys.ps_is_account_enabled(PROCESSLIST_HOST, PROCESSLIST_USER), \'YES\') WHERE THREAD_ID NOT IN (SELECT THREAD_ID FROM tmp_threads);  DROP TEMPORARY TABLE tmp_setup_actors; DROP TEMPORARY TABLE tmp_setup_consumers; DROP TEMPORARY TABLE tmp_setup_instruments; DROP TEMPORARY TABLE tmp_threads;  SELECT RELEASE_LOCK(\'sys.ps_setup_save\') INTO v_lock_result;  SET sql_log_bin = @log_bin;  END'),('sys','ps_setup_reset_to_default','PROCEDURE','ps_setup_reset_to_default','SQL','MODIFIES_SQL_DATA','NO','INVOKER',_binary ' IN in_verbose BOOLEAN ','',_binary 'BEGIN SET @query = \'DELETE FROM performance_schema.setup_actors WHERE NOT (HOST = \'\'%\'\' AND USER = \'\'%\'\' AND ROLE = \'\'%\'\')\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_actors\\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'INSERT IGNORE INTO performance_schema.setup_actors VALUES (\'\'%\'\', \'\'%\'\', \'\'%\'\', \'\'YES\'\', \'\'YES\'\')\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_actors\\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'UPDATE performance_schema.setup_instruments SET ENABLED = sys.ps_is_instrument_default_enabled(NAME), TIMED   = sys.ps_is_instrument_default_timed(NAME)\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_instruments\\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'UPDATE performance_schema.setup_consumers SET ENABLED = IF(NAME IN (\'\'events_statements_current\'\', \'\'events_transactions_current\'\', \'\'global_instrumentation\'\', \'\'thread_instrumentation\'\', \'\'statements_digest\'\'), \'\'YES\'\', \'\'NO\'\')\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_consumers\\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'DELETE FROM performance_schema.setup_objects WHERE NOT (OBJECT_TYPE IN (\'\'EVENT\'\', \'\'FUNCTION\'\', \'\'PROCEDURE\'\', \'\'TABLE\'\', \'\'TRIGGER\'\') AND OBJECT_NAME = \'\'%\'\'  AND (OBJECT_SCHEMA = \'\'mysql\'\'              AND ENABLED = \'\'NO\'\'  AND TIMED = \'\'NO\'\' ) OR (OBJECT_SCHEMA = \'\'performance_schema\'\' AND ENABLED = \'\'NO\'\'  AND TIMED = \'\'NO\'\' ) OR (OBJECT_SCHEMA = \'\'information_schema\'\' AND ENABLED = \'\'NO\'\'  AND TIMED = \'\'NO\'\' ) OR (OBJECT_SCHEMA = \'\'%\'\'                  AND ENABLED = \'\'YES\'\' AND TIMED = \'\'YES\'\'))\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_objects\\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'INSERT IGNORE INTO performance_schema.setup_objects VALUES (\'\'EVENT\'\'    , \'\'mysql\'\'             , \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'EVENT\'\'    , \'\'performance_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'EVENT\'\'    , \'\'information_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'EVENT\'\'    , \'\'%\'\'                 , \'\'%\'\', \'\'YES\'\', \'\'YES\'\'), (\'\'FUNCTION\'\' , \'\'mysql\'\'             , \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'FUNCTION\'\' , \'\'performance_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'FUNCTION\'\' , \'\'information_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'FUNCTION\'\' , \'\'%\'\'                 , \'\'%\'\', \'\'YES\'\', \'\'YES\'\'), (\'\'PROCEDURE\'\', \'\'mysql\'\'             , \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'PROCEDURE\'\', \'\'performance_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'PROCEDURE\'\', \'\'information_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'PROCEDURE\'\', \'\'%\'\'                 , \'\'%\'\', \'\'YES\'\', \'\'YES\'\'), (\'\'TABLE\'\'    , \'\'mysql\'\'             , \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TABLE\'\'    , \'\'performance_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TABLE\'\'    , \'\'information_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TABLE\'\'    , \'\'%\'\'                 , \'\'%\'\', \'\'YES\'\', \'\'YES\'\'), (\'\'TRIGGER\'\'  , \'\'mysql\'\'             , \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TRIGGER\'\'  , \'\'performance_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TRIGGER\'\'  , \'\'information_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TRIGGER\'\'  , \'\'%\'\'                 , \'\'%\'\', \'\'YES\'\', \'\'YES\'\')\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_objects\\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'UPDATE performance_schema.threads SET INSTRUMENTED = \'\'YES\'\'\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: threads\\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Resets the Performance Schema setup to the default settings.\n \n Parameters\n \n in_verbose (BOOLEAN):\n Whether to print each setup stage (including the SQL) whilst running.\n \n Example\n \n mysql> CALL sys.ps_setup_reset_to_default(true)\\G\n *************************** 1. row ***************************\n status: Resetting: setup_actors\n DELETE\n FROM performance_schema.setup_actors\n WHERE NOT (HOST = \'%\' AND USER = \'%\' AND ROLE = \'%\')\n 1 row in set (0.00 sec)\n \n *************************** 1. row ***************************\n status: Resetting: setup_actors\n INSERT IGNORE INTO performance_schema.setup_actors\n VALUES (\'%\', \'%\', \'%\')\n 1 row in set (0.00 sec)\n ...\n \n mysql> CALL sys.ps_setup_reset_to_default(false)\\G\n Query OK, 0 rows affected (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN SET @query = \'DELETE FROM performance_schema.setup_actors WHERE NOT (HOST = \'%\' AND USER = \'%\' AND ROLE = \'%\')\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_actors\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'INSERT IGNORE INTO performance_schema.setup_actors VALUES (\'%\', \'%\', \'%\', \'YES\', \'YES\')\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_actors\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'UPDATE performance_schema.setup_instruments SET ENABLED = sys.ps_is_instrument_default_enabled(NAME), TIMED   = sys.ps_is_instrument_default_timed(NAME)\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_instruments\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'UPDATE performance_schema.setup_consumers SET ENABLED = IF(NAME IN (\'events_statements_current\', \'events_transactions_current\', \'global_instrumentation\', \'thread_instrumentation\', \'statements_digest\'), \'YES\', \'NO\')\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_consumers\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'DELETE FROM performance_schema.setup_objects WHERE NOT (OBJECT_TYPE IN (\'EVENT\', \'FUNCTION\', \'PROCEDURE\', \'TABLE\', \'TRIGGER\') AND OBJECT_NAME = \'%\'  AND (OBJECT_SCHEMA = \'mysql\'              AND ENABLED = \'NO\'  AND TIMED = \'NO\' ) OR (OBJECT_SCHEMA = \'performance_schema\' AND ENABLED = \'NO\'  AND TIMED = \'NO\' ) OR (OBJECT_SCHEMA = \'information_schema\' AND ENABLED = \'NO\'  AND TIMED = \'NO\' ) OR (OBJECT_SCHEMA = \'%\'                  AND ENABLED = \'YES\' AND TIMED = \'YES\'))\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_objects\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'INSERT IGNORE INTO performance_schema.setup_objects VALUES (\'EVENT\'    , \'mysql\'             , \'%\', \'NO\' , \'NO\' ), (\'EVENT\'    , \'performance_schema\', \'%\', \'NO\' , \'NO\' ), (\'EVENT\'    , \'information_schema\', \'%\', \'NO\' , \'NO\' ), (\'EVENT\'    , \'%\'                 , \'%\', \'YES\', \'YES\'), (\'FUNCTION\' , \'mysql\'             , \'%\', \'NO\' , \'NO\' ), (\'FUNCTION\' , \'performance_schema\', \'%\', \'NO\' , \'NO\' ), (\'FUNCTION\' , \'information_schema\', \'%\', \'NO\' , \'NO\' ), (\'FUNCTION\' , \'%\'                 , \'%\', \'YES\', \'YES\'), (\'PROCEDURE\', \'mysql\'             , \'%\', \'NO\' , \'NO\' ), (\'PROCEDURE\', \'performance_schema\', \'%\', \'NO\' , \'NO\' ), (\'PROCEDURE\', \'information_schema\', \'%\', \'NO\' , \'NO\' ), (\'PROCEDURE\', \'%\'                 , \'%\', \'YES\', \'YES\'), (\'TABLE\'    , \'mysql\'             , \'%\', \'NO\' , \'NO\' ), (\'TABLE\'    , \'performance_schema\', \'%\', \'NO\' , \'NO\' ), (\'TABLE\'    , \'information_schema\', \'%\', \'NO\' , \'NO\' ), (\'TABLE\'    , \'%\'                 , \'%\', \'YES\', \'YES\'), (\'TRIGGER\'  , \'mysql\'             , \'%\', \'NO\' , \'NO\' ), (\'TRIGGER\'  , \'performance_schema\', \'%\', \'NO\' , \'NO\' ), (\'TRIGGER\'  , \'information_schema\', \'%\', \'NO\' , \'NO\' ), (\'TRIGGER\'  , \'%\'                 , \'%\', \'YES\', \'YES\')\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_objects\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt;  SET @query = \'UPDATE performance_schema.threads SET INSTRUMENTED = \'YES\'\';  IF (in_verbose) THEN SELECT CONCAT(\'Resetting: threads\n\', REPLACE(@query, \'  \', \'\')) AS status; END IF;  PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; END'),('sys','ps_setup_save','PROCEDURE','ps_setup_save','SQL','MODIFIES_SQL_DATA','NO','INVOKER',_binary ' IN in_timeout INT ','',_binary 'BEGIN DECLARE v_lock_result INT;  SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0;  SELECT GET_LOCK(\'sys.ps_setup_save\', in_timeout) INTO v_lock_result;  IF v_lock_result THEN DROP TEMPORARY TABLE IF EXISTS tmp_setup_actors; DROP TEMPORARY TABLE IF EXISTS tmp_setup_consumers; DROP TEMPORARY TABLE IF EXISTS tmp_setup_instruments; DROP TEMPORARY TABLE IF EXISTS tmp_threads;  CREATE TEMPORARY TABLE tmp_setup_actors LIKE performance_schema.setup_actors; CREATE TEMPORARY TABLE tmp_setup_consumers LIKE performance_schema.setup_consumers; CREATE TEMPORARY TABLE tmp_setup_instruments LIKE performance_schema.setup_instruments; CREATE TEMPORARY TABLE tmp_threads (THREAD_ID bigint unsigned NOT NULL PRIMARY KEY, INSTRUMENTED enum(\'YES\',\'NO\') NOT NULL);  INSERT INTO tmp_setup_actors SELECT * FROM performance_schema.setup_actors; INSERT INTO tmp_setup_consumers SELECT * FROM performance_schema.setup_consumers; INSERT INTO tmp_setup_instruments SELECT * FROM performance_schema.setup_instruments; INSERT INTO tmp_threads SELECT THREAD_ID, INSTRUMENTED FROM performance_schema.threads; ELSE SIGNAL SQLSTATE VALUE \'90000\' SET MESSAGE_TEXT = \'Could not lock the sys.ps_setup_save user lock, another thread has a saved configuration\'; END IF;  SET sql_log_bin = @log_bin; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Saves the current configuration of Performance Schema, \n so that you can alter the setup for debugging purposes, \n but restore it to a previous state.\n \n Use the companion procedure - ps_setup_reload_saved(), to \n restore the saved config.\n \n The named lock \"sys.ps_setup_save\" is taken before the\n current configuration is saved. If the attempt to get the named\n lock times out, an error occurs.\n \n The lock is released after the settings have been restored by\n calling ps_setup_reload_saved().\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n in_timeout INT\n The timeout in seconds used when trying to obtain the lock.\n A negative timeout means infinite timeout.\n \n Example\n \n mysql> CALL sys.ps_setup_save(-1);\n Query OK, 0 rows affected (0.08 sec)\n \n mysql> UPDATE performance_schema.setup_instruments \n ->    SET enabled = \'YES\', timed = \'YES\';\n Query OK, 547 rows affected (0.40 sec)\n Rows matched: 784  Changed: 547  Warnings: 0\n \n /* Run some tests that need more detailed instrumentation here */\n \n mysql> CALL sys.ps_setup_reload_saved();\n Query OK, 0 rows affected (0.32 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_lock_result INT;  SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0;  SELECT GET_LOCK(\'sys.ps_setup_save\', in_timeout) INTO v_lock_result;  IF v_lock_result THEN DROP TEMPORARY TABLE IF EXISTS tmp_setup_actors; DROP TEMPORARY TABLE IF EXISTS tmp_setup_consumers; DROP TEMPORARY TABLE IF EXISTS tmp_setup_instruments; DROP TEMPORARY TABLE IF EXISTS tmp_threads;  CREATE TEMPORARY TABLE tmp_setup_actors LIKE performance_schema.setup_actors; CREATE TEMPORARY TABLE tmp_setup_consumers LIKE performance_schema.setup_consumers; CREATE TEMPORARY TABLE tmp_setup_instruments LIKE performance_schema.setup_instruments; CREATE TEMPORARY TABLE tmp_threads (THREAD_ID bigint unsigned NOT NULL PRIMARY KEY, INSTRUMENTED enum(\'YES\',\'NO\') NOT NULL);  INSERT INTO tmp_setup_actors SELECT * FROM performance_schema.setup_actors; INSERT INTO tmp_setup_consumers SELECT * FROM performance_schema.setup_consumers; INSERT INTO tmp_setup_instruments SELECT * FROM performance_schema.setup_instruments; INSERT INTO tmp_threads SELECT THREAD_ID, INSTRUMENTED FROM performance_schema.threads; ELSE SIGNAL SQLSTATE VALUE \'90000\' SET MESSAGE_TEXT = \'Could not lock the sys.ps_setup_save user lock, another thread has a saved configuration\'; END IF;  SET sql_log_bin = @log_bin; END'),('sys','ps_setup_show_disabled','PROCEDURE','ps_setup_show_disabled','SQL','READS_SQL_DATA','NO','INVOKER',_binary ' IN in_show_instruments BOOLEAN, IN in_show_threads BOOLEAN ','',_binary 'BEGIN SELECT @@performance_schema AS performance_schema_enabled;   SELECT CONCAT(\'\\\'\', user, \'\\\'@\\\'\', host, \'\\\'\') AS disabled_users FROM performance_schema.setup_actors WHERE enabled = \'NO\' ORDER BY disabled_users;   SELECT object_type, CONCAT(object_schema, \'.\', object_name) AS objects, enabled, timed FROM performance_schema.setup_objects WHERE enabled = \'NO\' ORDER BY object_type, objects;  SELECT name AS disabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'NO\' ORDER BY disabled_consumers;  IF (in_show_threads) THEN SELECT IF(name = \'thread/sql/one_connection\',  CONCAT(processlist_user, \'@\', processlist_host),  REPLACE(name, \'thread/\', \'\')) AS disabled_threads, TYPE AS thread_type FROM performance_schema.threads WHERE INSTRUMENTED = \'NO\' ORDER BY disabled_threads; END IF;  IF (in_show_instruments) THEN SELECT name AS disabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'NO\' ORDER BY disabled_instruments; END IF; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Shows all currently disable Performance Schema configuration.\n \n Disabled users is only available for MySQL 5.7.6 and later.\n In earlier versions it was only possible to enable users.\n \n Parameters\n \n in_show_instruments (BOOLEAN):\n Whether to print disabled instruments (can print many items)\n \n in_show_threads (BOOLEAN):\n Whether to print disabled threads\n \n Example\n \n mysql> CALL sys.ps_setup_show_disabled(TRUE, TRUE);\n +----------------------------+\n | performance_schema_enabled |\n +----------------------------+\n |                          1 |\n +----------------------------+\n 1 row in set (0.00 sec)\n \n +--------------------+\n | disabled_users     |\n +--------------------+\n | \'mark\'@\'localhost\' |\n +--------------------+\n 1 row in set (0.00 sec)\n \n +-------------+----------------------+---------+-------+\n | object_type | objects              | enabled | timed |\n +-------------+----------------------+---------+-------+\n | EVENT       | mysql.%              | NO      | NO    |\n | EVENT       | performance_schema.% | NO      | NO    |\n | EVENT       | information_schema.% | NO      | NO    |\n | FUNCTION    | mysql.%              | NO      | NO    |\n | FUNCTION    | performance_schema.% | NO      | NO    |\n | FUNCTION    | information_schema.% | NO      | NO    |\n | PROCEDURE   | mysql.%              | NO      | NO    |\n | PROCEDURE   | performance_schema.% | NO      | NO    |\n | PROCEDURE   | information_schema.% | NO      | NO    |\n | TABLE       | mysql.%              | NO      | NO    |\n | TABLE       | performance_schema.% | NO      | NO    |\n | TABLE       | information_schema.% | NO      | NO    |\n | TRIGGER     | mysql.%              | NO      | NO    |\n | TRIGGER     | performance_schema.% | NO      | NO    |\n | TRIGGER     | information_schema.% | NO      | NO    |\n +-------------+----------------------+---------+-------+\n 15 rows in set (0.00 sec)\n \n +----------------------------------+\n | disabled_consumers               |\n +----------------------------------+\n | events_stages_current            |\n | events_stages_history            |\n | events_stages_history_long       |\n | events_statements_history        |\n | events_statements_history_long   |\n | events_transactions_history      |\n | events_transactions_history_long |\n | events_waits_current             |\n | events_waits_history             |\n | events_waits_history_long        |\n +----------------------------------+\n 10 rows in set (0.00 sec)\n \n Empty set (0.00 sec)\n \n +---------------------------------------------------------------------------------------+-------+\n | disabled_instruments                                                                  | timed |\n +---------------------------------------------------------------------------------------+-------+\n | wait/synch/mutex/sql/TC_LOG_MMAP::LOCK_tc                                             | NO    |\n | wait/synch/mutex/sql/LOCK_des_key_file                                                | NO    |\n | wait/synch/mutex/sql/MYSQL_BIN_LOG::LOCK_commit                                       | NO    |\n ...\n | memory/sql/servers_cache                                                              | NO    |\n | memory/sql/udf_mem                                                                    | NO    |\n | wait/lock/metadata/sql/mdl                                                            | NO    |\n +---------------------------------------------------------------------------------------+-------+\n 547 rows in set (0.00 sec)\n \n Query OK, 0 rows affected (0.01 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN SELECT @@performance_schema AS performance_schema_enabled;   SELECT CONCAT(\'\'\', user, \'\'@\'\', host, \'\'\') AS disabled_users FROM performance_schema.setup_actors WHERE enabled = \'NO\' ORDER BY disabled_users;   SELECT object_type, CONCAT(object_schema, \'.\', object_name) AS objects, enabled, timed FROM performance_schema.setup_objects WHERE enabled = \'NO\' ORDER BY object_type, objects;  SELECT name AS disabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'NO\' ORDER BY disabled_consumers;  IF (in_show_threads) THEN SELECT IF(name = \'thread/sql/one_connection\',  CONCAT(processlist_user, \'@\', processlist_host),  REPLACE(name, \'thread/\', \'\')) AS disabled_threads, TYPE AS thread_type FROM performance_schema.threads WHERE INSTRUMENTED = \'NO\' ORDER BY disabled_threads; END IF;  IF (in_show_instruments) THEN SELECT name AS disabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'NO\' ORDER BY disabled_instruments; END IF; END'),('sys','ps_setup_show_disabled_consumers','PROCEDURE','ps_setup_show_disabled_consumers','SQL','READS_SQL_DATA','YES','INVOKER','','',_binary 'BEGIN SELECT name AS disabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'NO\' ORDER BY disabled_consumers; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Shows all currently disabled consumers.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_disabled_consumers();\n \n +---------------------------+\n | disabled_consumers        |\n +---------------------------+\n | events_statements_current |\n | global_instrumentation    |\n | thread_instrumentation    |\n | statements_digest         |\n +---------------------------+\n 4 rows in set (0.05 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN SELECT name AS disabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'NO\' ORDER BY disabled_consumers; END'),('sys','ps_setup_show_disabled_instruments','PROCEDURE','ps_setup_show_disabled_instruments','SQL','READS_SQL_DATA','YES','INVOKER','','',_binary 'BEGIN SELECT name AS disabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'NO\' ORDER BY disabled_instruments; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Shows all currently disabled instruments.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_disabled_instruments();\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN SELECT name AS disabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'NO\' ORDER BY disabled_instruments; END'),('sys','ps_setup_show_enabled','PROCEDURE','ps_setup_show_enabled','SQL','READS_SQL_DATA','YES','INVOKER',_binary ' IN in_show_instruments BOOLEAN, IN in_show_threads BOOLEAN ','',_binary 'BEGIN SELECT @@performance_schema AS performance_schema_enabled;  SELECT CONCAT(\'\\\'\', user, \'\\\'@\\\'\', host, \'\\\'\') AS enabled_users FROM performance_schema.setup_actors  WHERE enabled = \'YES\'  ORDER BY enabled_users;  SELECT object_type, CONCAT(object_schema, \'.\', object_name) AS objects, enabled, timed FROM performance_schema.setup_objects WHERE enabled = \'YES\' ORDER BY object_type, objects;  SELECT name AS enabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'YES\' ORDER BY enabled_consumers;  IF (in_show_threads) THEN SELECT IF(name = \'thread/sql/one_connection\',  CONCAT(processlist_user, \'@\', processlist_host),  REPLACE(name, \'thread/\', \'\')) AS enabled_threads, TYPE AS thread_type FROM performance_schema.threads WHERE INSTRUMENTED = \'YES\' ORDER BY enabled_threads; END IF;  IF (in_show_instruments) THEN SELECT name AS enabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'YES\' ORDER BY enabled_instruments; END IF; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Shows all currently enabled Performance Schema configuration.\n \n Parameters\n \n in_show_instruments (BOOLEAN):\n Whether to print enabled instruments (can print many items)\n \n in_show_threads (BOOLEAN):\n Whether to print enabled threads\n \n Example\n \n mysql> CALL sys.ps_setup_show_enabled(TRUE, TRUE);\n +----------------------------+\n | performance_schema_enabled |\n +----------------------------+\n |                          1 |\n +----------------------------+\n 1 row in set (0.00 sec)\n \n +---------------+\n | enabled_users |\n +---------------+\n | \'%\'@\'%\'       |\n +---------------+\n 1 row in set (0.01 sec)\n \n +-------------+---------+---------+-------+\n | object_type | objects | enabled | timed |\n +-------------+---------+---------+-------+\n | EVENT       | %.%     | YES     | YES   |\n | FUNCTION    | %.%     | YES     | YES   |\n | PROCEDURE   | %.%     | YES     | YES   |\n | TABLE       | %.%     | YES     | YES   |\n | TRIGGER     | %.%     | YES     | YES   |\n +-------------+---------+---------+-------+\n 5 rows in set (0.01 sec)\n \n +---------------------------+\n | enabled_consumers         |\n +---------------------------+\n | events_statements_current |\n | global_instrumentation    |\n | thread_instrumentation    |\n | statements_digest         |\n +---------------------------+\n 4 rows in set (0.05 sec)\n \n +---------------------------------+-------------+\n | enabled_threads                 | thread_type |\n +---------------------------------+-------------+\n | sql/main                        | BACKGROUND  |\n | sql/thread_timer_notifier       | BACKGROUND  |\n | innodb/io_ibuf_thread           | BACKGROUND  |\n | innodb/io_log_thread            | BACKGROUND  |\n | innodb/io_read_thread           | BACKGROUND  |\n | innodb/io_read_thread           | BACKGROUND  |\n | innodb/io_write_thread          | BACKGROUND  |\n | innodb/io_write_thread          | BACKGROUND  |\n | innodb/page_cleaner_thread      | BACKGROUND  |\n | innodb/srv_lock_timeout_thread  | BACKGROUND  |\n | innodb/srv_error_monitor_thread | BACKGROUND  |\n | innodb/srv_monitor_thread       | BACKGROUND  |\n | innodb/srv_master_thread        | BACKGROUND  |\n | innodb/srv_purge_thread         | BACKGROUND  |\n | innodb/srv_worker_thread        | BACKGROUND  |\n | innodb/srv_worker_thread        | BACKGROUND  |\n | innodb/srv_worker_thread        | BACKGROUND  |\n | innodb/buf_dump_thread          | BACKGROUND  |\n | innodb/dict_stats_thread        | BACKGROUND  |\n | sql/signal_handler              | BACKGROUND  |\n | sql/compress_gtid_table         | FOREGROUND  |\n | root@localhost                  | FOREGROUND  |\n +---------------------------------+-------------+\n 22 rows in set (0.01 sec)\n \n +-------------------------------------+-------+\n | enabled_instruments                 | timed |\n +-------------------------------------+-------+\n | wait/io/file/sql/map                | YES   |\n | wait/io/file/sql/binlog             | YES   |\n ...\n | statement/com/Error                 | YES   |\n | statement/com/                      | YES   |\n | idle                                | YES   |\n +-------------------------------------+-------+\n 210 rows in set (0.08 sec)\n \n Query OK, 0 rows affected (0.89 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN SELECT @@performance_schema AS performance_schema_enabled;  SELECT CONCAT(\'\'\', user, \'\'@\'\', host, \'\'\') AS enabled_users FROM performance_schema.setup_actors  WHERE enabled = \'YES\'  ORDER BY enabled_users;  SELECT object_type, CONCAT(object_schema, \'.\', object_name) AS objects, enabled, timed FROM performance_schema.setup_objects WHERE enabled = \'YES\' ORDER BY object_type, objects;  SELECT name AS enabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'YES\' ORDER BY enabled_consumers;  IF (in_show_threads) THEN SELECT IF(name = \'thread/sql/one_connection\',  CONCAT(processlist_user, \'@\', processlist_host),  REPLACE(name, \'thread/\', \'\')) AS enabled_threads, TYPE AS thread_type FROM performance_schema.threads WHERE INSTRUMENTED = \'YES\' ORDER BY enabled_threads; END IF;  IF (in_show_instruments) THEN SELECT name AS enabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'YES\' ORDER BY enabled_instruments; END IF; END'),('sys','ps_setup_show_enabled_consumers','PROCEDURE','ps_setup_show_enabled_consumers','SQL','READS_SQL_DATA','YES','INVOKER','','',_binary 'BEGIN SELECT name AS enabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'YES\' ORDER BY enabled_consumers; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Shows all currently enabled consumers.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_enabled_consumers();\n \n +---------------------------+\n | enabled_consumers         |\n +---------------------------+\n | events_statements_current |\n | global_instrumentation    |\n | thread_instrumentation    |\n | statements_digest         |\n +---------------------------+\n 4 rows in set (0.05 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN SELECT name AS enabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'YES\' ORDER BY enabled_consumers; END'),('sys','ps_setup_show_enabled_instruments','PROCEDURE','ps_setup_show_enabled_instruments','SQL','READS_SQL_DATA','YES','INVOKER','','',_binary 'BEGIN SELECT name AS enabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'YES\' ORDER BY enabled_instruments; END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Shows all currently enabled instruments.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_enabled_instruments();\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN SELECT name AS enabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'YES\' ORDER BY enabled_instruments; END'),('sys','ps_truncate_all_tables','PROCEDURE','ps_truncate_all_tables','SQL','MODIFIES_SQL_DATA','YES','INVOKER',_binary ' IN in_verbose BOOLEAN ','',_binary 'BEGIN DECLARE v_done INT DEFAULT FALSE; DECLARE v_total_tables INT DEFAULT 0; DECLARE v_ps_table VARCHAR(64); DECLARE ps_tables CURSOR FOR SELECT table_name  FROM INFORMATION_SCHEMA.TABLES  WHERE table_schema = \'performance_schema\'  AND (table_name LIKE \'%summary%\'  OR table_name LIKE \'%history%\'); DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  OPEN ps_tables;  ps_tables_loop: LOOP FETCH ps_tables INTO v_ps_table; IF v_done THEN LEAVE ps_tables_loop; END IF;  SET @truncate_stmt := CONCAT(\'TRUNCATE TABLE performance_schema.\', v_ps_table); IF in_verbose THEN SELECT CONCAT(\'Running: \', @truncate_stmt) AS status; END IF;  PREPARE truncate_stmt FROM @truncate_stmt; EXECUTE truncate_stmt; DEALLOCATE PREPARE truncate_stmt;  SET v_total_tables = v_total_tables + 1; END LOOP;  CLOSE ps_tables;  SELECT CONCAT(\'Truncated \', v_total_tables, \' tables\') AS summary;  END','mysql.sys@localhost','2019-02-15 20:59:30','2019-02-15 20:59:30','','\n Description\n \n Truncates all summary tables within Performance Schema, \n resetting all aggregated instrumentation as a snapshot.\n \n Parameters\n \n in_verbose (BOOLEAN):\n Whether to print each TRUNCATE statement before running\n \n Example\n \n mysql> CALL sys.ps_truncate_all_tables(false);\n +---------------------+\n | summary             |\n +---------------------+\n | Truncated 44 tables |\n +---------------------+\n 1 row in set (0.10 sec)\n \n Query OK, 0 rows affected (0.10 sec)\n ','utf8','utf8_general_ci','utf8_general_ci',_binary 'BEGIN DECLARE v_done INT DEFAULT FALSE; DECLARE v_total_tables INT DEFAULT 0; DECLARE v_ps_table VARCHAR(64); DECLARE ps_tables CURSOR FOR SELECT table_name  FROM INFORMATION_SCHEMA.TABLES  WHERE table_schema = \'performance_schema\'  AND (table_name LIKE \'%summary%\'  OR table_name LIKE \'%history%\'); DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE;  OPEN ps_tables;  ps_tables_loop: LOOP FETCH ps_tables INTO v_ps_table; IF v_done THEN LEAVE ps_tables_loop; END IF;  SET @truncate_stmt := CONCAT(\'TRUNCATE TABLE performance_schema.\', v_ps_table); IF in_verbose THEN SELECT CONCAT(\'Running: \', @truncate_stmt) AS status; END IF;  PREPARE truncate_stmt FROM @truncate_stmt; EXECUTE truncate_stmt; DEALLOCATE PREPARE truncate_stmt;  SET v_total_tables = v_total_tables + 1; END LOOP;  CLOSE ps_tables;  SELECT CONCAT(\'Truncated \', v_total_tables, \' tables\') AS summary;  END'),