Skip to content

Conversation

@katzyn
Copy link
Contributor

@katzyn katzyn commented Jan 16, 2024

Closes #3968.

New function DB_OBJECT_SIZE returns on-disk size of a table or an index.

New function DB_OBJECT_TOTAL_SIZE returns on-disk size of a table with all its indexes.

These functions have the same parameters as DB_OBJECT_ID and DB_OBJECT_SQL.

Old DISK_SPACE_USED is marked as deprecated because it doesn't accept schema and table names as specified it information schema, it requires some manipulations with them (QUOTE_IDENT(SCHEMA_NAME) || '.' || QUOTE_IDENT(TABEL_NAME)).

@katzyn katzyn merged commit bbb1532 into h2database:master Jan 17, 2024
@katzyn katzyn deleted the index_size branch January 17, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add possibility to get index size on disk

1 participant