Merge pull request #19024 from peterdk/feature/add-rocksdb-table-size-support

Add ROCKSDB (tablesize) support

Fixes #19023
This commit is contained in:
Maurício Meneghini Fauth 2024-03-15 20:15:19 -03:00 committed by GitHub
commit 1d99cec5c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View File

@ -720,6 +720,7 @@ class StructureController extends AbstractController
case 'InnoDB':
case 'PBMS':
case 'TokuDB':
case 'ROCKSDB':
// InnoDB table: Row count is not accurate but data and index sizes are.
// PBMS table in Drizzle: TABLE_ROWS is taken from table cache,
// so it may be unavailable

View File

@ -1470,6 +1470,7 @@ class Import
'XTRADB',
'SEQUENCE',
'BDB',
'ROCKSDB',
];
// Query to check if table is 'Transactional'.

View File

@ -2245,14 +2245,14 @@ class DbiDummy implements DbiExtension
[
'query' => 'SELECT `ENGINE` FROM `information_schema`.`tables` WHERE `table_name` = "table_1"'
. ' AND `table_schema` = "PMA" AND UPPER(`engine`)'
. ' IN ("INNODB", "FALCON", "NDB", "INFINIDB", "TOKUDB", "XTRADB", "SEQUENCE", "BDB")',
. ' IN ("INNODB", "FALCON", "NDB", "INFINIDB", "TOKUDB", "XTRADB", "SEQUENCE", "BDB", "ROCKSDB")',
'columns' => ['ENGINE'],
'result' => [['INNODB']],
],
[
'query' => 'SELECT `ENGINE` FROM `information_schema`.`tables` WHERE `table_name` = "table_2"'
. ' AND `table_schema` = "PMA" AND UPPER(`engine`)'
. ' IN ("INNODB", "FALCON", "NDB", "INFINIDB", "TOKUDB", "XTRADB", "SEQUENCE", "BDB")',
. ' IN ("INNODB", "FALCON", "NDB", "INFINIDB", "TOKUDB", "XTRADB", "SEQUENCE", "BDB", "ROCKSDB")',
'columns' => ['ENGINE'],
'result' => [['INNODB']],
],