Re: Problem with recent permission changes commits - Mailing list pgsql-hackers

From Decibel!
Subject Re: Problem with recent permission changes commits
Date
Msg-id 20070827184628.GG54309@nasby.net
Whole thread Raw
In response to Problem with recent permission changes commits  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: Problem with recent permission changes commits  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-hackers
On Mon, Aug 27, 2007 at 08:08:34AM -0700, Joshua D. Drake wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I just saw this in the weekly news:
>
> Restrict pg_relation_size to relation owner, pg_database_size to DB
> owner, and pg_tablespace_size to superusers.  Perhaps we could
> weaken the first case to just require SELECT privilege, but that
> doesn't work for the other cases, so use ownership as the common
> concept.
>
> This is a problem. Our analytics software purposefully does not use a
> super user, you are going to force the use of superusers with admin and
> monitoring tools.
Well, you could always create a wrapper function that is SECURITY
DEFINER...

Honestly, I have to wonder if it'd be best to just restrict all those
functions to superuser-only. They tend to be rather slow to run since
they have to stat each file, so I'm worried about what kind of load that
would present on a loaded system.
--
Decibel!, aka Jim Nasby                        decibel@decibel.org
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: MSVC build system
Next
From: David Boreham
Date:
Subject: Re: MSVC build system