Row count for all tables in a postgres database
✓ Published0🌍 Public
Aamccartney
Last edited Apr 4, 2017
Created on Apr 4, 2017
This visualization ranks every table in a PostgreSQL database by its live row count, displaying the table names and schemas in descending order. The horizontal bar chart makes it immediately clear which tables dominate the database in size and how quickly the counts taper off. The data comes from the `pg_stat_user_tables` system view, which tracks `n_live_tup` (an estimate of live rows). The query runs directly against PostgreSQL, returning `schemaname`, `relname`, and `n_live_tup` for each table, and the chart renders those values as proportional bars.
AI-generated description