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 47091D1B946 for ; Thu, 30 Oct 2003 21:08:36 +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 34381-09 for ; Thu, 30 Oct 2003 17:08:06 -0400 (AST) Received: from trade-india.com (ns5.trade-india.com [66.234.10.13]) by svr1.postgresql.org (Postfix) with SMTP id 6EB0AD1B906 for ; Thu, 30 Oct 2003 17:07:50 -0400 (AST) Received: (qmail 18588 invoked from network); 30 Oct 2003 21:09:11 -0000 Received: from unknown (HELO trade-india.com) (203.145.130.142) by ns5.trade-india.com with SMTP; 30 Oct 2003 21:09:11 -0000 Message-ID: <3FA362D3.4070008@trade-india.com> Date: Sat, 01 Nov 2003 02:37:55 -0500 From: Rajesh Kumar Mallah User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Logging query durations into another table in PostgreSQL 7.4 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/377 X-Sequence-Number: 10938 Hi, Is it possible to log the statements and durations of executed queries into a special table for later analysis. Or capturing the logfile and parsing it the only way? In the case of latter is it possible to use syslog to pipe the lines through a program can anyone please share the config if he has done it before Regds Mallah.