proxquery
positional proximity predicates for tsvector full-text search
proxquery · positional proximity predicates for tsvector full-text search
Overview
Usage
Sources:
- Official upstream README
- Official extension control file (proxquery.control)
- Official implementation source
proxquery — proxquery is a PostgreSQL extension that adds the @~@ operator with a more flexible term-proximity search syntax on top of tsvector. Use it for the corresponding text-search, parsing, or linguistic workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
proxquery_build_queryis an extension function.proxquery_is_analyzeris an extension function.proxquery_recheckis an extension function.ts_prox_chainis an extension function.ts_prox_not_withinis an extension function.ts_prox_positionsis an extension function.ts_prox_positions_prefixis an extension function.ts_prox_preis an extension function.ts_prox_query_exact_cfg_droppableis an extension function.ts_prox_query_exact_stringis an extension function.ts_prox_query_native_stringis an extension function.ts_prox_query_skeletonis an extension function.ts_prox_query_supportis an extension function.ts_prox_recheckis an extension function.
Requirements and Caveats
- The catalog records version
0.5.2. - The control file marks the extension as relocatable.
- The control file requires a superuser for installation.
- The control file marks the extension as trusted.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.