Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjLUr-0000r9-2Q for pgsql-admin@arkaria.postgresql.org; Fri, 14 Dec 2012 02:59:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TjLUq-0001jg-I8 for pgsql-admin@arkaria.postgresql.org; Fri, 14 Dec 2012 02:59:32 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjLUp-0001iX-4x for pgsql-admin@postgresql.org; Fri, 14 Dec 2012 02:59:31 +0000 Received: from nm20-vm3.bullet.mail.ne1.yahoo.com ([98.138.91.150]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjLUn-0003LV-Gn for pgsql-admin@postgresql.org; Fri, 14 Dec 2012 02:59:30 +0000 Received: from [98.138.226.180] by nm20.bullet.mail.ne1.yahoo.com with NNFMP; 14 Dec 2012 02:59:28 -0000 Received: from [98.138.87.1] by tm15.bullet.mail.ne1.yahoo.com with NNFMP; 14 Dec 2012 02:59:28 -0000 Received: from [127.0.0.1] by omp1001.mail.ne1.yahoo.com with NNFMP; 14 Dec 2012 02:59:28 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 226655.24002.bm@omp1001.mail.ne1.yahoo.com Received: (qmail 59066 invoked by uid 60001); 14 Dec 2012 02:59:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1355453968; bh=WrW9DY1Ucm0qSptyPtn7qOoJkBx946h7nhloHCwkt9M=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=DYqfqFZqAJfoXNWMHiFesL6ht07XSs3rJjkpwK7pBLf7y7F9vzfrVeSwgoS+zyLopTWq0f9mPfK7NHMlXqlgXk/aXFp6Pw6quANZDLzdaDxTpXO7pioIT35Lv+n5Ty6zJJFcHU3Q32UW0NHVH8AhsGfedkzGeutuv8VSh+4UThk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=yXjwVbDnGE/LDMscVDSo33JIrYx87bj6GBH7jk/OoAwrcgmvGFS2ASO4oXRUpN9aSYMtOfJ5pSA5T1M4kx2qogTjBxmC1PCkdwC0ApP4xIoknZ16bDAAbQhwhqY69PWK6cpO1AMM18GnwvFVD6wzphJILYh3daMLy5Pl+AsdYos=; X-YMail-OSG: sV_UVMoVM1mOteA0lHy2fRe5ylSHe76bDxic8uw7GkNY1Q6 myIq60oeWKbLWf1QfNaBCAGwmNIeHf7rs5ZmanmWonXt5qvW4HeKfd3rmUcE g3zqzoPIwkMWW3uR46qYygSCPUJLHwQQxSx.vR9SEZf2yJQ0Uz56Pb9ObzBY mjqrUABS3r9OhMIJc10QBDEF7x2SEL4v96ovqMoKseQjRlqFt.rum8pcXcKy C6XmQ6nkVYDbZ_edNY_Z.QZwfTWnzGb08Yv4wTqN6a0vSX44BdLeTVkEuEt8 cxJOKCS3wDk4y3Lzk_mKIoz4rHvISMddHrjZPdC5E.6icXOTmqY.v2uzFz3b 5NP_klN8eaYSBGZcfTa9saD6Mf3e6z9k8o6TvMnFJPC3Aa.h6e1MX0_tuyL9 QMraLvMJUCo.Ezj03mfheD3aJXqLJFy5B_6Z8dBincXEFBpltVWuhsMu9py. PxsODf8HtCKugoGU.WZk6WcSpwRCkBM9CgEbu Received: from [98.210.146.78] by web125905.mail.ne1.yahoo.com via HTTP; Thu, 13 Dec 2012 18:59:27 PST X-Rocket-MIMEInfo: 001.001, VGhpcyBzZWVtcyBsaWtlIGEgcXVlc3Rpb24gd2hvc2UgYW5zd2VyIG11c3QgYmUgcmlnaHQgaW4gZnJvbnQgb2YgbWUsIGJ1dCBJIGFtIG5vdCBzZWVpbmcgaXQuCgpXZSB3YW50IHRvIGNyZWF0ZSBhIHJvbGUgdXNlZCBieSBhIG1vbml0b3IgdG8gY2hlY2sgZm9yICI8SURMRT4gaW4gVHJhbnNhY3Rpb24iIHdpdGggdGhlIG1vc3QgcmVzdHJpY3RpdmUgcGVybWlzc2lvbnMgd2UgY2FuIG9uIGEgOC40LjEzIGluc3RhbmNlLgoKVGhlIHVzZXIgaGFzIGJlZW4gZ3JhbnRlZCBjb25uZWN0IHByaXZpbGVnZSB0byABMAEBAQE- X-Mailer: YahooMailWebService/0.8.128.478 Message-ID: <1355453967.41645.YahooMailNeo@web125905.mail.ne1.yahoo.com> Date: Thu, 13 Dec 2012 18:59:27 -0800 (PST) From: Greg Williamson Reply-To: Greg Williamson Subject: allow a user to see current_query in pg_stat_activity in 8.4 To: "pgsql-admin@postgresql.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-2119685684-1015730251-1355453967=:41645" X-Pg-Spam-Score: 1.3 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org ---2119685684-1015730251-1355453967=:41645 Content-Type: text/plain; charset=us-ascii This seems like a question whose answer must be right in front of me, but I am not seeing it. We want to create a role used by a monitor to check for " in Transaction" with the most restrictive permissions we can on a 8.4.13 instance. The user has been granted connect privilege to the database and some limited permissions to user tabhles that need to be monitored. But pg_stat_activity shows only "" I've trolled the archives and postgres docs with no success. Could some kind soul point me in the right direction ? Thanks! Greg Williamson ---2119685684-1015730251-1355453967=:41645 Content-Type: text/html; charset=us-ascii
This seems like a question whose answer must be right in front of me, but I am not seeing it.

We want to create a role used by a monitor to check for "<IDLE> in Transaction" with the most restrictive permissions we can on a 8.4.13 instance.

The user has been granted connect privilege to the database and some limited permissions to user tabhles that need to be monitored. But pg_stat_activity shows only "<insufficient privilege>"

I've trolled the archives and postgres docs with no success.

Could some kind soul point me in the right direction ?

Thanks!

Greg Williamson


---2119685684-1015730251-1355453967=:41645--