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

From Alvaro Herrera
Subject Re: vacuumdb -Z can't find function declared on functional index with inline sql function
Date
Msg-id 20201119184837.GA11918@alvherre.pgsql
Whole thread Raw
In response to vacuumdb -Z can't find function declared on functional index with inline sql function  (Jaime Soler <jaime.soler@gmail.com>)
Responses Re: vacuumdb -Z can't find function declared on functional index with inline sql function
List 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 by date:

Previous
From: Jaime Soler
Date:
Subject: Re: vacuumdb -Z can't find function declared on functional index with inline sql function
Next
From: Tom Lane
Date:
Subject: Re: BUG #16730: Create table like with inheritance and self referencing index