Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8DCD01337B80 for ; Fri, 21 Jan 2011 18:03:50 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 17739-10 for ; Fri, 21 Jan 2011 22:03:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 0780D1337B6C for ; Fri, 21 Jan 2011 18:03:42 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p0LM3fpX000538; Fri, 21 Jan 2011 17:03:41 -0500 (EST) To: "Kevin Grittner" cc: pgsql-admin@postgresql.org, "Dennis Hoffman" Subject: Re: postgresql question In-reply-to: <4D39A8A902000025000399F5@gw.wicourts.gov> References: <4D39A8A902000025000399F5@gw.wicourts.gov> Comments: In-reply-to "Kevin Grittner" message dated "Fri, 21 Jan 2011 15:39:21 -0600" Date: Fri, 21 Jan 2011 17:03:41 -0500 Message-ID: <537.1295647421@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/140 X-Sequence-Number: 36580 "Kevin Grittner" writes: > Dennis Hoffman wrote: >> What can I do? > I'd be tempted to write a script which was owned by root which > calculated the size as desired, and grant sudo rights to merlin to > execute that particular script as the user with rights. Seems like a postgres-owned script would be safer. But actually I'd suggest using contrib/dbsize rather than doing any of this. Those functions got integrated into the core eventually, but in 7.4 they're in contrib. (Ob-comment-you-do-realize-how-obsolete-7.4-is-dont-you) regards, tom lane