debversion
Debian version number data type
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
debversion | 1.2.0 | TYPE | PostgreSQL | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3820 | debversion | No | Yes | No | Yes | No | Yes | - |
| Related | semver pg_text_semver |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PGDG | 1.2.0 | 1817161514 | debversion | - |
| DEB | PGDG | 1.2.0 | 1817161514 | postgresql-$v-debversion | - |
Install
You can install debversion directly. First, make sure the PGDG repository is added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
apt
Create Extension:
Usage
The debversion extension provides Debian package version comparison functionality, implementing the same sorting logic used by dpkg.
Data Type
The debversion type stores Debian package version strings and compares them according to the Debian versioning specification (epoch:upstream-revision format).
Version Comparison
Operators
Standard comparison operators are supported: =, <>, <, >, <=, >=.
The comparison algorithm mirrors dpkg --compare-versions, ensuring results identical to standard Debian package management utilities.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)