Re: Better Connection Statistics - Mailing list pgsql-general

From Greg Sabino Mullane
Subject Re: Better Connection Statistics
Date
Msg-id d9b2fda598d5cbcb3d684410e7b59bca@biglumber.com
Whole thread Raw
In response to Better Connection Statistics  (Shaun Thomas <sthomas@optionshouse.com>)
Responses Re: Better Connection Statistics  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-general
-----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@turnstep.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-----




pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: client that supports editing views
Next
From: Wolfgang Keller
Date:
Subject: Re: client that supports editing views