Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group