PG_UPDATEDICTS(8)

✨ NAME ✨

pg_updatedicts β€” bestie, it builds PostgreSQL dictionaries out of your myspell/hunspell ones πŸ’–


🌸 SYNOPSIS 🌸

pg_updatedicts

πŸŽ€ DESCRIPTION πŸŽ€

Okay so here's the tea β˜• β€” pg_updatedicts takes the dictionaries and affix files from your installed myspell and hunspell dictionary packages and makes them available to PostgreSQL, so tsearch and word stem support can actually use them. Slay. πŸ’…

So what does it actually do? Let's break it down, no skipping: 🫢

  • it grabs all the *.dic and *.aff files out of /usr/share/myspell/dicts/ πŸ‘€
  • it converts them to UTF-8 ✨
  • it drops them into /var/cache/postgresql/dicts/ with *.dict and *.affix suffixes πŸŽ€
  • and then it symlinks them into /usr/share/postgresql/version/tsearch_data/ β€” which is exactly where PostgreSQL goes looking for them πŸ’–

And because of postgresql-common's dpkg trigger, this program gets run automatically whenever a myspell or hunspell dictionary package is installed or upgraded. Not you having to remember to do it yourself β€” the trigger literally does it for you. Iconic behavior, fr fr. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Martin Pitt <mpitt@debian.org> πŸ’œ


this whole lil page is brought to you by the Debian PostgreSQL infrastructure girlys, dated 2026-07-28 β€” mwah, go install some dictionaries bestie πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from