Re: Per-function search_path => per-function GUC settings

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: Per-function search_path => per-function GUC settings
Дата
Msg-id 0FDD47E1-D9F7-4479-B829-32947EBC7DB4@pgedit.com
обсуждение исходный текст
Ответ на Re: Per-function search_path => per-function GUC settings  ("Brendan Jurd" <direvus@gmail.com>)
Список pgsql-hackers
On Sep 1, 2007, at 1:36 PM, Brendan Jurd wrote:

> So if we integrated the GUC settings into CREATE FUNCTION, we'd end up
> writing something like
>
> CREATE FUNCTION foo(int) RETURNS int AS $$
> ...
> $$
>  LANGUAGE plpgsql
>  STABLE
>  STRICT
>  SECURITY DEFINER
>  RESET search_path
>  SET regex_flavor = 'cinnamon';
>
> That doesn't seem especially horrible.  In what way do you feel it is
> inconsistent with existing syntax?


I like this and would really like to see way to set everything using  
CREATE FUNCTION. Using ALTER only requires maintaining a separate  
copy of of function arguments which can be a hassle for large  
argument lists.




John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL



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

Предыдущее
От: "Florian G. Pflug"
Дата:
Сообщение: Re: [PATCH] Lazy xid assingment V2
Следующее
От: "Florian G. Pflug"
Дата:
Сообщение: Re: [PATCH] Lazy xid assingment V2