Re: Questions regarding SET option.

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Questions regarding SET option.
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C20393818C@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Questions regarding SET option.  (Jignesh Shah <jignesh.shah1980@gmail.com>)
Ответы Re: Questions regarding SET option.  (Jignesh Shah <jignesh.shah1980@gmail.com>)
Список pgsql-general
Jignesh Shah wrote:
> I have been writing a function with SECURITY DEFINER enabled.
> Basically, I am looking for ways to override the users SET
> option settings while executing my function to prevent the
> permissions breach. For example, to override "SET
> search_path", I am setting search path in my function before
> executing anything. Could any one please tell me what could
> be other SET options that I should take care?
>
> Moreover, how to revert back those settings just before
> returning from my function?

You can use the SET clause of CREATE FUNCTION which does exactly
what you want.

Yours,
Laurenz Albe

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

Предыдущее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: ECPG: No multidimensional array support for simple data types
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: What is unsecure postgres languages? How to disable them?