Re: Postgres 9.1 statistics in pg_stat_database

From: boraldomaster <boraldomaster(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Postgres 9.1 statistics in pg_stat_database
Date: 2013-09-04 10:55:51
Message-ID: 1378292151856-5769528.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Let me show you my statistics, that confuses me even in terms of this
discussion.
What am I doing.

1. Create a database *highload*.
2. Execute *select xact_commit from pg_stat_database where datname =
'highload'* from neighbouring database (so that xact_commit is counted to
that neighbour) and receive 0.
3. Connect to database from several different clients and get +1 to
xact_commit for each connection.
4. Wait for 1 min (several times) and get +2 each minute - so this is
autovacuum works.
5. Start executing simple select *select * from pg_user*
Each select gives me +4, +5, +6. In pgadmin - even +19.

So the first question.
1. Why autovacuum gives +2
2. Why select gives +4 an more ?

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Postgres-9-1-statistics-in-pg-stat-database-tp5744283p5769528.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message JotaComm 2013-09-04 14:57:26 Problems with vacuum
Previous Message Patrick Dung 2013-09-01 09:33:33 Re: several questions about pg_dumpall, pg_start_backup, pg_basebackup and WAL