Using PostgreSQL's statistics to get a loose page count
The terrible pitfalls I've gotten myself into while using MySQL