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
echo "Obtaining statistics from affected database"
for table in calculation calculation_contribution contribution_fact databasechangelog databasechangeloglock filing_version issue message message_cause node total_fact; do
vs_query "$table count" "select count(*) from $table"
done
vs_query "sizing data" "select table_name, pg_size_pretty(pg_total_relation_size(quote_ident(table_name))), pg_total_relation_size(quote_ident(table_name)) from information_schema.tables where table_schema = 'public' order by 3 desc;"