Get A Quick Approximate Count Of A Table
> select count(*) from events;
count
-----------
427462316
(1 row)
Time: 55113.794 ms> select reltuples::numeric as count
from pg_class
where relname='events';
count
-----------
427462000
(1 row)
Time: 0.413 msLast updated