How to find big tables of the Sentry's database?

Step 1

How do I connect to the Sentry's database in Docker?

Step 2

How to find big tables of a PostgreSQL database?

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 'public' = table_schema
ORDER BY 3 DESC
LIMIT 20;

2024-01-09--12-01-41