Re: ACLs versus ALTER OWNER

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: ACLs versus ALTER OWNER
Дата
Msg-id 20040602151338.GA8754@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: ACLs versus ALTER OWNER  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
On Wed, Jun 02, 2004 at 10:54:36PM +0800, Christopher Kings-Lynne wrote:
> >Well, the spec doesn't have create permissions per se, but they do have
> >a "usage" right on domains, and they specify that revoking that results
> >in dropping objects:
> >
> >         7) For every abandoned domain descriptor DO, let S1.DN be the
> >            <domain name> of DO. The following <drop domain statement> is
> >            effectively executed without further Access Rule checking:
> >
> >              DROP DOMAIN S1.DN CASCADE
> 
> Hmmm.  Seems pretty harsh.  But barring us implementing that (I don't 
> see it happening for 7.5), just had an idea :)
> 
> How about pg_dumpall dumps all users as superusers, and then changes 
> them back to what they're supposed to be at the bottom of the script :)

Huh, how about a GUC var, say "creating_user", which would make objects
created by the superuser as created by whoever is mentioned there?  The
dump connects only as superuser and changes creating_user as needed.

Not a pretty idea, but weren't you looking for kludges? :-)

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"La persona que no quería pecar / estaba obligada a sentarse
en duras y empinadas sillas    / desprovistas, por cierto
de blandos atenuantes"                          (Patricio Vogel)



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Frank Wiles
Дата:
Сообщение: Re: Converting postgresql.conf parameters to kilobytes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Nested transactions and tuple header info