Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 80E391337B95 for ; Tue, 14 Sep 2010 00:57:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 36785-01 for ; Tue, 14 Sep 2010 03:57:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id CA0F71337B83 for ; Tue, 14 Sep 2010 00:57:30 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 518C4348014; Mon, 13 Sep 2010 20:57:19 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f34p1Sv8g+ir; Mon, 13 Sep 2010 20:57:12 -0700 (PDT) Received: from perhan.alvh.no-ip.org (200-126-90-175.bk6-dsl.surnet.cl [200.126.90.175]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 7B9A3348011; Mon, 13 Sep 2010 20:57:11 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6BAC56E486; Mon, 13 Sep 2010 23:57:05 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-performance Subject: Re: Where does data in pg_stat_user_tables come from? From: Alvaro Herrera To: Josh Berkus In-reply-to: <4C8EC79F.9080404@agliodbs.com> References: <4C8EAE5E.70201@agliodbs.com> <1284421288.28610.501.camel@jd-desktop.unknown.charter.com> <4C8EB813.6070204@agliodbs.com> <1284423128.28610.592.camel@jd-desktop.unknown.charter.com> <4C8EC79F.9080404@agliodbs.com> Date: Mon, 13 Sep 2010 23:57:05 -0400 Message-Id: <1284436337-sup-9871@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201009/69 X-Sequence-Number: 40272 Excerpts from Josh Berkus's message of lun sep 13 20:53:51 -0400 2010: > > > If you select from pg_stat_user_tables, the counters should be > > reasonably close unless your default_statistics_target is way off and > > then pg_class.reltuples would be wrong. > > At least in 8.3, running ANALYZE does not update pg_stat_user_tables in > any way. Does it in later versions? It's been pure nonsense in this thread. Please show an example of what's not working. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support