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 BA6CFD1B1B9 for ; Tue, 18 May 2004 22:07:03 -0300 (ADT) 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 69271-09 for ; Tue, 18 May 2004 22:06:46 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id D5648D1B16E for ; Tue, 18 May 2004 22:06:42 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i4J16iHY010081; Tue, 18 May 2004 21:06:44 -0400 (EDT) To: Steve Lane Cc: pgsql-admin@postgresql.org Subject: Re: Interpreting query debug output In-reply-to: References: Comments: In-reply-to Steve Lane message dated "Tue, 18 May 2004 18:42:10 -0500" Date: Tue, 18 May 2004 21:06:43 -0400 Message-ID: <10080.1084928803@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/187 X-Sequence-Number: 13503 Steve Lane writes: > I have a database that is exhibiting sluggishness under load. Suspecting > that some queries may be poorly optimized, I turned on a fair amount of > debugging output in the logs. But I could use some help interpreting it. I think you're going at this all wrong. EXPLAIN ANALYZE should be the first tool you turn to, not low-level stats. Browsing the archives of the pgsql-performance mailing list may help you get started. regards, tom lane