Re: Postgres 9.1 statistics in pg_stat_database - Mailing list pgsql-admin

From boraldomaster
Subject Re: Postgres 9.1 statistics in pg_stat_database
Date
Msg-id 1378292151856-5769528.post@n5.nabble.com
Whole thread Raw
In response to Re: Postgres 9.1 statistics in pg_stat_database  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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.


pgsql-admin by date:

Previous
From: Patrick Dung
Date:
Subject: Re: several questions about pg_dumpall, pg_start_backup, pg_basebackup and WAL
Next
From: JotaComm
Date:
Subject: Problems with vacuum