pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Milos Gajdos <gy2kre@centrum.cz>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgres 9.1 statistics in pg_stat_database
Date: Thu, 07 Feb 2013 11:24:06 -0800
Message-ID: <5113FF56.5020309@pinpointresearch.com> (raw)
In-Reply-To: <17450.1360263900@sss.pgh.pa.us>
References: <20130207191641.149E5128@centrum.cz>
	<17450.1360263900@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On 02/07/2013 11:05 AM, Tom Lane wrote:
> =?utf-8?q?Milos_Gajdos?= <gy2kre@centrum.cz> writes:
>> What this shows is that xact_commit increases by 3 after just one row insert. tup_inserted does seem to report correct value. After simple SELECT, xact_commit increases by 2 - kind of strange as SELECT shouldn't really be increasing xact_commit ?
> Yes, a SELECT does count as an xact_commit...
>
Additionally (correct me if I'm wrong, Tom), background activity like 
autovacuum will generate countable transactions. I can see transactions 
increment by a dozen or more on a completely "idle" database if I just 
wait a minute or two but the number of those transactions, while visible 
on an idle system, is lost in the noise on a busy database.

Other things that generate transactions include connecting to the 
database (one, it appears) but \d in psql appears to generate a minimum 
of four.

Cheers,
Steve



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (5+ messages)  latest in thread

Message-ID: <5113FF56.5020309@pinpointresearch.com>
Permalink:  ../5113FF56.5020309@pinpointresearch.com/
Also on:    postgresql.org/message-id/5113FF56.5020309@pinpointresearch.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scrawford@pinpointresearch.com, tgl@sss.pgh.pa.us, gy2kre@centrum.cz
  Subject: Re: Postgres 9.1 statistics in pg_stat_database
  In-Reply-To: <5113FF56.5020309@pinpointresearch.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