Re: Better Connection Statistics

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Better Connection Statistics
Date: 2014-02-08 19:52:39
Message-ID: d9b2fda598d5cbcb3d684410e7b59bca@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

> For instance, I want the number of transactions a specific connection has submitted.
> The number of queries. Total amount of CPU time consumed, etc. So far as I know,
> there is no module, statistic, or view that provides any of this.

For the basic connection information, you could parse the Postgres logs, assuming
you are being verbose enough to capture everything. Certainly you could get
commits/rollbacks/queries/avg_time per connection. For deeper and better introspection,
check out integrating DTrace or SystemTap.

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201402081451
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8

-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAlL2itEACgkQvJuQZxSWSshlIgCgo+jkIYojwc23O4jwLGYxqZ8H
tJgAn3/K7lK+S4c4003xO+nVcWzsc+TK
=uFOM
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Wolfgang Keller 2014-02-08 19:55:30 Re: client that supports editing views
Previous Message Adrian Klaver 2014-02-08 15:26:44 Re: client that supports editing views

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Paquier 2014-02-10 02:52:02 Re: Better Connection Statistics
Previous Message Gavin Flower 2014-02-08 00:18:18 Re: Help with nearest location