Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies.
When relevant, I also write about other technologies, like Linux or PostgreSQL.
Many of the posts starts with "how to" since they derive directly from my own personal experience.
My goal is to provide simple examples, so that they can be easily adapted to other situations.
Thursday, August 25, 2022
Query to find schema size in PostgreSQL
SELECT pg_size_pretty(sum(pg_relation_size(quote_ident(schemaname) || '.' || quote_ident(tablename)))::bigint) FROM pg_tables
WHERE schemaname = 'yourschema';
No comments:
Post a Comment