I've just inherited an old PostgreSQL installation and need to do some diagnostics to find out why this database is running slow. On MS SQL you would use a tool such as Profiler to see what queries are running and then see how their execution plan looks like.
What tools, if any, exist for PostgreSQL that I can do this with? I would appreciate any help since I´m quite new with Postgres.
auto-explainis available for pg 8.4. See postgresql.org/docs/8.4/interactive/auto-explain.html. But upgrade to a current version anyway. Related: dba.stackexchange.com/questions/23355/…