conda_pgsql_rust_ext
data_experiments · Conda version data type and helpers for PostgreSQL, implemented with pgrx and rattler_conda_types.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100890 | conda_pgsql_rust_ext | data_experiments | 0.0.0 | TYPE | MIT | Rust |
PostgreSQL · 13, 14, 15, 16, 17
Usage
Sources:
conda_pgsql_rust_ext provides a condaversion type backed by rattler_conda_types. Use it when Conda package versions must be parsed, compared, indexed, or aggregated according to Conda version ordering instead of ordinary text ordering.
Core Workflow
Create the extension, store versions in a typed column, and use the normal comparison and aggregate syntax:
The type accepts Conda version strings, retains the original spelling for text output, and supplies equality, ordering, hashing, plus min(condaversion) and max(condaversion) aggregates. Invalid Conda syntax raises an input error.
Operational Notes
The reviewed upstream revision reports crate version 0.0.0. The control file marks the extension non-relocatable, untrusted, and superuser-only; it does not declare a preload requirement. Treat the early version number as an API-stability warning, and test comparison behavior with the exact version forms used by your package metadata before adopting it for constraints or unique indexes.