I am trying to do accent-insensitive text matching, but PostGreSQL's unaccent function doesn’t appear to be available

SELECT unaccent('Hôtel');

function unaccent(unknown) does not exist

Is this function supported somehow in CartoDB? If not, is there an alternative?


If you were running your own version of PostgreSQL, you'd need to build the extension, then CREATE it. Typically you'd go to your source and do something like

cd /usr/local/src/postgresql-9.3.4/contrib/unaccent make make install

and then in a psql session, you'd run


before you could use it. It doesn't seem as if CartoDB gives you access or permissions to do such a thing.

  • Thanks Eric! Agree about CartoDB permissions. Bummer ... – Robin Kraft Jul 10 '14 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.