Skip to content
Discussion options

You must be logged in to vote

I don't believe there's a Hasura-specific way to get DB size - you can pretty easily get those from queries though (either through your terminal or through the SQL tab in Hasura).

SELECT pg_size_pretty(pg_database_size(current_database()));

would get you your total DB size of your current DB.

If you're looking for Hasura-specific storage, everything Hasura needs is stored in the hdb_catalog and hdb_views schemas.

To check their specific storage usage, you can use the following queries:

SELECT pg_size_pretty(sum(pg_relation_size(quote_ident(schemaname) || '.' || quote_ident(tablename)))::bigint) 
FROM pg_tables 
WHERE schemaname = 'hdb_catalog'
SELECT pg_size_pretty(sum(pg_relation_size(qu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joshuarobs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
None yet
2 participants