Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3X4u-0006oG-4o for pgsql-admin@arkaria.postgresql.org; Thu, 07 Feb 2013 19:24:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U3X4t-0000TN-4k for pgsql-admin@arkaria.postgresql.org; Thu, 07 Feb 2013 19:24:11 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3X4s-0000TI-CX for pgsql-admin@postgresql.org; Thu, 07 Feb 2013 19:24:10 +0000 Received: from cerberus.pinpointresearch.com ([66.7.238.130] helo=polaris.pinpointresearch.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3X4p-0001oF-CW for pgsql-admin@postgresql.org; Thu, 07 Feb 2013 19:24:09 +0000 Received: from [192.168.1.179] (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id 1CA14E00EC83; Thu, 7 Feb 2013 11:24:06 -0800 (PST) Message-ID: <5113FF56.5020309@pinpointresearch.com> Date: Thu, 07 Feb 2013 11:24:06 -0800 From: Steve Crawford User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Tom Lane CC: Milos Gajdos , pgsql-admin@postgresql.org Subject: Re: Postgres 9.1 statistics in pg_stat_database References: <20130207191641.149E5128@centrum.cz> <17450.1360263900@sss.pgh.pa.us> In-Reply-To: <17450.1360263900@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) 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 On 02/07/2013 11:05 AM, Tom Lane wrote: > =?utf-8?q?Milos_Gajdos?= 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