Generating GRANT/REVOKE on functions from catalog

Поиск
Список
Период
Сортировка
От Doug Gorley
Тема Generating GRANT/REVOKE on functions from catalog
Дата
Msg-id 4A78A9C2.90109@gmail.com
обсуждение исходный текст
Ответы Re: Generating GRANT/REVOKE on functions from catalog
Список pgsql-general
I am attempting to script the generation of grant/revoke statements for
a database, and I'm having some trouble when it comes to functions.

consider the following function:

create function add(a integer, b integer)
returns integer
as $$
select $1 + $2;
$$ language SQL;

The statement I need to generate is:

revoke all on function public.add(integer, integer) from someuser;

I'm attempting to use the pg_proc table in the system catalogs, and I'm
good up to the point where I need the parameter types.  Can anyone give
me a hand with this?

Thanks,

--
------------------------------------------------------------------------
*Doug Gorley* | doug.gorley@gmail.com <mailto:doug.gorley@gmail.com>



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

Предыдущее
От: Eric Schwarzenbach
Дата:
Сообщение: Re: Does derby have an embedded Mode like Derby ?
Следующее
От: Gert
Дата:
Сообщение: Re: Error when assigning default value for function parameter