1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Optimize checking if a table is a statistics table

This commit is contained in:
Monty
2024-01-04 20:44:38 +02:00
committed by Sergei Golubchik
parent a00e99acca
commit ab513b007b
6 changed files with 65 additions and 37 deletions

View File

@@ -463,6 +463,11 @@ enum enum_table_category
*/
TABLE_CATEGORY_SYSTEM=3,
/**
Persistent statistics table
*/
TABLE_CATEGORY_STATISTICS= 4,
/**
Log tables.
These tables are an interface provided by the system
@@ -483,7 +488,7 @@ enum enum_table_category
The server implementation perform writes.
Log tables are cached in the table cache.
*/
TABLE_CATEGORY_LOG=4,
TABLE_CATEGORY_LOG=5,
/*
Types below are read only tables, not affected by FLUSH TABLES or
@@ -509,7 +514,7 @@ enum enum_table_category
to I_S tables in the table cache, which should use
this table type.
*/
TABLE_CATEGORY_INFORMATION=5,
TABLE_CATEGORY_INFORMATION=6,
/**
Performance schema tables.
@@ -531,7 +536,7 @@ enum enum_table_category
The server implementation perform writes.
Performance tables are cached in the table cache.
*/
TABLE_CATEGORY_PERFORMANCE=6
TABLE_CATEGORY_PERFORMANCE=7
};
typedef enum enum_table_category TABLE_CATEGORY;