IF YOU HAVE THE MEANS: Please consider donating $10 to the American Cancer Society's RELAY FOR LIFE! The 2010 Drive Ends April 10.
Postgres (PostGreSQL) refers to tables and indexes as relationships or relations. This is helpful to know when reading the command:
SELECT nspname || '.' || relname AS "relation",
pg_size_pretty(pg_relation_size(C.oid)) AS "size"
FROM pg_class C
LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
WHERE nspname NOT IN ('pg_catalog', 'information_schema')
ORDER BY pg_relation_size(C.oid) DESC
LIMIT 20;
This will list the top 20 tables or index structures (or any other large relationship) in your database.