X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id ECFCA9FB278 for ; Tue, 25 Jul 2006 05:15:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 19482-04 for ; Tue, 25 Jul 2006 05:15:27 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by postgresql.org (Postfix) with ESMTP id 0726D9FB277 for ; Tue, 25 Jul 2006 05:15:26 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id b36so2338286pyb for ; Tue, 25 Jul 2006 01:15:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=NHZq0vg6vNOvNx4WnDMse8vZHjVR/CmUuvkNYD3IyXu4WUkFQaL1+SK7fvcTG+5eKaGzuZRvSSYJHBbFh423kYWHWWEKLNRhuuhnWEeyQlRsxDnhEKNS8Za8xvSeY9mzFBqx6mnCE+q9VAMY4ZZSFf9mFsG58PXf2L+FlCl8sFo= Received: by 10.35.57.5 with SMTP id j5mr9090566pyk; Tue, 25 Jul 2006 01:15:25 -0700 (PDT) Received: by 10.35.108.11 with HTTP; Tue, 25 Jul 2006 01:15:25 -0700 (PDT) Message-ID: <3f0d61c40607250115m5660c40cg6a5e1df9e531ff86@mail.gmail.com> Date: Tue, 25 Jul 2006 10:15:25 +0200 From: "Marco Bizzarri" To: Postgres Subject: Checking what is the current query running MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.199 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, SPF_PASS X-Spam-Level: X-Archive-Number: 200607/196 X-Sequence-Number: 22442 Hi all. I've a postgresql where sometimes a process can remaing running a query for a very long time. Aside from logging the queries, is there a way to know which query is running in one particular moment? Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/