Re: How to add function schema in search_path in option definitio

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: How to add function schema in search_path in option definitio
Дата
Msg-id 9f3db764-804e-7154-3f8c-f5f19628178e@aklaver.com
обсуждение исходный текст
Ответ на How to add function schema in search_path in option definitio  (Lorusso Domenico <domenico.l76@gmail.com>)
Ответы Re: How to add function schema in search_path in option definitio
Список pgsql-general
On 7/8/23 08:06, Lorusso Domenico wrote:
> Hello guys,
> there is a comfortable way to add the schema of the function as in 
> search path?
> 
> something like
> create my_schema.function() as $body$...$body$
> set search_path to function_schema() || search_path

You can do something like:


show  search_path ;
    search_path
-----------------
  public, history


select set_config('search_path', 'test, ' || 
current_setting('search_path'), 'f');
       set_config
-----------------------
  test, public, history

show  search_path ;
       search_path
-----------------------
  test, public, history

> 
> -- 
> Domenico L.
> 
> per stupire mezz'ora basta un libro di storia,
> io cercai di imparare la Treccani a memoria... [F.d.A.]

-- 
Adrian Klaver
adrian.klaver@aklaver.com




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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: How to add function schema in search_path in option definitio
Следующее
От: Lorusso Domenico
Дата:
Сообщение: Re: How to add function schema in search_path in option definitio