condaversion
data_experiments · Conda package version number data type implemented as a C++ PostgreSQL extension.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100891 | condaversion | data_experiments | 1.0 | TYPE | MIT | C++ |
Usage
Sources:
condaversion version 1.0 adds a Conda-aware scalar type implemented in C++ with libmamba version parsing. It is useful for sorting and indexing Conda package versions whose precedence differs from lexical text order.
Core Workflow
The extension defines input/output and binary send/receive functions, comparison operators =, !=, <, >, <=, and >=, implicit or assignment casts involving text types, and default B-tree and hash operator classes. The upstream tests explicitly demonstrate that 1.0 and 1.0.0 compare as equal rather than as different strings.
Operational Notes
The control file is relocatable and declares no preload dependency. Building the module requires the upstream C++/libmamba environment; the SQL extension alone is not sufficient without its matching shared library. Validate dump/restore, index behavior, and ABI compatibility on the target PostgreSQL and libmamba versions before production use.