Re: TODO item: set proper permissions on non-system schemas - Mailing list pgsql-hackers

From Andrew - Supernews
Subject Re: TODO item: set proper permissions on non-system schemas
Date
Msg-id slrndhd08t.1vfu.andrew+nonews@trinity.supernews.net
Whole thread Raw
In response to TODO item: set proper permissions on non-system schemas  (Jaime Casanova <systemguards@gmail.com>)
Responses Re: TODO item: set proper permissions on non-system schemas
List pgsql-hackers
On 2005-09-01, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Jaime Casanova <systemguards@gmail.com> writes:
>> I see this TODO item:
>> * %Set proper permissions on non-system schemas during db creation
>> I think a quetion here is wich are non-system schemas?
>
> There's considerable feeling that that TODO item is bogus anyway.
> It was pushed in by people who think that the current behavior is
> wrong, but they haven't justified a change IMHO.  I think the first
> part of working on this is to propose a behavior that everyone will
> accept --- which schemas to touch is part of that.

The issue that I've seen is that currently, allowing non-superusers to
create databases in a useful manner requires all sorts of hoop-jumping
to allow the database owner to end up owning the "public" schema. The
simplest solution at present is to remove public from template1 and have
the new db owner create it themselves, which of course interferes with
the (pre 8.1) defaults for createlang etc. (Since the new db owner can't,
for example, install plpgsql themselves, it has to be installed in
template1 in some schema _other_ than public.)

(Another wart that could do with looking into is that such a non-superuser
database owner can't prevent xid wrap in his database regardless of how
often he vacuums it.)

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Minimally avoiding Transaction Wraparound in VLDBs
Next
From: Josh Berkus
Date:
Subject: Re: Minimally avoiding Transaction Wraparound in VLDBs