SELECT objname, to_char(pg_relation_size(objname::regclass), '999,999,999,999') as bytes FROM ( SELECT tablename as objname FROM pg_tables WHERE schemaname = 'public' UNION SELECT indexname as objname FROM pg_indexes WHERE schemaname = 'public' ) as objects ORDER BY bytes DESC ãã®ãããªSQLã¯ãã¡ãã¡è¦ãã¦ãããªãã®ã§ãä¸è¨ã®ããã«ãã¥ã¼ä½æãã¦ããã®ããªã¹ã¹ã¡ã§ãã
{{#tags}}- {{label}}
{{/tags}}