feat(postgres): add pg_textsearch dialect and modular extension probing - #782
Merged
Merged
Conversation
cofin
force-pushed
the
flow/postgres-extensions-bm25
branch
from
September 13, 2026 18:29
28e590c to
923e882
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #782 +/- ##
==========================================
+ Coverage 76.96% 78.15% +1.19%
==========================================
Files 487 488 +1
Lines 71929 72003 +74
Branches 10075 10084 +9
==========================================
+ Hits 55361 56277 +916
+ Misses 13149 12271 -878
- Partials 3419 3455 +36
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces native support for AlloyDB and AlloyDB Omni's BM25 full-text search (
pg_textsearchextension), decouples PostgreSQL extension dialects, and modularizes runtime extension probing:PGTextSearch(Postgres)dialect registering custom<@>operator tokenization without colliding with PostgreSQL containment operators or requiringsqlglotupstream changes.ParadeDBandPGVectordialects so both inherit independently fromPostgres, resolving dialect hierarchy conflicts.pg_textsearchinpyproject.tomland dialect mapping insqlspec/core/splitter.py.active_extensions: set[str]tracking indriver_features.is_postgres_extension_active()and standardizesbuild_postgres_extension_probe_names().enable_pg_textsearch: bool = Trueacross all PostgreSQL adapters (asyncpg,psycopg,adbc,psqlpy)._pg_textsearch.pyin mypyc exclusions and inventory boundary maps.docs/reference/dialects.rst, adapter docs) and changelog (docs/changelog.rst).Verification
make lint(passed: Prek, Ruff, Codespell, slotscheck, Actions audit)make type-check(passed: Mypy, Pyright 0 errors)make docs(passed: build succeeded)