X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B7AAF53236 for ; Mon, 2 May 2005 00:18:47 -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 20376-04 for ; Mon, 2 May 2005 03:18:39 +0000 (GMT) Received: from metux.de (seven.metux.de [193.16.1.1]) by svr1.postgresql.org (Postfix) with ESMTP id 545F05320C for ; Mon, 2 May 2005 00:18:32 -0300 (ADT) Received: (from weigelt@localhost) by metux.de (8.12.10/8.12.10) id j423IU56010184 for pgsql-admin@postgresql.org; Mon, 2 May 2005 05:18:30 +0200 Date: Mon, 2 May 2005 05:18:30 +0200 From: Enrico Weigelt To: pgsql-admin Subject: measuring most-expensive queries Message-ID: <20050502031830.GC24546@nibiru.borg.metux.de> Reply-To: weigelt@metux.de Mail-Followup-To: pgsql-admin Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: 200505/2 X-Sequence-Number: 17431 Hi folks, I'd like to find out which queries are most expensive (taking very long or producing high load) in a running system, to see what requires further optimization. (the application is quite large and some more folks involved, so I cant check evrything manually). Well, the postmaster can log ev'ry single statement, but its really too for a human person, to read the log files. Is there any tool for that ? thx -- --------------------------------------------------------------------- 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/ ---------------------------------------------------------------------