You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT
schema_name,
relname,
pg_size_pretty(table_size) AS size,
table_size
FROM (
SELECTpg_catalog.pg_namespace.nspname AS schema_name,
relname,
pg_relation_size(pg_catalog.pg_class.oid) AS table_size
FROMpg_catalog.pg_classJOINpg_catalog.pg_namespaceON relnamespace =pg_catalog.pg_namespace.oid
) t
WHERE schema_name ='public'ORDER BY table_size DESC;