You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT
relname AS"tables",
pg_size_pretty (
pg_total_relation_size (X .oid)
) AS"size"FROM
pg_class X
LEFT JOIN pg_namespace Y ON (Y.oid= X .relnamespace)
WHERE
nspname NOT IN (
'pg_catalog',
'information_schema'
)
AND X .relkind <>'i'AND nspname !~ '^pg_toast'ORDER BY
pg_total_relation_size (X .oid) ASCLIMIT10;
The text was updated successfully, but these errors were encountered:
Script to create millions of records: https://gist.github.com/japananh/4bd13ca2af0813af2246164cbe64b48d
Query top 10 biggest table in database:
The text was updated successfully, but these errors were encountered: