Sha256: 95d1a0de238eebd44ffb8ddbb3f231dda1fc2a74bc6d1e03a6f23f9e7981e55d
Contents?: true
Size: 369 Bytes
Versions: 13
Compression:
Stored size: 369 Bytes
Contents
/* Size of the tables (including indexes), descending by size */ SELECT c.relname AS name, pg_size_pretty(pg_total_relation_size(c.oid)) AS size FROM pg_class c LEFT JOIN pg_namespace n ON (n.oid = c.relnamespace) WHERE n.nspname NOT IN ('pg_catalog', 'information_schema') AND n.nspname !~ '^pg_toast' AND c.relkind='r' ORDER BY pg_total_relation_size(c.oid) DESC;
Version data entries
13 entries across 13 versions & 3 rubygems