Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 37857633EBB for ; Wed, 31 Mar 2010 10:23:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 45971-01 for ; Wed, 31 Mar 2010 13:23:05 +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 6F36B6339CC for ; Wed, 31 Mar 2010 10:23:05 -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 o2VDMw9e008612; Wed, 31 Mar 2010 08:23:00 -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> <00da01cad0c0$169f3030$43dd9090$@com> <4BB33F87.3070901@lelarge.info> In-Reply-To: <4BB33F87.3070901@lelarge.info> Subject: Re: Statistics Collector not collecting server activities Date: Wed, 31 Mar 2010 18:52:53 +0530 Organization: Zoniac Software Private Limited Message-ID: <00fd01cad0d5$46eed870$d4cc8950$@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: AcrQzW9wQnXqPRC5RDalbtHjmdM4XgABvgXQ Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.185 tagged_above=-10 required=5 tests=BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 201003/287 X-Sequence-Number: 34086 show stats_row_level is also showing ON. mydb=3D# show stats_row_level; stats_row_level ----------------- on (1 row) I also ran "select * from pg_stat_user_tables", all columns are showing either 0 or NULL value for all the tables in my database. I don't find = any values other than this for the entire tables in the database. -----Original Message----- From: Guillaume Lelarge [mailto:guillaume@lelarge.info]=20 Sent: Wednesday, March 31, 2010 5:57 PM To: gnanam@zoniac.com Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Statistics Collector not collecting server = activities Le 31/03/2010 12:51, Gnanakumar a =E9crit : > 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) >=20 > mydb=3D# show stats_start_collector; > stats_start_collector > ----------------------- > on > (1 row) >=20 > mydb=3D# show stats_block_level; > stats_block_level > ------------------- > on > (1 row) >=20 > mydb=3D# show stats_reset_on_server_start; > stats_reset_on_server_start > ----------------------------- > off > (1 row) >=20 > 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')); >=20 > Is there any other parameter I'm missing to make this work. >=20 Nope. But you didn't show stats_row_level. If it's on too, try "select * from pg_stat_user_tables". --=20 Guillaume. http://www.postgresqlfr.org http://dalibo.com