Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C618D632F75 for ; Wed, 31 Mar 2010 07:51:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 01298-02 for ; Wed, 31 Mar 2010 10:51:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from rs47.luxsci.com (rs47.luxsci.com [65.61.166.88]) by mail.postgresql.org (Postfix) with ESMTP id 2B417632504 for ; Wed, 31 Mar 2010 07:51:23 -0300 (ADT) Received: from gnanam (ABTS-TN-Static-186.58.165.122.airtelbroadband.in [122.165.58.186] (may be forged)) (authenticated bits=0) by rs47.luxsci.com (8.13.1/8.13.7) with ESMTP id o2VApHx6006627; Wed, 31 Mar 2010 05:51:19 -0500 Reply-To: From: "Gnanakumar" To: "'Guillaume Lelarge'" Cc: References: <007501cad09d$326fefc0$974fcf40$@com> <4BB2FA68.6060708@lelarge.info> <00b601cad0b0$5e713760$1b53a620$@com> <4BB31032.6060809@lelarge.info> <00c001cad0b2$a4a89c30$edf9d490$@com> <4BB3153F.6010901@lelarge.info> In-Reply-To: <4BB3153F.6010901@lelarge.info> Subject: Re: Statistics Collector not collecting server activities Date: Wed, 31 Mar 2010 16:21:12 +0530 Organization: Zoniac Software Private Limited Message-ID: <00da01cad0c0$169f3030$43dd9090$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 thread-index: AcrQtDs8eU+ZDZuJQDGlVTNn7mze0gACwXtw Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.115 tagged_above=-10 required=5 tests=AWL=0.070, BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 201003/281 X-Sequence-Number: 34080 After restarting PostgreSQL, I can see the following parameters are set = to ON: mydb=3D# show stats_start_collector; stats_start_collector ----------------------- on (1 row) mydb=3D# show stats_start_collector; stats_start_collector ----------------------- on (1 row) mydb=3D# show stats_block_level; stats_block_level ------------------- on (1 row) mydb=3D# show stats_reset_on_server_start; stats_reset_on_server_start ----------------------------- off (1 row) But still, if I query after performing heavy DML operations, I'm always getting zero, even though there are INSERT/UPDATE/DELETE. select pg_stat_get_tuples_inserted((select oid from pg_class where = relname =3D 'mytable')); Is there any other parameter I'm missing to make this work. -----Original Message----- From: Guillaume Lelarge [mailto:guillaume@lelarge.info]=20 Sent: Wednesday, March 31, 2010 2:56 PM To: gnanam@zoniac.com Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Statistics Collector not collecting server = activities Le 31/03/2010 11:14, Gnanakumar a =E9crit : > OK. I'll try that way. >=20 > But, as per 8.2 doc, by default it is ON. So if I comment with just = '#' > infront of the parameter, and restart PostgreSQL, this change will not = be > reflected, which means it should work with default value ON? Yes, you're right. Maybe you have stats_start_collector at different places in your postgresql.conf. The last value is used in this case. So you should better check this. --=20 Guillaume. http://www.postgresqlfr.org http://dalibo.com