Re: vacuumdb -Z can't find function declared on functional index with inline sql function

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: vacuumdb -Z can't find function declared on functional index with inline sql function
Дата
Msg-id 20201119184837.GA11918@alvherre.pgsql
обсуждение исходный текст
Ответ на vacuumdb -Z can't find function declared on functional index with inline sql function  (Jaime Soler <jaime.soler@gmail.com>)
Ответы Re: vacuumdb -Z can't find function declared on functional index with inline sql function  (Jaime Soler <jaime.soler@gmail.com>)
Список pgsql-bugs
On 2020-Nov-19, Jaime Soler wrote:


> CREATE OR REPLACE FUNCTION public.tecnologia_index_func(nombre character
> varying, tipotec bigint)
>      RETURNS text
>      LANGUAGE sql
>      IMMUTABLE
>     AS $function$
>     select tipotec || '_' || upper(sinacentos(trim(nombre)));
>     $function$

This should be fixable by either schema-qualifying function
'sinacentos', or adding a SET search_path clause to the function.

 CREATE OR REPLACE FUNCTION public.tecnologia_index_func(nombre character
 varying, tipotec bigint)
      RETURNS text
      LANGUAGE sql
      IMMUTABLE
     AS $function$
     select tipotec || '_' || upper(public.sinacentos(trim(nombre)));
     $function$;




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

Предыдущее
От: Jaime Soler
Дата:
Сообщение: Re: vacuumdb -Z can't find function declared on functional index with inline sql function
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16730: Create table like with inheritance and self referencing index