Re: Count actual transaction per minute?

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Melvin Davidson <melvin6925(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Count actual transaction per minute?
Date: 2010-05-12 16:20:04
Message-ID: 20100512162004.GA29780@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, May 12, 2010 at 09:12:43AM -0700, Melvin Davidson wrote:
> Can anyone tell me how to measure _actual_ transactions per minute on a PostgreSQL server. I am not talking about using pgbench, as I am not interested in determining what is possible, but rather the actual count of queries / transactions being sent to the server.

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(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ben Chobot 2010-05-12 16:21:18 Re: Count actual transaction per minute?
Previous Message Justin Graf 2010-05-12 16:18:22 Re: Reliability of Windows versions 8.3 or 8.4