Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DB_OBJECT_SIZE and DB_OBJECT_TOTAL_SIZE functions #3969

Merged
merged 2 commits into from Jan 17, 2024

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
2 checks passed
@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