pg_text_semver
Semantic version domain and comparison operators for PostgreSQL
Repository
bigsmoke/pg_text_semver
https://github.com/bigsmoke/pg_text_semver
Source
pg_text_semver-1.2.1.tar.gz
pg_text_semver-1.2.1.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_text_semver | 1.2.1 | TYPE | PostgreSQL | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3520 | pg_text_semver | No | No | No | Yes | No | Yes | - |
| Related | semver debversion |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.2.1 | 1817161514 | pg_text_semver | - |
| RPM | PIGSTY | 1.2.1 | 1817161514 | pg_text_semver_$v | - |
| DEB | PIGSTY | 1.2.1 | 1817161514 | postgresql-$v-pg-text-semver | - |
Build
You can build the RPM / DEB packages for pg_text_semver using pig build:
Install
You can install pg_text_semver directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
Source: README, META.json, Tag v1.2.1
pg_text_semver implements Semantic Versioning 2.0.0 on top of PostgreSQL text using a semver domain rather than a custom C type.
Core types and functions
semver: domain overtextwith SemVer validation.semver_parsed: parsed composite type that supports sorting and indexing.semver_prerelease: domain for prerelease identifiers.semver_cmp(...): comparison function forsemverandsemver_parsed.semver_regexp(include_captures boolean): exposes the validation regex.
Extra helpers
The current README also documents PGXN-version-range helpers:
meta_pgxn_version_range(text)meta_pgxn_version_range_cmp(text, text)nonsemver_cmp(text, text, text)
Caveats
- This extension favors a spec-oriented, text-backed implementation over the lower-level C-based alternatives.
- The upstream README remains the authoritative user-facing reference; the current stub already matched that surface closely, so this refresh mainly aligns it with the documented 1.2.1 helper set.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)