pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to mesure transaction rate in Postgres
3+ messages / 3 participants
[nested] [flat]

* How to mesure transaction rate in Postgres
@ 2006-05-23 06:50 Meyer Marco <Marco.Meyer@IntradoEMEA.com>
  2006-05-25 06:33 ` Re: How to mesure transaction rate in Postgres hubert depesz lubaczewski <depesz@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Meyer Marco @ 2006-05-23 06:50 UTC (permalink / raw)
  To: pgsql-admin

Hello,

I've been asked for the transaction rate we have on an installed
Postgres server. Where and how can I get this information. I could not
find anything in the documentation. I have root access to the system.

Thank you for your Help.

Marco

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to mesure transaction rate in Postgres
  2006-05-23 06:50 How to mesure transaction rate in Postgres Meyer Marco <Marco.Meyer@IntradoEMEA.com>
@ 2006-05-25 06:33 ` hubert depesz lubaczewski <depesz@gmail.com>
  2006-05-25 20:55   ` Re: How to mesure transaction rate in Postgres Jim Nasby <jnasby@pervasive.com>
  0 siblings, 1 reply; 3+ messages in thread

From: hubert depesz lubaczewski @ 2006-05-25 06:33 UTC (permalink / raw)
  To: Meyer Marco <Marco.Meyer@intradoemea.com>; +Cc: pgsql-admin

On 5/23/06, Meyer Marco <Marco.Meyer@intradoemea.com> wrote:
>
> I've been asked for the transaction rate we have on an installed Postgres
> server. Where and how can I get this information. I could not find anything
> in the documentation. I have root access to the system.
>

this is definitelly not nice approach, but it works.
connect to database, and issue this command:
begin; create table not_previously_existsing(id int4); select xmin from
pg_class where relname = 'not_previously_existsing'; rollback;

returned value is id of the transaction that created the table.
repeat this command every so often (mrtg does that every 5 minutes), and you
can see how it grows.

depesz

-- 
http://www.depesz.com/ - nowy, lepszy depesz

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to mesure transaction rate in Postgres
  2006-05-23 06:50 How to mesure transaction rate in Postgres Meyer Marco <Marco.Meyer@IntradoEMEA.com>
  2006-05-25 06:33 ` Re: How to mesure transaction rate in Postgres hubert depesz lubaczewski <depesz@gmail.com>
@ 2006-05-25 20:55   ` Jim Nasby <jnasby@pervasive.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Jim Nasby @ 2006-05-25 20:55 UTC (permalink / raw)
  To: hubert depesz lubaczewski <depesz@gmail.com>; +Cc: Meyer Marco <Marco.Meyer@intradoemea.com>; pgsql-admin

On May 25, 2006, at 1:33 AM, hubert depesz lubaczewski wrote:
> On 5/23/06, Meyer Marco <Marco.Meyer@intradoemea.com> wrote:
> I've been asked for the transaction rate we have on an installed  
> Postgres server. Where and how can I get this information. I could  
> not find anything in the documentation. I have root access to the  
> system.
>
>
> this is definitelly not nice approach, but it works.

Or just SELECT xact_commit + xact_rollback FROM pg_stat_database;
--
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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2006-05-25 20:55 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-05-23 06:50 How to mesure transaction rate in Postgres Meyer Marco <Marco.Meyer@IntradoEMEA.com>
2006-05-25 06:33 ` hubert depesz lubaczewski <depesz@gmail.com>
2006-05-25 20:55   ` Jim Nasby <jnasby@pervasive.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox