pg_textsearch 1.6.0
Smarter filtered search, more consistent rankings, and full support for PostgreSQL 19.
Highlights
- PostgreSQL 19 final support. PostgreSQL 19 joins 17 and 18 as a fully supported version, including Windows and amd64/arm64 release builds.
- Less work per ranked query. Eligible Boolean filters now run inside ranked BM25 index scans. Selective searches can jump directly to matching postings instead of scoring documents that cannot qualify.
- More consistent rankings. Corrected scoring for unspilled data, very long documents, repeated query terms, and partitioned tables keeps top-k selection aligned with returned scores.
- Better PostgreSQL integration. Improved explicit-index selection in prepared queries, self-joins, and partitioned tables, plus compatibility fixes for TimescaleDB continuous aggregates.
Reliability and security
- Fix missing search results from parallel index builds on HOT-updated tables and incorrect results after interrupted VACUUM operations.
- Fix shared-memory cache allocation hangs and compressed-index read errors, with additional hardening around NULL queries, row-level security, and SQL object lookup.
Upgrading
After installing the new library and restarting PostgreSQL, run in each database:
ALTER EXTENSION pg_textsearch UPDATE TO '1.6.0';There is no index-format change from 1.5.1. However, indexes affected by the earlier parallel-build/HOT or interrupted-VACUUM bugs require REINDEX; upgrading alone does not repair existing damage. See the upgrade guide.
New Contributors
- @jgpruitt made their first contribution in #562
- @RaphaelFakhri made their first contribution in #575
- @devrimgunduz made their first contribution in #548
- @me1t0ut made their first contribution in #570
- @Murlors made their first contribution in #585
- @kchowhan made their first contribution in #590
- @dalexhu made their first contribution in #592
- @MatthiasF999 made their first contribution in #572
- @walsykerem made their first contribution in #620
Full Changelog: v1.5.0...v1.6.0