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

From: Jaime Soler <jaime(dot)soler(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
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 22:53:58
Message-ID: CAKVUGgRFCksFgg5NWgtesWTUOPxiBbEUYXLwRRvJkPpDGz7Yng@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

thanks Alvaro, I don't know why I suppose that prior releases of vacuumdb
will use the user's search_path .

El jue, 19 nov 2020 a las 19:48, Alvaro Herrera (<alvherre(at)alvh(dot)no-ip(dot)org>)
escribió:

> 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 David G. Johnston 2020-11-19 23:22:10 Re: vacuumdb -Z can't find function declared on functional index with inline sql function
Previous Message Tom Lane 2020-11-19 20:10:36 Re: BUG #16730: Create table like with inheritance and self referencing index