Re: vaccumdb fails saying function unaccent(text) doesn't exist - Mailing list pgsql-general

From Tom Lane
Subject Re: vaccumdb fails saying function unaccent(text) doesn't exist
Date
Msg-id 4164752.1618593067@sss.pgh.pa.us
Whole thread Raw
In response to vaccumdb fails saying function unaccent(text) doesn't exist  (greg1457 <greg1457@protonmail.com>)
List pgsql-general
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



pgsql-general by date:

Previous
From: greg1457
Date:
Subject: vaccumdb fails saying function unaccent(text) doesn't exist
Next
From: Moris Rumenov Vrachovski
Date:
Subject: Re: Vulnerability PostgreSQL 11.2