Transactions per second - Mailing list pgsql-hackers

From Jim Nasby
Subject Transactions per second
Date
Msg-id 925ED229-00D7-494E-B4F0-A6D52295031B@pervasive.com
Whole thread Raw
Responses Re: Transactions per second
List pgsql-hackers
I often find myself wanting to know how many transactions per second  
a database is committing to disk, as well as how many queries per  
second it's processing. While Larry's busy making stats changes, I'd  
like to propose a few more counters:

Number of commits: Ideally, this would only count transactions that  
actually modify data
Number of statements: Simply, how many statements have been executed
Number of DML statements: how many insert/update/delete statements  
executed.

For the last two, it would be ideal if they counted statements that  
were executed inside of a function.

Having these counters would make it easier to determine what kind of  
workload a server is actually handling. It's currently possible to  
determine transactions over a time period, but the process is rather  
convoluted and doesn't differentiate between transactions that modify  
data and those that don't.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461




pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Altering view ownership doesn't work ...
Next
From: "William ZHANG"
Date:
Subject: Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC