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はいちいち覚えてられないので、下記のようにビュー作成しておくのがオススメです。