unit

SI units extension

Overview

PGDG 1st Party Extension: pgunit : SI units extension

Information

Metadata

  • Latest Version: 7
  • Postgres Support: 17,16,15,14,13
  • Need Load: Shared library do not need explicit loading
  • Need DDL: Need CREATE EXTENSION DDL
  • Relocatable: Can be installed into other schemas
  • Trusted: Untrusted, Require Superuser to Create
  • Schemas: N/A
  • Requires: plpgsql

RPM / DEB

  • RPM Repo: PGDG
  • RPM Name: postgresql-unit_$v*
  • RPM Ver : 7
  • RPM Deps: N/A
  • DEB Repo: PGDG
  • DEB Name: postgresql-$v-unit
  • DEB Ver : 7
  • DEB Deps: N/A

Packages

OS Arch PG17 PG16 PG15 PG14 PG13
el8 x86_64 postgresql-unit_17
PGDG 7.9
postgresql-unit_16
PGDG 7.9
postgresql-unit_15
PGDG 7.9
postgresql-unit_14
PGDG 7.9
postgresql-unit_13
PGDG 7.9
el8 aarch64 postgresql-unit_17
PGDG 7.9
postgresql-unit_16
PGDG 7.9
postgresql-unit_15
PGDG 7.9
postgresql-unit_14
PGDG 7.9
postgresql-unit_13
PGDG 7.9
el9 x86_64 postgresql-unit_17
PGDG 7.9
postgresql-unit_16
PGDG 7.9
postgresql-unit_15
PGDG 7.9
postgresql-unit_14
PGDG 7.9
postgresql-unit_13
PGDG 7.9
el9 aarch64 postgresql-unit_17
PGDG 7.9
postgresql-unit_16
PGDG 7.9
postgresql-unit_15
PGDG 7.9
postgresql-unit_14
PGDG 7.9
postgresql-unit_13
PGDG 7.9
d12 x86_64 postgresql-17-unit
PGDG 7.10
postgresql-16-unit
PGDG 7.10
postgresql-15-unit
PGDG 7.10
postgresql-14-unit
PGDG 7.10
postgresql-13-unit
PGDG 7.10
d12 aarch64 postgresql-17-unit
PGDG 7.10
postgresql-16-unit
PGDG 7.10
postgresql-15-unit
PGDG 7.10
postgresql-14-unit
PGDG 7.10
postgresql-13-unit
PGDG 7.10
u22 x86_64 postgresql-17-unit
PGDG 7.10
postgresql-16-unit
PGDG 7.10
postgresql-15-unit
PGDG 7.10
postgresql-14-unit
PGDG 7.10
postgresql-13-unit
PGDG 7.10
u22 aarch64 postgresql-17-unit
PGDG 7.10
postgresql-16-unit
PGDG 7.10
postgresql-15-unit
PGDG 7.10
postgresql-14-unit
PGDG 7.10
postgresql-13-unit
PGDG 7.10
u24 x86_64 postgresql-17-unit
PGDG 7.10
postgresql-16-unit
PGDG 7.10
postgresql-15-unit
PGDG 7.10
postgresql-14-unit
PGDG 7.10
postgresql-13-unit
PGDG 7.10
u24 aarch64 postgresql-17-unit
PGDG 7.10
postgresql-16-unit
PGDG 7.10
postgresql-15-unit
PGDG 7.10
postgresql-14-unit
PGDG 7.10
postgresql-13-unit
PGDG 7.10

Installation

Install unit via the pig CLI tool:


pig ext install pgunit; # Extension Namepig ext install unit; # normalized package name

Install pgunit via Pigsty playbook:

./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pgunit"]}' # -l <cls>

Install pgunit RPM from YUM repo directly:

dnf install postgresql-unit_17*;
dnf install postgresql-unit_16*;
dnf install postgresql-unit_15*;
dnf install postgresql-unit_14*;
dnf install postgresql-unit_13*;

Install pgunit DEB from APT repo directly:

apt install postgresql-17-unit;
apt install postgresql-16-unit;
apt install postgresql-15-unit;
apt install postgresql-14-unit;
apt install postgresql-13-unit;

Enable unit extension on PostgreSQL cluster:

CREATE EXTENSION unit CASCADE;




Last modified 2025-02-17: add extension part (cfa504b)