debversion
debversion
debversion is a PostgreSQL extension that adds a native debversion data type for representing and sorting Debian package version strings according to the Debian versioning algorithm (as defined in Debian Policy).
Follow the quick start to set up extension-update email
alerts first, then use the CronJob to install and refresh the catalog. These
examples inherit image references and runtime settings from the catalog. The Cluster YAML
is an excerpt: replace imageCatalogRef: ... with your catalog reference and
keep your existing instance and storage settings.
Usage
1. Add the debversion extension image to your Cluster
Define the debversion extension under the postgresql.extensions section of
your Cluster resource. For example:
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: cluster-debversion
spec:
imageCatalogRef: ...
postgresql:
extensions:
- name: debversion
2. Enable the extension in a database
Once the extension's files are available in the cluster, you can install it in a database in either of two ways:
- Declaratively, using a CloudNativePG
Databaseresource. - Through SQL, by running
CREATE EXTENSION debversion;in the target database.
Platform teams may make extension containers available across their clusters without installing every extension in every database. Install only the extensions a database uses; letting users enable them through SQL alongside the rest of their DDL schema management code can be a convenient approach.
For extensions that normally require superuser privileges, platform teams can use pgextwlist to allow non-superusers to install an administrator-approved selection of extensions.
3. Verify installation
Once the database is ready, connect to it with psql and run:
\dx
You should see debversion listed among the installed extensions.
Known Caveats
- License:
debversionis licensed under GPL-3+, which is why it is hosted in the CNPG Extensions project rather than upstream.
Licenses and Copyright
This container image contains software that may be licensed under various open-source licenses.
All relevant license and copyright information for the debversion extension
and its dependencies are bundled within the image at:
/licenses/
By using this image, you agree to comply with the terms of the licenses contained therein.
Overview
debversion is a PostgreSQL extension that adds a native debversion data type for representing and sorting Debian package version strings according to the Debian versioning algorithm (as defined in Debian Policy).
Package details
- Extension version
- 1.2.0
- Image built
- Publisher
- cnpg-extensions
- Build
- Debian
- Platform
- PG 18 · Trixie · amd64
Project links
- Debian source package ↗tracker.debian.org/pkg/postgresql-debversion
- Upstream homepage ↗salsa.debian.org/postgresql/postgresql-debversion
Links from package metadata, recipe update rules, or reviewed upstream mappings.
Database setup
- Required extensions
- None specified
- SQL installation
CREATE EXTENSION debversion;- SQL version
1.2— differs from extension version 1.2.0
PostgreSQL parameters
None specified
These recipe settings are used in automated smoke tests.
OpenSSF scorecard
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software.
View information about checks. Automated results are informational only; some categories may not apply to this project.
Unavailable
Overview
debversion is a PostgreSQL extension that adds a native debversion data type for representing and sorting Debian package version strings according to the Debian versioning algorithm (as defined in Debian Policy).
Package details
- Extension version
- 1.2.0
- Image built
- Publisher
- cnpg-extensions
- Build
- Debian
- Platform
- PG 18 · Trixie · arm64
Project links
- Debian source package ↗tracker.debian.org/pkg/postgresql-debversion
- Upstream homepage ↗salsa.debian.org/postgresql/postgresql-debversion
Links from package metadata, recipe update rules, or reviewed upstream mappings.
Database setup
- Required extensions
- None specified
- SQL installation
CREATE EXTENSION debversion;- SQL version
1.2— differs from extension version 1.2.0
PostgreSQL parameters
None specified
These recipe settings are used in automated smoke tests.
OpenSSF scorecard
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software.
View information about checks. Automated results are informational only; some categories may not apply to this project.
Unavailable
Overview
debversion is a PostgreSQL extension that adds a native debversion data type for representing and sorting Debian package version strings according to the Debian versioning algorithm (as defined in Debian Policy).
Package details
- Extension version
- 1.2.0
- Image built
- Publisher
- cnpg-extensions
- Build
- Debian
- Platform
- PG 18 · Bookworm · amd64
Project links
- Debian source package ↗tracker.debian.org/pkg/postgresql-debversion
- Upstream homepage ↗salsa.debian.org/postgresql/postgresql-debversion
Links from package metadata, recipe update rules, or reviewed upstream mappings.
Database setup
- Required extensions
- None specified
- SQL installation
CREATE EXTENSION debversion;- SQL version
1.2— differs from extension version 1.2.0
PostgreSQL parameters
None specified
These recipe settings are used in automated smoke tests.
OpenSSF scorecard
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software.
View information about checks. Automated results are informational only; some categories may not apply to this project.
Unavailable
Overview
debversion is a PostgreSQL extension that adds a native debversion data type for representing and sorting Debian package version strings according to the Debian versioning algorithm (as defined in Debian Policy).
Package details
- Extension version
- 1.2.0
- Image built
- Publisher
- cnpg-extensions
- Build
- Debian
- Platform
- PG 18 · Bookworm · arm64
Project links
- Debian source package ↗tracker.debian.org/pkg/postgresql-debversion
- Upstream homepage ↗salsa.debian.org/postgresql/postgresql-debversion
Links from package metadata, recipe update rules, or reviewed upstream mappings.
Database setup
- Required extensions
- None specified
- SQL installation
CREATE EXTENSION debversion;- SQL version
1.2— differs from extension version 1.2.0
PostgreSQL parameters
None specified
These recipe settings are used in automated smoke tests.
OpenSSF scorecard
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software.
View information about checks. Automated results are informational only; some categories may not apply to this project.
Unavailable
Dependencies
Packages shipped in this image, including the extension itself.
1 packages · Scanned
| Package / installed version | License evidence | Advisories |
|---|---|---|
postgresql-18-debversion ↗ 1.2.0-3.pgdg13+2 | GPL-3.0-or-later | No ↗ |
No packages match these filters. Try a different name or license, or clear the filters.
Dependencies
Packages shipped in this image, including the extension itself.
1 packages · Scanned
| Package / installed version | License evidence | Advisories |
|---|---|---|
postgresql-18-debversion ↗ 1.2.0-3.pgdg13+2 | GPL-3.0-or-later | No ↗ |
No packages match these filters. Try a different name or license, or clear the filters.
Dependencies
Packages shipped in this image, including the extension itself.
1 packages · Scanned
| Package / installed version | License evidence | Advisories |
|---|---|---|
postgresql-18-debversion ↗ 1.2.0-3.pgdg12+2 | GPL-3.0-or-later | No ↗ |
No packages match these filters. Try a different name or license, or clear the filters.
Dependencies
Packages shipped in this image, including the extension itself.
1 packages · Scanned
| Package / installed version | License evidence | Advisories |
|---|---|---|
postgresql-18-debversion ↗ 1.2.0-3.pgdg12+2 | GPL-3.0-or-later | No ↗ |
No packages match these filters. Try a different name or license, or clear the filters.
Licenses
Original license files shipped in the selected container image.
1 file read directly from /licenses.
/licenses/postgresql-18-debversion/copyrightRead notice
Upstream Authors:
Roger Leigh - new implementation based upon logic
in the old sql-aptvc code by James
Troup.
Copyright:
© 2009-2012 Roger Leigh <rleigh@debian.org>
All program code, manuals, and documentation are licensed under the
terms of the GNU General Public License, version 3 or later:
postgresql-debversion is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
postgresql-debversion is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
<http://www.gnu.org/licenses/>.
On Debian systems, the complete text of the GNU General Public
License, version 3, can be found in /usr/share/common-licenses/GPL-3.
SHA256: 6d46b61d72e93a2eee156716571f8adb41a1879d62725986ac5a9f607c885e04
Licenses
Original license files shipped in the selected container image.
1 file read directly from /licenses.
/licenses/postgresql-18-debversion/copyrightRead notice
Upstream Authors:
Roger Leigh - new implementation based upon logic
in the old sql-aptvc code by James
Troup.
Copyright:
© 2009-2012 Roger Leigh <rleigh@debian.org>
All program code, manuals, and documentation are licensed under the
terms of the GNU General Public License, version 3 or later:
postgresql-debversion is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
postgresql-debversion is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
<http://www.gnu.org/licenses/>.
On Debian systems, the complete text of the GNU General Public
License, version 3, can be found in /usr/share/common-licenses/GPL-3.
SHA256: 6d46b61d72e93a2eee156716571f8adb41a1879d62725986ac5a9f607c885e04
Licenses
Original license files shipped in the selected container image.
1 file read directly from /licenses.
/licenses/postgresql-18-debversion/copyrightRead notice
Upstream Authors:
Roger Leigh - new implementation based upon logic
in the old sql-aptvc code by James
Troup.
Copyright:
© 2009-2012 Roger Leigh <rleigh@debian.org>
All program code, manuals, and documentation are licensed under the
terms of the GNU General Public License, version 3 or later:
postgresql-debversion is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
postgresql-debversion is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
<http://www.gnu.org/licenses/>.
On Debian systems, the complete text of the GNU General Public
License, version 3, can be found in /usr/share/common-licenses/GPL-3.
SHA256: 6d46b61d72e93a2eee156716571f8adb41a1879d62725986ac5a9f607c885e04
Licenses
Original license files shipped in the selected container image.
1 file read directly from /licenses.
/licenses/postgresql-18-debversion/copyrightRead notice
Upstream Authors:
Roger Leigh - new implementation based upon logic
in the old sql-aptvc code by James
Troup.
Copyright:
© 2009-2012 Roger Leigh <rleigh@debian.org>
All program code, manuals, and documentation are licensed under the
terms of the GNU General Public License, version 3 or later:
postgresql-debversion is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
postgresql-debversion is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
<http://www.gnu.org/licenses/>.
On Debian systems, the complete text of the GNU General Public
License, version 3, can be found in /usr/share/common-licenses/GPL-3.
SHA256: 6d46b61d72e93a2eee156716571f8adb41a1879d62725986ac5a9f607c885e04
Versions
Extension versions and the images built from them.
Tagged GHCR builds fetched .
