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 E65FCD1B196 for ; Sat, 26 Jun 2004 11:46:06 -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 69356-05 for ; Sat, 26 Jun 2004 14:46:07 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4C5BAD1B7D1 for ; Sat, 26 Jun 2004 11:46:02 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i5QEjvqg009874; Sat, 26 Jun 2004 10:45:58 -0400 (EDT) To: Christopher Kings-Lynne Cc: =?ISO-8859-15?Q?Herv=E9_Piedvache?= , pgsql-performance@postgresql.org, pam@pmg.xs4all.nl Subject: Re: How can one see what queries are running withing a In-reply-to: <40DD3AA8.3040708@familyhealth.com.au> References: <1088192269.6490.3.camel@localhost> <200406252251.09228.footcow@noos.fr> <200406260927.12812.footcow@noos.fr> <40DD3AA8.3040708@familyhealth.com.au> Comments: In-reply-to Christopher Kings-Lynne message dated "Sat, 26 Jun 2004 16:58:16 +0800" Date: Sat, 26 Jun 2004 10:45:57 -0400 Message-ID: <9873.1088261157@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/263 X-Sequence-Number: 7321 Christopher Kings-Lynne writes: > Even easier: > SELECT * FROM pg_stat_activity; But note you must enable stats_command_string to make this very useful. regards, tom lane