Re: vaccumdb fails saying function unaccent(text) doesn't exist

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: vaccumdb fails saying function unaccent(text) doesn't exist
Дата
Msg-id 4164752.1618593067@sss.pgh.pa.us
обсуждение исходный текст
Ответ на vaccumdb fails saying function unaccent(text) doesn't exist  (greg1457 <greg1457@protonmail.com>)
Список 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 по дате отправления:

Предыдущее
От: greg1457
Дата:
Сообщение: vaccumdb fails saying function unaccent(text) doesn't exist
Следующее
От: Moris Rumenov Vrachovski
Дата:
Сообщение: Re: Vulnerability PostgreSQL 11.2