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

Order table_size_with_indices.sql results by total relation size #8

Merged
merged 1 commit into from Dec 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion sql/table_size_with_indices.sql
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;