pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: greg1457 <greg1457@protonmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: vaccumdb fails saying function unaccent(text) doesn't exist
Date: Fri, 16 Apr 2021 13:11:07 -0400
Message-ID: <4164752.1618593067@sss.pgh.pa.us> (raw)
In-Reply-To: <lfLYLEnTw-pZ9mT4HAjhL7HTT7Dae0YChxK7xZu8vT-TNr--LYSC9xjiuhaCIt2cp4CYyve6OIj0dDkqFYzyTM3fQ3M3S3u2IPxGNjPCrQY=@protonmail.com>
References: <lfLYLEnTw-pZ9mT4HAjhL7HTT7Dae0YChxK7xZu8vT-TNr--LYSC9xjiuhaCIt2cp4CYyve6OIj0dDkqFYzyTM3fQ3M3S3u2IPxGNjPCrQY=@protonmail.com>

greg1457 <greg1457@protonmail.com> writes:
> I migrated an postgresql instance from 9.5.4 to 9.5.21.
> Unaccent extension is installed in the database, in "application" schema.

> Since this migration, when i do a vaccumdb, i obtain an error :

> vacuumdb: vacuuming of database "application" failed: ERROR: function unaccent(text) does not exist
> LINE 2: SELECT lower(unaccent($1));

This is probably a search_path problem.  You've got an index expression
somewhere with a SQL function that is not being careful about which
schema(s) to look for "unaccent()" in.  There were security fixes to
restrict the search path that VACUUM/ANALYZE runs with, which breaks
functions that aren't careful about that.

			regards, tom lane





view thread (2+ messages)

Message-ID: <4164752.1618593067@sss.pgh.pa.us>
Permalink:  ../4164752.1618593067@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4164752.1618593067@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, greg1457@protonmail.com
  Subject: Re: vaccumdb fails saying function unaccent(text) doesn't exist
  In-Reply-To: <4164752.1618593067@sss.pgh.pa.us>
  References: <lfLYLEnTw-pZ9mT4HAjhL7HTT7Dae0YChxK7xZu8vT-TNr--LYSC9xjiuhaCIt2cp4CYyve6OIj0dDkqFYzyTM3fQ3M3S3u2IPxGNjPCrQY=@protonmail.com> <4164752.1618593067@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox