shared_ispell
shared_ispell · Shared-memory ispell dictionary template for reducing per-session initialization and memory.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100069 | shared_ispell | shared_ispell | 1.0.0 | FTS | BSD-2-Clause | C |
PostgreSQL · 10, 11, 12, 13, 14, 15, 16, 17, 18
Usage
Sources:
shared_ispell stores Ispell dictionaries in a fixed shared-memory segment so PostgreSQL sessions can reuse one loaded copy instead of parsing and storing a private copy per backend. It is useful for large Ispell dictionaries; Snowball dictionaries do not benefit from this extension.
Core Workflow
Choose a shared-memory budget, preload the module, and restart PostgreSQL before creating the extension.
Dictionary, affix, and stop-word files follow PostgreSQL text-search file placement rules. The first use loads a dictionary into the shared segment.
Management Objects
shared_ispell_mem_used()andshared_ispell_mem_available()report shared-memory consumption.shared_ispell_dicts()andshared_ispell_stoplists()list loaded dictionaries and stop lists.shared_ispell_reset()invalidates loaded data so sessions reload changed files.- The
shared_ispelltext-search template is the basis for custom dictionaries.
The shared-memory allocation cannot grow at runtime. Size it for every dictionary plus headroom; changing shared_ispell.max_size requires a restart. Upstream warns that affixes requiring full regular expressions are unsupported and fail during dictionary initialization. The project is unmaintained, so validate compatibility with the exact PostgreSQL build before production use.