Unix Technical Forum

Re: Howto get tranaction rate in postgres

This is a discussion on Re: Howto get tranaction rate in postgres within the pgsql Admins forums, part of the PostgreSQL category; --> Hi, I mean the transactions over time interval. Say the current db transactions per minute. Thanks Marco -----Original Message----- ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:12 AM
Meyer Marco
 
Posts: n/a
Default Re: Howto get tranaction rate in postgres

Hi,

I mean the transactions over time interval. Say the current db
transactions per minute.

Thanks
Marco

-----Original Message-----
From: Michael Fuhr [mailto:mike@fuhr.org]
Sent: Tuesday, May 23, 2006 3:41 PM
To: Meyer Marco
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Howto get tranaction rate in postgres

On Tue, May 23, 2006 at 09:18:19AM +0200, Meyer Marco wrote:
> I've been asked to give the transaction rate of a deployed system. How


> can I mesure this in postgres. Could not find anything in the
> documentation. Are there any tools for this.


What transaction rate? The current rate over some time interval?
The maximum possible rate for a particular set of statements? What are
you trying to measure?

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 06:12 AM
Michael Fuhr
 
Posts: n/a
Default Re: Howto get tranaction rate in postgres

On Tue, May 23, 2006 at 03:49:20PM +0200, Meyer Marco wrote:
> I mean the transactions over time interval. Say the current db
> transactions per minute.


See the "Monitoring Database Activity" chapter in the documentation:

http://www.postgresql.org/docs/8.1/i...onitoring.html

One way would be to query pg_stat_database periodically and track
how fast xact_commit and xact_rollback are changing. With monitoring
software like MRTG you could write a script to query pg_stat_database
and let the monitor track the rate of change and draw activity graphs.

Pgfouine generates usage reports but I haven't used it so I don't
know anything about it other than what its web site says. See
"Sample reports" at the following link:

http://pgfouine.projects.postgresql.org/

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com