Re: Generating GRANT/REVOKE on functions from catalog

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Generating GRANT/REVOKE on functions from catalog
Дата
Msg-id 26570.1249496353@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Generating GRANT/REVOKE on functions from catalog  (Doug Gorley <doug.gorley@gmail.com>)
Список pgsql-general
Doug Gorley <doug.gorley@gmail.com> writes:
> Perfect, I'm using the following function:
> create or replace function fn_sig(p_oid oid) returns text
> as $$
> begin
> return p_oid::regprocedure;
> end;
> $$ language plpgsql;

> In the following query:

> select
>     pg_namespace.nspname ||
>     '.' ||
>     fn_sig(pg_proc.oid)
> from


I wouldn't do that if I were you: regprocedure will already
schema-qualify the function name if it's needed.  The additional
qualification you're trying to force will just result in syntax errors.

            regards, tom lane

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

Предыдущее
От: Doug Gorley
Дата:
Сообщение: Re: Generating GRANT/REVOKE on functions from catalog
Следующее
От: "Leif B. Kristensen"
Дата:
Сообщение: Re: Update Query doesn't affect all records