pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-admin@postgresql.org, "Dennis Hoffman" <dennis.hoffman@seagate.com>
Subject: Re: postgresql question
Date: Fri, 21 Jan 2011 17:03:41 -0500
Message-ID: <537.1295647421@sss.pgh.pa.us> (raw)
In-Reply-To: <4D39A8A902000025000399F5@gw.wicourts.gov>
References: <AANLkTik-dmymWTHK0O6_qMcVSkBeJBnX4RwtKALP04vk@mail.gmail.com>
	<4D39A8A902000025000399F5@gw.wicourts.gov>

"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Dennis Hoffman <dennis.hoffman@seagate.com> 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



view thread (6+ messages)  latest in thread

Message-ID: <537.1295647421@sss.pgh.pa.us>
Permalink:  ../537.1295647421@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/537.1295647421@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Kevin.Grittner@wicourts.gov, dennis.hoffman@seagate.com
  Subject: Re: postgresql question
  In-Reply-To: <537.1295647421@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox