pgstat: a database utility like iostat

I needed a utility for capturing various data-points about a PostgreSQL database as I performed load tests. I copied a utility I have used previously on Oracle that worked quite well. The new utility is called pgd pgstat. This utility spits out various DB metrics on the command line similar to iostat. It’s good for quick diagnosis, performance testing, etc. The output is suitable for import/graphing in excel as well, just use space delimited format when importing the data. Here is a screenshot of how the output appears. You can download the utility and give it a whirl.

This entry was posted in PostgreSQL and tagged , , . Bookmark the permalink.

4 Responses to pgstat: a database utility like iostat

  1. james says:

    Again: perl version at
    http://www.bsdhosting.co.za/~jamesw/pgstat-perl.tgz
    Depends on DBI, DBD::Pg, Getopt::Long, Pod::Usage and DateTime

  2. Pingback: Tuning for very large buffer_cache, using Veritas VxFS | kennygorman.com

  3. Pingback: Graphing pgd output | kennygorman.com

  4. kgorman says:

    Thx Igor for catching a bug.. ;-)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>