pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
vaccumdb fails saying function unaccent(text) doesn't exist 2+ messages / 2 participants [nested] [flat]
* vaccumdb fails saying function unaccent(text) doesn't exist @ 2021-04-16 15:30 greg1457 <greg1457@protonmail.com> 0 siblings, 1 reply; 2+ messages in thread From: greg1457 @ 2021-04-16 15:30 UTC (permalink / raw) To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org> Hi everyone, 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)); ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. QUERY: SELECT lower(unaccent($1)); CONTEXT: SQL function "lower_unaccent" during inlining VACUUM (VERBOSE, ANALYZE); I removed and reinstalled the extension, but the error continue to appear. Following this post : https://www.postgresql.org/message-id/CAPs%2BM8LCex6d%3DDeneofdsoJVijaG59m9V0ggbb3pOH7hZO4%2BcQ%40ma... , i installed the extension in public schema, the message still appear. If i do a vacuum in sql command, i haven't the error. May you have an idea of the cause of this issue and how to resolve it? Thank you Greg Sent with [ProtonMail](https://protonmail.com) Secure Email. ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: vaccumdb fails saying function unaccent(text) doesn't exist @ 2021-04-16 17:11 Tom Lane <tgl@sss.pgh.pa.us> parent: greg1457 <greg1457@protonmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2021-04-16 17:11 UTC (permalink / raw) To: greg1457 <greg1457@protonmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org> 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-04-16 17:11 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-04-16 15:30 vaccumdb fails saying function unaccent(text) doesn't exist greg1457 <greg1457@protonmail.com> 2021-04-16 17:11 ` Tom Lane <tgl@sss.pgh.pa.us>
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