Re: information schema/aclexplode doesn't know about default privileges

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: information schema/aclexplode doesn't know about default privileges
Дата
Msg-id
1326133439.12723.3.camel@vanquo.pezone.net
Ответ на
Список
Дерево обсуждения
information schema/aclexplode doesn't know about default privileges Peter Eisentraut <peter_e@gmx.net>
Re: information schema/aclexplode doesn't know about default privileges Tom Lane <tgl@sss.pgh.pa.us>
Re: information schema/aclexplode doesn't know about default privileges Peter Eisentraut <peter_e@gmx.net>
Re: information schema/aclexplode doesn't know about default privileges Peter Eisentraut <peter_e@gmx.net>
Re: information schema/aclexplode doesn't know about default privileges Abhijit Menon-Sen <ams@toroid.org>
Re: information schema/aclexplode doesn't know about default privileges Lionel Elie Mamane <lionel@mamane.lu>
Re: information schema/aclexplode doesn't know about default privileges Jim Nasby <jim@nasby.net>
On mån, 2012-01-02 at 06:43 +0200, Peter Eisentraut wrote:
> I figured the best and most flexible way to address this is to export
> acldefault() as an SQL function and replace
> 
>     aclexplode(proacl)
> 
> with
> 
>     aclexplode(coalesce(proacl, acldefault('f', proowner)))
> 
> where 'f' here is something that is mapped to ACL_OBJECT_FUNCTION
> internally.  AFAICT, there is no existing way to map an SQL-accessible
> quantity to the ACL_OBJECT_* symbols, so I'll just have to make
> something up.

Nobody had a better idea, so here is the final patch.  I adjusted the
regression tests a bit to avoid bloat from the now-visible owner
privileges.
В списке pgsql-hackers по дате отправления
От: Kevin Grittner
Дата:
Сообщение: pgindent README correction
От: Robert Haas
Дата:
Сообщение: Re: pgindent README correction
FAQ