pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@gmail.com>
To: Meyer Marco <Marco.Meyer@intradoemea.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to mesure transaction rate in Postgres
Date: Thu, 25 May 2006 08:33:56 +0200
Message-ID: <9e4684ce0605242333o6b4e4c9drd111594655c323d5@mail.gmail.com> (raw)
In-Reply-To: <684146607711D947A4E4C905326C5E392BFE8E@inbmdmx01.intradoemea.local>
References: <684146607711D947A4E4C905326C5E392BFE8E@inbmdmx01.intradoemea.local>

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

view thread (3+ messages)  latest in thread

Message-ID: <9e4684ce0605242333o6b4e4c9drd111594655c323d5@mail.gmail.com>
Permalink:  ../9e4684ce0605242333o6b4e4c9drd111594655c323d5@mail.gmail.com/
Also on:    postgresql.org/message-id/9e4684ce0605242333o6b4e4c9drd111594655c323d5@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: depesz@gmail.com, Marco.Meyer@intradoemea.com
  Subject: Re: How to mesure transaction rate in Postgres
  In-Reply-To: <9e4684ce0605242333o6b4e4c9drd111594655c323d5@mail.gmail.com>
  References: <684146607711D947A4E4C905326C5E392BFE8E@inbmdmx01.intradoemea.local> <9e4684ce0605242333o6b4e4c9drd111594655c323d5@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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