5 ms·
You can do a fast, conditionless count that ignores current transaction state and therefore risks being slightly out of date, but usually good enough for most u
by lobster_johnson 14y ago
You can do a fast, conditionless count that ignores current transaction state and therefore risks being slightly out of date, but usually good enough for most use cases:
select n_live_tup
from pg_stat_user_tables
where relname = 'mytable'
- erichocean 14y agoWay more people should be using this.