Re: use of pg_stat_database - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: use of pg_stat_database
Date
Msg-id b42b73150906300626w3c6355b9pef9a046e2e0354c9@mail.gmail.com
Whole thread Raw
In response to use of pg_stat_database  (abdelhak benmohamed <abdelhak.benmohamed@yahoo.fr>)
List pgsql-hackers
On Tue, Jun 30, 2009 at 7:13 AM, abdelhak
benmohamed<abdelhak.benmohamed@yahoo.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


pgsql-hackers by date:

Previous
From: Aidan Van Dyk
Date:
Subject: Re: pre-proposal: permissions made easier
Next
From: Robert Haas
Date:
Subject: Re: 8.5 development schedule