Answers for "postgresql get total disk usage"

SQL
0

postgresql check total storage

SELECT nspname || '.' || relname AS "relation",
    pg_size_pretty(pg_relation_size(C.oid)) AS "size"
  FROM pg_class C
  LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
  WHERE nspname NOT IN ('pg_catalog', 'information_schema')
  ORDER BY pg_relation_size(C.oid) DESC
  LIMIT 20;
Posted by: Guest on May-17-2021

Code answers related to "postgresql get total disk usage"

Code answers related to "SQL"

Browse Popular Code Answers by Language