"SELECT planrows FROM estimate_row('SELECT COUNT(*) ON table WHERE XXX')"
If you're ever looking for something to write about for a new blog post, I would love to learn more about how you implemented that estimate_count function.
Thanks for the tip in the right direction tho!
"SELECT planrows FROM estimate_row('SELECT COUNT(*) ON table WHERE XXX')"