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 17E7FD1B923 for ; Fri, 31 Oct 2003 01:57:06 +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 81957-05 for ; Thu, 30 Oct 2003 21:56:38 -0400 (AST) Received: from candle.pha.pa.us (unknown [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id D528DD1B4E8 for ; Thu, 30 Oct 2003 21:56:33 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h9V1uLP29826; Thu, 30 Oct 2003 20:56:21 -0500 (EST) From: Bruce Momjian Message-Id: <200310310156.h9V1uLP29826@candle.pha.pa.us> Subject: Re: Logging query durations into another table in PostgreSQL In-Reply-To: <3FA362D3.4070008@trade-india.com> To: Rajesh Kumar Mallah Date: Thu, 30 Oct 2003 20:56:21 -0500 (EST) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/382 X-Sequence-Number: 10943 Rajesh Kumar Mallah wrote: > > Hi, > > Is it possible to log the statements and durations of executed > queries into a special table for later analysis. Or capturing the No table option. > 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 Sure, you can use syslog. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073