Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjM2q-0001NP-Pq for pgsql-admin@arkaria.postgresql.org; Fri, 14 Dec 2012 03:34:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TjM2p-0006gb-M2 for pgsql-admin@arkaria.postgresql.org; Fri, 14 Dec 2012 03:34:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjM2p-0006gW-0F for pgsql-admin@postgresql.org; Fri, 14 Dec 2012 03:34:39 +0000 Received: from nm36-vm1.bullet.mail.ne1.yahoo.com ([98.138.229.113]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TjM2m-00049V-FJ for pgsql-admin@postgresql.org; Fri, 14 Dec 2012 03:34:38 +0000 Received: from [98.138.226.180] by nm36.bullet.mail.ne1.yahoo.com with NNFMP; 14 Dec 2012 03:34:34 -0000 Received: from [98.138.89.164] by tm15.bullet.mail.ne1.yahoo.com with NNFMP; 14 Dec 2012 03:34:34 -0000 Received: from [127.0.0.1] by omp1020.mail.ne1.yahoo.com with NNFMP; 14 Dec 2012 03:34:34 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 949329.30539.bm@omp1020.mail.ne1.yahoo.com Received: (qmail 37285 invoked by uid 60001); 14 Dec 2012 03:34:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1355456074; bh=cm9xg/4WzQdXuSTIGriv5W2SmSkYAieAxeRIrFvIrb0=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=r9BZRBJt+OvPN74edurxYJFB/zh5pvmzuijMOI8oV43C/z9+WTjUfddN/J5HMgbbw9v8UlhhJst8okM62M8BmMNtSbdY8kAZCDekrmIFYN0ukq/JISbMlxksaCrgfAUTv6hyKQ0D2gIIDGQ6RcO7trVF2YBNDbTJqMR7Mm8AOaQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=HdRHvVhusG0Wps9uLw5knvH4aMamMAZW2NdeYCxF011/azFFSUjKFIXbYdYKtSqZ5mcujS/zo6e30LPwi/Sxp+fppPbiANeQTZzIVwZJ7tbVtsVbKLTdWdqJmijnSlBEiNTlIq/Y4mdfHrduXWYsgmfGn/iFM9S0odgET4FvtxU=; X-YMail-OSG: vhkLfhgVM1mrJAQDhesm.nPiuzi1NdMzMnSWA71S4f.C8Gt 45NhnBxjjNOThwVTh_PW4oYBQXvi3xvAAJ9MWUln7x5rpRaHZseHMVMxlxfj smJDpa7JGp94bOgs_ohPn0i5zFX.XcY78bv3SfSnwZar.XNvh1RHwc6QkBwI CJVwW6nU_o0J8aM8wLKmfIowGh1ay40dtajQjDbbA_4Kms1vVKu2nE2JOqYB MAb10t1LkMWGn5EIenekyQaWpxtk1do11SH2ewTWYkxegZ_6p3dPrnyAAxma NnNa72asUdvCLRHRdH61CZRLND0HaFULKzeKvwTkG9QKlCwpw6a1.06vvckp sf48ukjppBZmjCxIItW7AbwjBdrRet1rAEODJhmdzSRWrxNDetFUWfUbQCWw d852xuXrbJkut9vD7VAA3VEyqvrYB_7aAMHsf.q_wSV40PoWRo1Q3Z3r7DbG TTyGx85aYmq4qKdQ3DaeOBCL6_Hax1T2E5lSTxWnLLblh3KBTpgdzF62BUmU - Received: from [98.210.146.78] by web125901.mail.ne1.yahoo.com via HTTP; Thu, 13 Dec 2012 19:34:34 PST X-Rocket-MIMEInfo: 001.001, VG9tIC0tCgoKPkdyZWcgV2lsbGlhbXNvbiA8Z3dpbGxpYW1zb24zOUB5YWhvby5jb20.IHdyaXRlczoKPj4gV2Ugd2FudCB0byBjcmVhdGUgYSByb2xlIHVzZWQgYnkgYSBtb25pdG9yIHRvIGNoZWNrIGZvciAiPElETEU.IGluIFRyYW5zYWN0aW9uIiB3aXRoIHRoZSBtb3N0IHJlc3RyaWN0aXZlIHBlcm1pc3Npb25zIHdlIGNhbiBvbiBhIDguNC4xMyBpbnN0YW5jZS4KPgo.PiBUaGUgdXNlciBoYXMgYmVlbiBncmFudGVkIGNvbm5lY3QgcHJpdmlsZWdlIHRvIHRoZSBkYXRhYmFzZSBhbmQgc29tZSBsaW1pdGUBMAEBAQE- X-Mailer: YahooMailWebService/0.8.128.478 References: <1355453967.41645.YahooMailNeo@web125905.mail.ne1.yahoo.com> <18307.1355454996@sss.pgh.pa.us> Message-ID: <1355456074.36965.YahooMailNeo@web125901.mail.ne1.yahoo.com> Date: Thu, 13 Dec 2012 19:34:34 -0800 (PST) From: Greg Williamson Reply-To: Greg Williamson Subject: Re: allow a user to see current_query in pg_stat_activity in 8.4 Cc: "pgsql-admin@postgresql.org" In-Reply-To: <18307.1355454996@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: 2.2 (++) 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 Tom -- >Greg Williamson writes: >> We want to create a role used by a monitor to check for " in Trans= action" 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 lim= ited permissions to user tabhles that need to be monitored. But pg_stat_act= ivity shows only "" > >Yup.=A0 You can only see the query of another session if (1) you are a >superuser, or (2) you are the same user the other session is logged in >as.=A0 Table permissions have nothing to do with this. Thanks for the swi8ft answer even if wasn't the one I was hoping for. ;-} Another solution suggests itself then ... thanks! Greg --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin