Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHAkl-0003gp-HN for pgsql-admin@arkaria.postgresql.org; Wed, 04 Sep 2013 10:56:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VHAkl-0002kQ-0r for pgsql-admin@arkaria.postgresql.org; Wed, 04 Sep 2013 10:56:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHAkj-0002kJ-Vl for pgsql-admin@postgresql.org; Wed, 04 Sep 2013 10:56:02 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHAkc-0008D4-74 for pgsql-admin@postgresql.org; Wed, 04 Sep 2013 10:56:01 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VHAkZ-0006gB-Rp for pgsql-admin@postgresql.org; Wed, 04 Sep 2013 03:55:51 -0700 Date: Wed, 4 Sep 2013 03:55:51 -0700 (PDT) From: boraldomaster To: pgsql-admin@postgresql.org Message-ID: <1378292151856-5769528.post@n5.nabble.com> In-Reply-To: <20363.1360266498@sss.pgh.pa.us> References: <20130207191641.149E5128@centrum.cz> <17450.1360263900@sss.pgh.pa.us> <5113FF56.5020309@pinpointresearch.com> <20363.1360266498@sss.pgh.pa.us> Subject: Re: Postgres 9.1 statistics in pg_stat_database MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin