Aug 30, 2024 • 2 min read PostgreSQL: Count Rows in All Tables in Schema Use a CTE and psql's \gexec to efficiently count rows across all tables in your PostgreSQL schema. #postgresql #database #sql