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 B00B652834 for ; Sun, 3 Jul 2005 20:29:38 -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 44749-09 for ; Sun, 3 Jul 2005 23:29:26 +0000 (GMT) Received: from metux.de (seven.metux.de [193.16.1.1]) by svr1.postgresql.org (Postfix) with ESMTP id 0ED6D5282C for ; Sun, 3 Jul 2005 20:29:24 -0300 (ADT) Received: (from weigelt@localhost) by metux.de (8.12.10/8.12.10) id j63MSURN008589 for pgsql-performance@postgresql.org; Mon, 4 Jul 2005 00:28:30 +0200 Date: Mon, 4 Jul 2005 00:28:30 +0200 From: Enrico Weigelt To: pgsql-performance@postgresql.org Subject: Re: investigating slow queries through pg_stat_activity Message-ID: <20050703222830.GA2056@nibiru.borg.metux.de> Reply-To: weigelt@metux.de Mail-Followup-To: pgsql-performance@postgresql.org References: <0B5C29FA-E949-447E-AEFE-A806E238F1C2@drivefaster.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0B5C29FA-E949-447E-AEFE-A806E238F1C2@drivefaster.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200507/17 X-Sequence-Number: 13258 * Dan Harris wrote: Hi, > I've got some queries generated by my application that will, for some > reason, run forever until I kill the pid. Yet, when I run the > queries manually to check them out, they usually work fine. If you can change your application, you could try to encapsulate the queries into views - this makes logging and tracking down problems much easier. cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact@metux.de --------------------------------------------------------------------- Realtime Forex/Stock Exchange trading powered by postgresSQL :)) http://www.fxignal.net/ ---------------------------------------------------------------------