Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
Order table_size_with_indices.sql results by total relation size (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Gartner committed Dec 11, 2019
1 parent 7289e38 commit c460e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/table_size_with_indices.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ 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_table_size(c.oid) DESC;
ORDER BY pg_total_relation_size(c.oid) DESC;

0 comments on commit c460e3f

Please sign in to comment.