- Abra o console do banco de dados do heroku:
heroku pg:psql YOUR_DB_URL
- Use esta consulta:
SELECT schemaname,relname,n_live_tup
FROM pg_stat_user_tables
ORDER BY n_live_tup DESC;
Fonte: http://stackoverflow.com/questions/12701711/heroku-row-count-incorrect