pg_text_semver

pg_text_semver

pg_text_semver : Semantic version domain and comparison operators for PostgreSQL

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
3520
pg_text_semver
pg_text_semver
1.2.1
TYPE
PostgreSQL
SQL
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
----d-r
No
No
No
Yes
yes
no

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXT
PIGSTY
1.2.1
18
17
16
15
14
pg_text_semver-
RPM
PIGSTY
1.2.1
18
17
16
15
14
pg_text_semver_$v-
DEB
PIGSTY
1.2.1
18
17
16
15
14
postgresql-$v-pg-text-semver-
Linux / PGPG18PG17PG16PG15PG14
el8.x86_64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
el8.aarch64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
el9.x86_64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
el9.aarch64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
el10.x86_64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
el10.aarch64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
d12.x86_64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
d12.aarch64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
d13.x86_64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
d13.aarch64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
u22.x86_64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
u22.aarch64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
u24.x86_64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
u24.aarch64
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PIGSTY 1.2.1
PackageVersionOSORGSIZEFile URL
pg_text_semver_181.2.1el8.x86_64pigsty22.0 KiBpg_text_semver_18-1.2.1-1PIGSTY.el8.x86_64.rpm
pg_text_semver_181.2.1el8.aarch64pigsty21.9 KiBpg_text_semver_18-1.2.1-1PIGSTY.el8.aarch64.rpm
pg_text_semver_181.2.1el9.x86_64pigsty21.6 KiBpg_text_semver_18-1.2.1-1PIGSTY.el9.x86_64.rpm
pg_text_semver_181.2.1el9.aarch64pigsty21.6 KiBpg_text_semver_18-1.2.1-1PIGSTY.el9.aarch64.rpm
pg_text_semver_181.2.1el10.x86_64pigsty21.8 KiBpg_text_semver_18-1.2.1-1PIGSTY.el10.x86_64.rpm
pg_text_semver_181.2.1el10.aarch64pigsty21.7 KiBpg_text_semver_18-1.2.1-1PIGSTY.el10.aarch64.rpm
postgresql-18-pg-text-semver1.2.1d12.x86_64pigsty19.3 KiBpostgresql-18-pg-text-semver_1.2.1-1PIGSTY~bookworm_amd64.deb
postgresql-18-pg-text-semver1.2.1d12.aarch64pigsty19.3 KiBpostgresql-18-pg-text-semver_1.2.1-1PIGSTY~bookworm_arm64.deb
postgresql-18-pg-text-semver1.2.1d13.x86_64pigsty19.3 KiBpostgresql-18-pg-text-semver_1.2.1-1PIGSTY~trixie_amd64.deb
postgresql-18-pg-text-semver1.2.1d13.aarch64pigsty19.3 KiBpostgresql-18-pg-text-semver_1.2.1-1PIGSTY~trixie_arm64.deb
postgresql-18-pg-text-semver1.2.1u22.x86_64pigsty19.8 KiBpostgresql-18-pg-text-semver_1.2.1-1PIGSTY~jammy_amd64.deb
postgresql-18-pg-text-semver1.2.1u22.aarch64pigsty19.8 KiBpostgresql-18-pg-text-semver_1.2.1-1PIGSTY~jammy_arm64.deb
postgresql-18-pg-text-semver1.2.1u24.x86_64pigsty19.7 KiBpostgresql-18-pg-text-semver_1.2.1-1PIGSTY~noble_amd64.deb
postgresql-18-pg-text-semver1.2.1u24.aarch64pigsty19.7 KiBpostgresql-18-pg-text-semver_1.2.1-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_text_semver_171.2.1el8.x86_64pigsty22.0 KiBpg_text_semver_17-1.2.1-1PIGSTY.el8.x86_64.rpm
pg_text_semver_171.2.1el8.aarch64pigsty21.9 KiBpg_text_semver_17-1.2.1-1PIGSTY.el8.aarch64.rpm
pg_text_semver_171.2.1el9.x86_64pigsty21.6 KiBpg_text_semver_17-1.2.1-1PIGSTY.el9.x86_64.rpm
pg_text_semver_171.2.1el9.aarch64pigsty21.6 KiBpg_text_semver_17-1.2.1-1PIGSTY.el9.aarch64.rpm
pg_text_semver_171.2.1el10.x86_64pigsty21.8 KiBpg_text_semver_17-1.2.1-1PIGSTY.el10.x86_64.rpm
pg_text_semver_171.2.1el10.aarch64pigsty21.7 KiBpg_text_semver_17-1.2.1-1PIGSTY.el10.aarch64.rpm
postgresql-17-pg-text-semver1.2.1d12.x86_64pigsty19.3 KiBpostgresql-17-pg-text-semver_1.2.1-1PIGSTY~bookworm_amd64.deb
postgresql-17-pg-text-semver1.2.1d12.aarch64pigsty19.3 KiBpostgresql-17-pg-text-semver_1.2.1-1PIGSTY~bookworm_arm64.deb
postgresql-17-pg-text-semver1.2.1d13.x86_64pigsty19.3 KiBpostgresql-17-pg-text-semver_1.2.1-1PIGSTY~trixie_amd64.deb
postgresql-17-pg-text-semver1.2.1d13.aarch64pigsty19.3 KiBpostgresql-17-pg-text-semver_1.2.1-1PIGSTY~trixie_arm64.deb
postgresql-17-pg-text-semver1.2.1u22.x86_64pigsty19.8 KiBpostgresql-17-pg-text-semver_1.2.1-1PIGSTY~jammy_amd64.deb
postgresql-17-pg-text-semver1.2.1u22.aarch64pigsty19.8 KiBpostgresql-17-pg-text-semver_1.2.1-1PIGSTY~jammy_arm64.deb
postgresql-17-pg-text-semver1.2.1u24.x86_64pigsty19.7 KiBpostgresql-17-pg-text-semver_1.2.1-1PIGSTY~noble_amd64.deb
postgresql-17-pg-text-semver1.2.1u24.aarch64pigsty19.7 KiBpostgresql-17-pg-text-semver_1.2.1-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_text_semver_161.2.1el8.x86_64pigsty22.0 KiBpg_text_semver_16-1.2.1-1PIGSTY.el8.x86_64.rpm
pg_text_semver_161.2.1el8.aarch64pigsty21.9 KiBpg_text_semver_16-1.2.1-1PIGSTY.el8.aarch64.rpm
pg_text_semver_161.2.1el9.x86_64pigsty21.6 KiBpg_text_semver_16-1.2.1-1PIGSTY.el9.x86_64.rpm
pg_text_semver_161.2.1el9.aarch64pigsty21.6 KiBpg_text_semver_16-1.2.1-1PIGSTY.el9.aarch64.rpm
pg_text_semver_161.2.1el10.x86_64pigsty21.8 KiBpg_text_semver_16-1.2.1-1PIGSTY.el10.x86_64.rpm
pg_text_semver_161.2.1el10.aarch64pigsty21.7 KiBpg_text_semver_16-1.2.1-1PIGSTY.el10.aarch64.rpm
postgresql-16-pg-text-semver1.2.1d12.x86_64pigsty19.3 KiBpostgresql-16-pg-text-semver_1.2.1-1PIGSTY~bookworm_amd64.deb
postgresql-16-pg-text-semver1.2.1d12.aarch64pigsty19.3 KiBpostgresql-16-pg-text-semver_1.2.1-1PIGSTY~bookworm_arm64.deb
postgresql-16-pg-text-semver1.2.1d13.x86_64pigsty19.3 KiBpostgresql-16-pg-text-semver_1.2.1-1PIGSTY~trixie_amd64.deb
postgresql-16-pg-text-semver1.2.1d13.aarch64pigsty19.3 KiBpostgresql-16-pg-text-semver_1.2.1-1PIGSTY~trixie_arm64.deb
postgresql-16-pg-text-semver1.2.1u22.x86_64pigsty19.8 KiBpostgresql-16-pg-text-semver_1.2.1-1PIGSTY~jammy_amd64.deb
postgresql-16-pg-text-semver1.2.1u22.aarch64pigsty19.8 KiBpostgresql-16-pg-text-semver_1.2.1-1PIGSTY~jammy_arm64.deb
postgresql-16-pg-text-semver1.2.1u24.x86_64pigsty19.7 KiBpostgresql-16-pg-text-semver_1.2.1-1PIGSTY~noble_amd64.deb
postgresql-16-pg-text-semver1.2.1u24.aarch64pigsty19.7 KiBpostgresql-16-pg-text-semver_1.2.1-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_text_semver_151.2.1el8.x86_64pigsty22.0 KiBpg_text_semver_15-1.2.1-1PIGSTY.el8.x86_64.rpm
pg_text_semver_151.2.1el8.aarch64pigsty21.9 KiBpg_text_semver_15-1.2.1-1PIGSTY.el8.aarch64.rpm
pg_text_semver_151.2.1el9.x86_64pigsty21.6 KiBpg_text_semver_15-1.2.1-1PIGSTY.el9.x86_64.rpm
pg_text_semver_151.2.1el9.aarch64pigsty21.6 KiBpg_text_semver_15-1.2.1-1PIGSTY.el9.aarch64.rpm
pg_text_semver_151.2.1el10.x86_64pigsty21.8 KiBpg_text_semver_15-1.2.1-1PIGSTY.el10.x86_64.rpm
pg_text_semver_151.2.1el10.aarch64pigsty21.7 KiBpg_text_semver_15-1.2.1-1PIGSTY.el10.aarch64.rpm
postgresql-15-pg-text-semver1.2.1d12.x86_64pigsty19.3 KiBpostgresql-15-pg-text-semver_1.2.1-1PIGSTY~bookworm_amd64.deb
postgresql-15-pg-text-semver1.2.1d12.aarch64pigsty19.3 KiBpostgresql-15-pg-text-semver_1.2.1-1PIGSTY~bookworm_arm64.deb
postgresql-15-pg-text-semver1.2.1d13.x86_64pigsty19.3 KiBpostgresql-15-pg-text-semver_1.2.1-1PIGSTY~trixie_amd64.deb
postgresql-15-pg-text-semver1.2.1d13.aarch64pigsty19.3 KiBpostgresql-15-pg-text-semver_1.2.1-1PIGSTY~trixie_arm64.deb
postgresql-15-pg-text-semver1.2.1u22.x86_64pigsty19.9 KiBpostgresql-15-pg-text-semver_1.2.1-1PIGSTY~jammy_amd64.deb
postgresql-15-pg-text-semver1.2.1u22.aarch64pigsty19.9 KiBpostgresql-15-pg-text-semver_1.2.1-1PIGSTY~jammy_arm64.deb
postgresql-15-pg-text-semver1.2.1u24.x86_64pigsty19.8 KiBpostgresql-15-pg-text-semver_1.2.1-1PIGSTY~noble_amd64.deb
postgresql-15-pg-text-semver1.2.1u24.aarch64pigsty19.8 KiBpostgresql-15-pg-text-semver_1.2.1-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_text_semver_141.2.1el8.x86_64pigsty22.0 KiBpg_text_semver_14-1.2.1-1PIGSTY.el8.x86_64.rpm
pg_text_semver_141.2.1el8.aarch64pigsty21.9 KiBpg_text_semver_14-1.2.1-1PIGSTY.el8.aarch64.rpm
pg_text_semver_141.2.1el9.x86_64pigsty21.6 KiBpg_text_semver_14-1.2.1-1PIGSTY.el9.x86_64.rpm
pg_text_semver_141.2.1el9.aarch64pigsty21.6 KiBpg_text_semver_14-1.2.1-1PIGSTY.el9.aarch64.rpm
pg_text_semver_141.2.1el10.x86_64pigsty21.8 KiBpg_text_semver_14-1.2.1-1PIGSTY.el10.x86_64.rpm
pg_text_semver_141.2.1el10.aarch64pigsty21.7 KiBpg_text_semver_14-1.2.1-1PIGSTY.el10.aarch64.rpm
postgresql-14-pg-text-semver1.2.1d12.x86_64pigsty19.3 KiBpostgresql-14-pg-text-semver_1.2.1-1PIGSTY~bookworm_amd64.deb
postgresql-14-pg-text-semver1.2.1d12.aarch64pigsty19.3 KiBpostgresql-14-pg-text-semver_1.2.1-1PIGSTY~bookworm_arm64.deb
postgresql-14-pg-text-semver1.2.1d13.x86_64pigsty19.3 KiBpostgresql-14-pg-text-semver_1.2.1-1PIGSTY~trixie_amd64.deb
postgresql-14-pg-text-semver1.2.1d13.aarch64pigsty19.3 KiBpostgresql-14-pg-text-semver_1.2.1-1PIGSTY~trixie_arm64.deb
postgresql-14-pg-text-semver1.2.1u22.x86_64pigsty19.8 KiBpostgresql-14-pg-text-semver_1.2.1-1PIGSTY~jammy_amd64.deb
postgresql-14-pg-text-semver1.2.1u22.aarch64pigsty19.8 KiBpostgresql-14-pg-text-semver_1.2.1-1PIGSTY~jammy_arm64.deb
postgresql-14-pg-text-semver1.2.1u24.x86_64pigsty19.7 KiBpostgresql-14-pg-text-semver_1.2.1-1PIGSTY~noble_amd64.deb
postgresql-14-pg-text-semver1.2.1u24.aarch64pigsty19.7 KiBpostgresql-14-pg-text-semver_1.2.1-1PIGSTY~noble_arm64.deb

Source

pig build pkg pg_text_semver;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install pg_text_semver;		# install via package name, for the active PG version

pig install pg_text_semver -v 18;   # install for PG 18
pig install pg_text_semver -v 17;   # install for PG 17
pig install pg_text_semver -v 16;   # install for PG 16
pig install pg_text_semver -v 15;   # install for PG 15
pig install pg_text_semver -v 14;   # install for PG 14

Create this extension with:

CREATE EXTENSION pg_text_semver;

Usage

  • Source: GitHub repo, README
  • pg_text_semver implements Semantic Versioning 2.0.0 on top of PostgreSQL text, using a semver domain and related helper types/functions.
CREATE EXTENSION pg_text_semver;

Core Workflow

The README highlights these capabilities:

  • compare semver values with the usual comparison operators
  • call semver_cmp(semver, semver) directly
  • validate and inspect version strings with semver_regexp()
  • cast parsed values to semver_parsed for sorting and indexing
  • use semver_prerelease for prerelease validation and comparison

Examples

The upstream README points users to the test__pg_text_semver() procedure for concrete examples of the types, operators, and functions. It also notes that the extension ships a separate semver_parsed type that can be serialized back to semver or text.

Notes

The README contrasts this project with C-based semver extensions: pg_text_semver stays on text-backed domains and focuses on a simple, spec-oriented implementation.

Last updated on