ParentFull threadadamzochowski·count(*) ends up counting all records, reading one first row is much much faster than finding and counting all.https://wiki.postgresql.org/wiki/Slow_CountingView on HN