We need to count the number of rows in a PostgreSQL table. In our case, no conditions need to be met, and it would be perfectly acceptable to get a row estimate if that sig
You can get an estimate from the system table "pg_stat_user_tables".
select schemaname, relname, n_live_tup from pg_stat_user_tables where schemaname = 'your_schema_name' and relname = 'your_table_name';