asn1oid

asn1oid extension

Overview

PackageVersionCategoryLicenseLanguage
asn1oid1.6TYPEGPL-3.0C
IDExtensionBinLibLoadCreateTrustRelocSchema
3560asn1oidNoYesNoYesNoYes-
Relatedpguecc pgcrypto prefix semver unit pgpdf pglite_fusion md5hash

Version

TypeRepoVersionPG VerPackageDeps
EXTMIXED1.61817161514asn1oid-
RPMPIGSTY1.61817161514asn1oid_$v-
DEBPGDG1.61817161514postgresql-$v-asn1oid-
OS / PGPG18PG17PG16PG15PG14
el8.x86_64
el8.aarch64
el9.x86_64
el9.aarch64
el10.x86_64
el10.aarch64
d12.x86_64
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
d12.aarch64
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
d13.x86_64
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
d13.aarch64
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
u22.x86_64
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
u22.aarch64
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
u24.x86_64
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
u24.aarch64
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6
PGDG 1.6

Build

You can build the RPM packages for asn1oid using pig build:

pig build pkg asn1oid         # build RPM packages

Install

You can install asn1oid directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:

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

Install the extension using pig or apt/yum/dnf:

pig install asn1oid;          # Install for current active PG version
pig ext install -y asn1oid -v 18  # PG 18
pig ext install -y asn1oid -v 17  # PG 17
pig ext install -y asn1oid -v 16  # PG 16
pig ext install -y asn1oid -v 15  # PG 15
pig ext install -y asn1oid -v 14  # PG 14
dnf install -y asn1oid_18       # PG 18
dnf install -y asn1oid_17       # PG 17
dnf install -y asn1oid_16       # PG 16
dnf install -y asn1oid_15       # PG 15
dnf install -y asn1oid_14       # PG 14
apt install -y postgresql-18-asn1oid   # PG 18
apt install -y postgresql-17-asn1oid   # PG 17
apt install -y postgresql-16-asn1oid   # PG 16
apt install -y postgresql-15-asn1oid   # PG 15
apt install -y postgresql-14-asn1oid   # PG 14

Create Extension:

CREATE EXTENSION asn1oid;

Usage

asn1oid: ASN.1 OID data type for PostgreSQL

The asn1oid extension provides a data type for storing and comparing ASN.1 Object Identifiers (OIDs).

CREATE EXTENSION asn1oid;

SELECT '1.3.6.1.4.1'::asn1oid;
   asn1oid
─────────────
 1.3.6.1.4.1

Data Type

The asn1oid type stores ASN.1 OID values in dotted-decimal notation (e.g., 1.3.6.1.4.1.311). These are hierarchical identifiers used in SNMP, LDAP, X.509 certificates, and other standards.

Operators

Standard comparison operators are supported for ordering and equality: =, <>, <, >, <=, >=.

Casts

The type supports casting to and from text.


Last Modified 2026-03-12: add pg extension catalog (95749bf)