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

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Jaime Soler <jaime(dot)soler(at)gmail(dot)com>
Cc: pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: vacuumdb -Z can't find function declared on functional index with inline sql function
Date: 2020-11-19 18:48:37
Message-ID: 20201119184837.GA11918@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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$;

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-11-19 20:10:36 Re: BUG #16730: Create table like with inheritance and self referencing index
Previous Message Jaime Soler 2020-11-19 17:54:55 Re: vacuumdb -Z can't find function declared on functional index with inline sql function