X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4AC99528B1 for ; Mon, 20 Jun 2005 15:46:19 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 20719-03 for ; Mon, 20 Jun 2005 18:46:06 +0000 (GMT) Received: from mars.interactivemediafactory.net (mars.imfeurope.net [194.2.222.161]) by svr1.postgresql.org (Postfix) with ESMTP id 295B252871 for ; Mon, 20 Jun 2005 15:46:04 -0300 (ADT) Received: from JC-8600.directinfos.com (localhost [127.0.0.1]) by mars.interactivemediafactory.net (8.12.11/8.12.11) with ESMTP id j5KIjwp3012935; Mon, 20 Jun 2005 20:45:59 +0200 (CEST) (envelope-from jc@directinfos.com) Message-Id: <6.2.0.14.0.20050620204307.039e9e78@pop.interactivemediafactory.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.0.14 Date: Mon, 20 Jun 2005 20:45:54 +0200 To: Dan Harris From: Jacques Caron Subject: Re: investigating slow queries through Cc: pgsql-performance@postgresql.org In-Reply-To: <0B5C29FA-E949-447E-AEFE-A806E238F1C2@drivefaster.net> References: <0B5C29FA-E949-447E-AEFE-A806E238F1C2@drivefaster.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/371 X-Sequence-Number: 13008 Hi, At 19:55 20/06/2005, Dan Harris wrote: >Also, I'm sure some people will respond with "turn on query >logging".. I've explored that option and the formatting of the log >file and the fact that EVERY query is logged is not what I'm after >for this project. You can log just those queries that take "a little bit too much time". See log_min_duration_statement in postgresql.conf. Set it really high, and you'll only get those queries you're after. Jacques.