Is there any way in PostgreSQL to know how much the cpu cost was per a query and/or by session. It doesn't have to be the exact system cpu usage more of a relative cost like we get with disk I/O. For Windows or Linux.
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
|
The auto_explain module might be what you are looking for: http://www.postgresql.org/docs/current/static/auto-explain.html The statistics collector is probably the closest you can get to the Oracle v$ views: http://www.postgresql.org/docs/current/static/monitoring-stats.html#MONITORING-STATS-VIEWS Some more might be available in this extension: http://www.postgresql.org/docs/current/static/pgstatstatements.html |
|||||||||
|