Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D6A62633958 for ; Wed, 31 Mar 2010 09:27:02 -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 14833-08 for ; Wed, 31 Mar 2010 12:26:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id 26B87633E5D for ; Wed, 31 Mar 2010 09:26:50 -0300 (ADT) Received: from [192.168.0.7] (uni14-1-82-233-223-216.fbx.proxad.net [82.233.223.216]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 2E9E93B906; Wed, 31 Mar 2010 14:26:48 +0200 (CEST) Message-ID: <4BB33F87.3070901@lelarge.info> Date: Wed, 31 Mar 2010 14:26:47 +0200 From: Guillaume Lelarge User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: gnanam@zoniac.com CC: pgsql-admin@postgresql.org Subject: Re: Statistics Collector not collecting server activities 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> In-Reply-To: <00da01cad0c0$169f3030$43dd9090$@com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.972 tagged_above=-10 required=5 tests=AWL=0.627, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/284 X-Sequence-Number: 34083 Le 31/03/2010 12:51, Gnanakumar a écrit : > After restarting PostgreSQL, I can see the following parameters are set to > ON: > mydb=# show stats_start_collector; > stats_start_collector > ----------------------- > on > (1 row) > > mydb=# show stats_start_collector; > stats_start_collector > ----------------------- > on > (1 row) > > mydb=# show stats_block_level; > stats_block_level > ------------------- > on > (1 row) > > mydb=# 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 = > 'mytable')); > > Is there any other parameter I'm missing to make this work. > Nope. But you didn't show stats_row_level. If it's on too, try "select * from pg_stat_user_tables". -- Guillaume. http://www.postgresqlfr.org http://dalibo.com