We are running Postgres 9.1.3 and we have recently started to run into major performance problems on one of our servers.
Our queries ran fine for a while, but as of Augu
(queries with count(*) are especially bad),
You should look into window functions
Otherwise, we have no idea without seeing your relevant schema and your queries.