Re: use of pg_stat_database

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: abdelhak benmohamed <abdelhak(dot)benmohamed(at)yahoo(dot)fr>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: use of pg_stat_database
Date: 2009-06-30 13:26:23
Message-ID: b42b73150906300626w3c6355b9pef9a046e2e0354c9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jun 30, 2009 at 7:13 AM, abdelhak
benmohamed<abdelhak(dot)benmohamed(at)yahoo(dot)fr> wrote:
> Hellow,
>
>
>
> I like to track the number of committed transaction for my database
>
> So I use the following command
>
> Select * from pg_stat_database;
>
>
>
> The column xact_commit gives me the number of transaction committed
>
>
>
> But if I execute the same command another time, the column xact_commit gives
> me an other number.
>
>
>
> Between the first select and the second select I don’t execute any
> transaction on my database
>
>
>
> Please, can any one help me to understanding the cause of the change?

try turning on statement logging (log_statement='all'). please post
q&a time questions to -general.

merlin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-06-30 13:35:47 Re: 8.5 development schedule
Previous Message Aidan Van Dyk 2009-06-30 13:12:54 Re: pre-proposal: permissions made easier