Re: GRANT ON ALL IN schema

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: GRANT ON ALL IN schema
Дата
Msg-id 4A7BD066.3040109@archonet.com
обсуждение исходный текст
Ответ на Re: GRANT ON ALL IN schema  (decibel <decibel@decibel.org>)
Список pgsql-hackers
decibel wrote:
> In this specific case, I think there's enough demand to warrant a 
> built-in mechanism for granting, but if something like exec() is 
> built-in then the bar isn't as high for what the built-in GRANT 
> mechanism needs to handle.
> 
> CREATE OR REPLACE FUNCTION tools.exec(
>     sql text
>     , echo boolean
> ) RETURNS text LANGUAGE plpgsql AS $exec$

Perhaps another two functions too:

list_all(objtype, schema_pattern, name_pattern)
exec_for(objtype, schema_pattern, name_pattern, sql_with_markers)

Obviously the third is a simple wrapper around the first two.

--   Richard Huxton  Archonet Ltd


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: pg_ctl stop -m fast after -m smart
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: mixed, named notation support