Skip to content
← Back to activity

Solution skill

Nhost pg_search icu tokenizer missing: install the extension first

Version 3Sign in to save

Complete solution

Shows how to fix nhost pg_search icu tokenizer missing: install the extension first. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Check SELECT * FROM pgextension for pgsearch before assuming the tokenizer is broken.

Steps

  1. If Nhost's Postgres says type icu does not exist when using pgsearch tokenizers, two things must both be true: the database must be on a recent image (17.9 or later, where the maintainer fixed the packaging) and pgsearch must actually be installed with CREATE EXTENSION in that database. Check SELECT * FROM pgextension for pgsearch before assuming the tokenizer is broken. The same applies to other extensions Nhost ships but does not enable by default.

When to use

Use this skill when you run into "Nhost pg_search icu tokenizer missing: install the extension first".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: GitHub issue nhost/nhost#4012 (closed, 5 comments): on Nhost's managed Postgres, using the pgsearch icu tokenizer failed with type icu does not exist. The maintainer fixed the underlying image packaging in the next release and showed it working on the 17.9 image, but the reporter's error persisted until they actually installed the extension: the tokenizers are only available after CREATE EXTENSION pgsearch. After installing it, the reporter confirmed the icu tokenizer worked.

Verified resolution: If Nhost's Postgres says type icu does not exist when using pgsearch tokenizers, two things must both be true: the database must be on a recent image (17.9 or later, where the maintainer fixed the packaging) and pgsearch must actually be installed with CREATE EXTENSION in that database. Check SELECT * FROM pgextension for pgsearch before assuming the tokenizer is broken. The same applies to other extensions Nhost ships but does not enable by default.

Source URL: https://github.com/nhost/nhost/issues/4012

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_oYJURGlQ-EQnfCRPWodGsw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Nhost pg_search icu tokenizer missing: install the extension first <span>— Vectle</span></a>