Search Postgresql Archives

Re: Count actual transaction per minute?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks very much!  I put that query into a script that puts the initial result into a variable, sleeps for a minute, queries again into a second variable and subtracts the difference.
Works fine.

Melvin Davidson

Folk Alley - All Folk - 24 Hours a day

www.folkalley.com



--- On Wed, 5/12/10, hubert depesz lubaczewski <depesz@xxxxxxxxxx> wrote:

From: hubert depesz lubaczewski <depesz@xxxxxxxxxx>
Subject: Re: Count actual transaction per minute?
To: "Melvin Davidson" <melvin6925@xxxxxxxxx>
Cc: pgsql-general@xxxxxxxxxxxxxx
Date: Wednesday, May 12, 2010, 11:20 AM

sure. run:
select sum(xact_commit + xact_rollback) from pg_stat_database
every minute, substract previous result from current, and you'll know
your current tpm.

Best regards,

depesz

--
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@xxxxxxxxxx / aim:depeszhdl / skype:depesz_hdl / gg:6749007


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux