Re: counting transactions

From: "Armand Pirvu (home)" <armand(dot)pirvu(at)gmail(dot)com>
To: Keith <keith(at)keithf4(dot)com>
Cc: Kevin Grittner <kgrittn(at)ymail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: counting transactions
Date: 2015-09-09 02:23:46
Message-ID: BDC882E4-6CF1-4410-8446-389E67F293AF@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Great deal Keith

Thanks for the info

Armand

On Sep 8, 2015, at 8:48 PM, Keith <keith(at)keithf4(dot)com> wrote:

>
>
> On Tue, Sep 8, 2015 at 9:28 PM, Armand Pirvu (home) <armand(dot)pirvu(at)gmail(dot)com> wrote:
> Perfect Kevin
>
> Many thanks.
> On the same token anyway I can count the number of connects/disconnects for a specific database ?
>
>
>
> Thanks
> Armand
>
>
> Set connections and disconnections to be logged in postgresql.conf and then use pg_badger on the logs. Nothing in the database itself that I'm aware of.
> You may also want to look into the pg_stat_statements extension. Be aware that it does add some overhead to your DB load, but it can provide a wealth of query statistics for you. pgbadger gives you a lot of that same data as well, though, just delayed until log analysis runs and limited to the top 20 or so such statements.
>
> http://dalibo.github.io/pgbadger/
>
> Keith
>
>
>
> On Sep 8, 2015, at 7:56 AM, Kevin Grittner <kgrittn(at)ymail(dot)com> wrote:
>
> > Armand Pirvu (gmail) <armand(dot)pirvu(at)gmail(dot)com> wrote:
> >
> >> is there any way to really count the transactions ? In Ingres for
> >> example I can look in logdump output or in imadb
> >
> > If you only care about transactions that modify the database, you
> > could look at the output of the pg_controldata utility and pick off
> > the NextXID value.
> >
> > --
> > Kevin Grittner
> > EDB: http://www.enterprisedb.com
> > The Enterprise PostgreSQL Company
>
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Laura Horsky 2015-09-09 14:13:29 PostgreSQL won't start
Previous Message Keith 2015-09-09 01:48:07 Re: counting transactions