Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 38F3B2E0063 for ; Sun, 16 Dec 2007 19:37:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 37903-06 for ; Sun, 16 Dec 2007 19:37:46 -0400 (AST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by postgresql.org (Postfix) with ESMTP id B856D2E0140 for ; Sun, 16 Dec 2007 19:37:49 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id m38so3124760waf.5 for ; Sun, 16 Dec 2007 15:37:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=uxwWP4k8nXBWGk7FUbj+UAktvM5ZFBol5UpG0bfQ+KM=; b=s09E/4zZLx9hJ8HhxxdmIvfLPEjMYR+FWqhHxcCKLQ5OV0CZJNAQQVJcBVeuldOS9ZRCwxTFEHaFY9wkI9477Y2wsTDdE6v7ein7Yjj7o8+fHJsJJOFQM6BhhCyRAcgxWZ6NsKWGSeCg47Z4t8Vlsm5bR3bEYOu89hrzUwzvS9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZOmzYxlRDWW+Bl0hdaX3OuNvPtTeIHBUAfYnZyX4VCUfcEmNSV6lbVJnfmCBCIl3y0/HXovTG/p0dWTzE2bkxoDo1RoTjjo+twUPtROuSEmYPKgormWWA11sdKPLB/41oAv93Dm9GMKsNYyGXp922fV2Qcftobj2BlIhXUsbRLk= Received: by 10.115.58.1 with SMTP id l1mr1743082wak.110.1197848268264; Sun, 16 Dec 2007 15:37:48 -0800 (PST) Received: by 10.114.131.4 with HTTP; Sun, 16 Dec 2007 15:37:48 -0800 (PST) Message-ID: Date: Sun, 16 Dec 2007 17:37:48 -0600 From: "Scott Marlowe" To: "Usama Dar" Subject: Re: reading pg_stat_activity view Cc: "Tena Sakai" , pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/131 X-Sequence-Number: 27648 On Dec 16, 2007 1:37 PM, Usama Dar wrote: > > > > > > > > > There wouldn't > > be any way to just log it and still keep the query alive, > > would there? > > > I think it will be a useful feature to add to postgres, for the benefit of > DBAs, the ability to log slow queries, the queries which take more than x > amount of time, maybe in a separate slow query log. i am sure it sounds > familiar to a lot of people ;) You can already log slow queries, they just go into the pgsql logs.