X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A337AD1B52C for ; Wed, 15 Oct 2003 21:35:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 42558-02 for ; Wed, 15 Oct 2003 18:34:40 -0300 (ADT) Received: from statler.squaretrade.com (statler.squaretrade.com [216.136.217.76]) by svr1.postgresql.org (Postfix) with ESMTP id BDA96D1B510 for ; Wed, 15 Oct 2003 18:34:37 -0300 (ADT) Received: from [207.215.2.254] (helo=siege) by statler.squaretrade.com with esmtp (Exim 3.35 #1 (Debian)) id 1A9tF1-0007eF-00 for ; Wed, 15 Oct 2003 14:31:35 -0700 Received: from localhost ([127.0.0.1] helo=squaretrade.com) by siege with esmtp (Exim 3.35 #1 (Debian)) id 1A9tHz-0002ch-00 for ; Wed, 15 Oct 2003 14:34:39 -0700 Message-ID: <3F8DBD6F.80905@squaretrade.com> Date: Wed, 15 Oct 2003 14:34:39 -0700 From: Ryan Chambers User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: understanding postgres stats Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/163 X-Sequence-Number: 10724 Hi I've recently enabled statistics gathering on our large (> 50GB) postgres database because of a recent significant decrease in performance, believed to be related to changes in the application running on top of it. I'm trying to make sense of these statistics in my investigation of this. Are there any rules-of-thumb used when looking at them? For example the ratio of idx_scan to idx_tup_fetch in pg_stat_user_tables, or heap_blks_read to heap_blks_hit in pg_statio_user_tables. I'm assuming that the answer will be "Well, it really depends on your database/application", but if anybody has any quick rules of thumb, I'd love to hear them. I've found a lot of advice on the web for optimizing postgres databases, and so I don't need that kind of info. Thanks in advance. Ryan