Skip to content

pg_rational

Precise fractions stored as two 32-bit integers

pg_rational · Precise fractions stored as two 32-bit integers

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
3740pg_rationalpg_rational0.0.3TYPEMITC
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s-d--NoYesNoYesnono
Relationships
See Alsounit pgmp numeral uint uint128 seg cube

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTMIXED0.0.319 18 17 16 15pg_rational-
RPMPIGSTY0.0.319 18 17 16 15pg_rational_$v-
DEBPGDG0.0.319 18 17 16 15postgresql-$v-rational-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3
el8.aarch64N/APIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3
el9.x86_64PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3
el9.aarch64PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3
el10.x86_64PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3
el10.aarch64PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3PIGSTY 0.0.3
d12.x86_64PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3
d12.aarch64PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3
d13.x86_64PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3
d13.aarch64PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3
u22.x86_64PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3
u22.aarch64PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3
u24.x86_64PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3
u24.aarch64PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3
u26.x86_64PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3
u26.aarch64PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3PGDG 0.0.3
PackageVersionOSORGSIZEFile URL
pg_rational_190.0.3el9.x86_64pigsty32.8 KiBpg_rational_19-0.0.3-1PGSTY.el9.x86_64.rpm
pg_rational_190.0.3el9.aarch64pigsty32.6 KiBpg_rational_19-0.0.3-1PGSTY.el9.aarch64.rpm
pg_rational_190.0.3el10.x86_64pigsty32.9 KiBpg_rational_19-0.0.3-1PGSTY.el10.x86_64.rpm
pg_rational_190.0.3el10.aarch64pigsty33.1 KiBpg_rational_19-0.0.3-1PGSTY.el10.aarch64.rpm
postgresql-19-rational0.0.3d12.x86_64pgdg25.0 KiBpostgresql-19-rational_0.0.3-2.pgdg12+1_amd64.deb
postgresql-19-rational0.0.3d12.x86_64pgdg25.0 KiBpostgresql-19-rational_0.0.3-1.pgdg12+2_amd64.deb
postgresql-19-rational0.0.3d12.x86_64pgdg24.9 KiBpostgresql-19-rational_0.0.3-1.pgdg12+1_amd64.deb
postgresql-19-rational0.0.3d12.aarch64pgdg24.8 KiBpostgresql-19-rational_0.0.3-2.pgdg12+1_arm64.deb
postgresql-19-rational0.0.3d12.aarch64pgdg24.8 KiBpostgresql-19-rational_0.0.3-1.pgdg12+2_arm64.deb
postgresql-19-rational0.0.3d12.aarch64pgdg24.8 KiBpostgresql-19-rational_0.0.3-1.pgdg12+1_arm64.deb
postgresql-19-rational0.0.3d13.x86_64pgdg25.0 KiBpostgresql-19-rational_0.0.3-2.pgdg13+1_amd64.deb
postgresql-19-rational0.0.3d13.x86_64pgdg25.0 KiBpostgresql-19-rational_0.0.3-1.pgdg13+2_amd64.deb
postgresql-19-rational0.0.3d13.x86_64pgdg25.0 KiBpostgresql-19-rational_0.0.3-1.pgdg13+1_amd64.deb
postgresql-19-rational0.0.3d13.aarch64pgdg25.1 KiBpostgresql-19-rational_0.0.3-2.pgdg13+1_arm64.deb
postgresql-19-rational0.0.3d13.aarch64pgdg25.1 KiBpostgresql-19-rational_0.0.3-1.pgdg13+2_arm64.deb
postgresql-19-rational0.0.3d13.aarch64pgdg25.1 KiBpostgresql-19-rational_0.0.3-1.pgdg13+1_arm64.deb
postgresql-19-rational0.0.3u22.x86_64pgdg25.1 KiBpostgresql-19-rational_0.0.3-2.pgdg22.04+1_amd64.deb
postgresql-19-rational0.0.3u22.x86_64pgdg25.1 KiBpostgresql-19-rational_0.0.3-1.pgdg22.04+2_amd64.deb
postgresql-19-rational0.0.3u22.x86_64pgdg25.1 KiBpostgresql-19-rational_0.0.3-1.pgdg22.04+1_amd64.deb
postgresql-19-rational0.0.3u22.aarch64pgdg24.6 KiBpostgresql-19-rational_0.0.3-2.pgdg22.04+1_arm64.deb
postgresql-19-rational0.0.3u22.aarch64pgdg24.6 KiBpostgresql-19-rational_0.0.3-1.pgdg22.04+2_arm64.deb
postgresql-19-rational0.0.3u22.aarch64pgdg24.6 KiBpostgresql-19-rational_0.0.3-1.pgdg22.04+1_arm64.deb
postgresql-19-rational0.0.3u24.x86_64pgdg25.0 KiBpostgresql-19-rational_0.0.3-2.pgdg24.04+1_amd64.deb
postgresql-19-rational0.0.3u24.x86_64pgdg25.1 KiBpostgresql-19-rational_0.0.3-1.pgdg24.04+2_amd64.deb
postgresql-19-rational0.0.3u24.x86_64pgdg25.0 KiBpostgresql-19-rational_0.0.3-1.pgdg24.04+1_amd64.deb
postgresql-19-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-19-rational_0.0.3-2.pgdg24.04+1_arm64.deb
postgresql-19-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-19-rational_0.0.3-1.pgdg24.04+2_arm64.deb
postgresql-19-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-19-rational_0.0.3-1.pgdg24.04+1_arm64.deb
postgresql-19-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-19-rational_0.0.3-2.pgdg26.04+1_amd64.deb
postgresql-19-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-19-rational_0.0.3-1.pgdg26.04+2_amd64.deb
postgresql-19-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-19-rational_0.0.3-1.pgdg26.04+1_amd64.deb
postgresql-19-rational0.0.3u26.aarch64pgdg24.7 KiBpostgresql-19-rational_0.0.3-2.pgdg26.04+1_arm64.deb
postgresql-19-rational0.0.3u26.aarch64pgdg24.7 KiBpostgresql-19-rational_0.0.3-1.pgdg26.04+2_arm64.deb
postgresql-19-rational0.0.3u26.aarch64pgdg24.6 KiBpostgresql-19-rational_0.0.3-1.pgdg26.04+1_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_rational_180.0.3el8.x86_64pigsty32.5 KiBpg_rational_18-0.0.3-1PGSTY.el8.x86_64.rpm
pg_rational_180.0.3el8.aarch64pigsty32.2 KiBpg_rational_18-0.0.3-1PGSTY.el8.aarch64.rpm
pg_rational_180.0.3el9.x86_64pigsty32.8 KiBpg_rational_18-0.0.3-1PGSTY.el9.x86_64.rpm
pg_rational_180.0.3el9.aarch64pigsty32.6 KiBpg_rational_18-0.0.3-1PGSTY.el9.aarch64.rpm
pg_rational_180.0.3el10.x86_64pigsty32.9 KiBpg_rational_18-0.0.3-1PGSTY.el10.x86_64.rpm
pg_rational_180.0.3el10.aarch64pigsty33.1 KiBpg_rational_18-0.0.3-1PGSTY.el10.aarch64.rpm
postgresql-18-rational0.0.3d12.x86_64pgdg25.0 KiBpostgresql-18-rational_0.0.3-2.pgdg12+1_amd64.deb
postgresql-18-rational0.0.3d12.x86_64pgdg25.0 KiBpostgresql-18-rational_0.0.3-1.pgdg12+2_amd64.deb
postgresql-18-rational0.0.3d12.x86_64pgdg24.9 KiBpostgresql-18-rational_0.0.3-1.pgdg12+1_amd64.deb
postgresql-18-rational0.0.3d12.aarch64pgdg24.8 KiBpostgresql-18-rational_0.0.3-2.pgdg12+1_arm64.deb
postgresql-18-rational0.0.3d12.aarch64pgdg24.8 KiBpostgresql-18-rational_0.0.3-1.pgdg12+2_arm64.deb
postgresql-18-rational0.0.3d12.aarch64pgdg24.8 KiBpostgresql-18-rational_0.0.3-1.pgdg12+1_arm64.deb
postgresql-18-rational0.0.3d13.x86_64pgdg25.0 KiBpostgresql-18-rational_0.0.3-2.pgdg13+1_amd64.deb
postgresql-18-rational0.0.3d13.x86_64pgdg25.0 KiBpostgresql-18-rational_0.0.3-1.pgdg13+2_amd64.deb
postgresql-18-rational0.0.3d13.x86_64pgdg24.9 KiBpostgresql-18-rational_0.0.3-1.pgdg13+1_amd64.deb
postgresql-18-rational0.0.3d13.aarch64pgdg25.1 KiBpostgresql-18-rational_0.0.3-2.pgdg13+1_arm64.deb
postgresql-18-rational0.0.3d13.aarch64pgdg25.1 KiBpostgresql-18-rational_0.0.3-1.pgdg13+2_arm64.deb
postgresql-18-rational0.0.3d13.aarch64pgdg25.1 KiBpostgresql-18-rational_0.0.3-1.pgdg13+1_arm64.deb
postgresql-18-rational0.0.3u22.x86_64pgdg25.1 KiBpostgresql-18-rational_0.0.3-2.pgdg22.04+1_amd64.deb
postgresql-18-rational0.0.3u22.x86_64pgdg25.1 KiBpostgresql-18-rational_0.0.3-1.pgdg22.04+2_amd64.deb
postgresql-18-rational0.0.3u22.x86_64pgdg25.0 KiBpostgresql-18-rational_0.0.3-1.pgdg22.04+1_amd64.deb
postgresql-18-rational0.0.3u22.aarch64pgdg24.6 KiBpostgresql-18-rational_0.0.3-2.pgdg22.04+1_arm64.deb
postgresql-18-rational0.0.3u22.aarch64pgdg24.6 KiBpostgresql-18-rational_0.0.3-1.pgdg22.04+2_arm64.deb
postgresql-18-rational0.0.3u22.aarch64pgdg24.6 KiBpostgresql-18-rational_0.0.3-1.pgdg22.04+1_arm64.deb
postgresql-18-rational0.0.3u24.x86_64pgdg25.1 KiBpostgresql-18-rational_0.0.3-2.pgdg24.04+1_amd64.deb
postgresql-18-rational0.0.3u24.x86_64pgdg25.0 KiBpostgresql-18-rational_0.0.3-1.pgdg24.04+2_amd64.deb
postgresql-18-rational0.0.3u24.x86_64pgdg25.0 KiBpostgresql-18-rational_0.0.3-1.pgdg24.04+1_amd64.deb
postgresql-18-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-18-rational_0.0.3-2.pgdg24.04+1_arm64.deb
postgresql-18-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-18-rational_0.0.3-1.pgdg24.04+2_arm64.deb
postgresql-18-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-18-rational_0.0.3-1.pgdg24.04+1_arm64.deb
postgresql-18-rational0.0.3u26.x86_64pgdg24.7 KiBpostgresql-18-rational_0.0.3-2.pgdg26.04+1_amd64.deb
postgresql-18-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-18-rational_0.0.3-1.pgdg26.04+2_amd64.deb
postgresql-18-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-18-rational_0.0.3-1.pgdg26.04+1_amd64.deb
postgresql-18-rational0.0.3u26.aarch64pgdg24.7 KiBpostgresql-18-rational_0.0.3-2.pgdg26.04+1_arm64.deb
postgresql-18-rational0.0.3u26.aarch64pgdg24.6 KiBpostgresql-18-rational_0.0.3-1.pgdg26.04+2_arm64.deb
postgresql-18-rational0.0.3u26.aarch64pgdg24.6 KiBpostgresql-18-rational_0.0.3-1.pgdg26.04+1_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_rational_170.0.3el8.x86_64pigsty32.5 KiBpg_rational_17-0.0.3-1PGSTY.el8.x86_64.rpm
pg_rational_170.0.3el8.aarch64pigsty32.2 KiBpg_rational_17-0.0.3-1PGSTY.el8.aarch64.rpm
pg_rational_170.0.3el9.x86_64pigsty32.8 KiBpg_rational_17-0.0.3-1PGSTY.el9.x86_64.rpm
pg_rational_170.0.3el9.aarch64pigsty32.6 KiBpg_rational_17-0.0.3-1PGSTY.el9.aarch64.rpm
pg_rational_170.0.3el10.x86_64pigsty32.9 KiBpg_rational_17-0.0.3-1PGSTY.el10.x86_64.rpm
pg_rational_170.0.3el10.aarch64pigsty33.1 KiBpg_rational_17-0.0.3-1PGSTY.el10.aarch64.rpm
postgresql-17-rational0.0.3d12.x86_64pgdg25.0 KiBpostgresql-17-rational_0.0.3-2.pgdg12+1_amd64.deb
postgresql-17-rational0.0.3d12.x86_64pgdg25.0 KiBpostgresql-17-rational_0.0.3-1.pgdg12+2_amd64.deb
postgresql-17-rational0.0.3d12.x86_64pgdg24.9 KiBpostgresql-17-rational_0.0.3-1.pgdg12+1_amd64.deb
postgresql-17-rational0.0.3d12.aarch64pgdg24.8 KiBpostgresql-17-rational_0.0.3-2.pgdg12+1_arm64.deb
postgresql-17-rational0.0.3d12.aarch64pgdg24.7 KiBpostgresql-17-rational_0.0.3-1.pgdg12+2_arm64.deb
postgresql-17-rational0.0.3d12.aarch64pgdg24.7 KiBpostgresql-17-rational_0.0.3-1.pgdg12+1_arm64.deb
postgresql-17-rational0.0.3d13.x86_64pgdg25.0 KiBpostgresql-17-rational_0.0.3-2.pgdg13+1_amd64.deb
postgresql-17-rational0.0.3d13.x86_64pgdg24.9 KiBpostgresql-17-rational_0.0.3-1.pgdg13+2_amd64.deb
postgresql-17-rational0.0.3d13.x86_64pgdg24.9 KiBpostgresql-17-rational_0.0.3-1.pgdg13+1_amd64.deb
postgresql-17-rational0.0.3d13.aarch64pgdg25.1 KiBpostgresql-17-rational_0.0.3-2.pgdg13+1_arm64.deb
postgresql-17-rational0.0.3d13.aarch64pgdg25.1 KiBpostgresql-17-rational_0.0.3-1.pgdg13+2_arm64.deb
postgresql-17-rational0.0.3d13.aarch64pgdg25.0 KiBpostgresql-17-rational_0.0.3-1.pgdg13+1_arm64.deb
postgresql-17-rational0.0.3u22.x86_64pgdg25.9 KiBpostgresql-17-rational_0.0.3-2.pgdg22.04+1_amd64.deb
postgresql-17-rational0.0.3u22.x86_64pgdg25.9 KiBpostgresql-17-rational_0.0.3-1.pgdg22.04+2_amd64.deb
postgresql-17-rational0.0.3u22.x86_64pgdg25.8 KiBpostgresql-17-rational_0.0.3-1.pgdg22.04+1_amd64.deb
postgresql-17-rational0.0.3u22.aarch64pgdg25.4 KiBpostgresql-17-rational_0.0.3-2.pgdg22.04+1_arm64.deb
postgresql-17-rational0.0.3u22.aarch64pgdg25.4 KiBpostgresql-17-rational_0.0.3-1.pgdg22.04+2_arm64.deb
postgresql-17-rational0.0.3u22.aarch64pgdg25.4 KiBpostgresql-17-rational_0.0.3-1.pgdg22.04+1_arm64.deb
postgresql-17-rational0.0.3u24.x86_64pgdg25.0 KiBpostgresql-17-rational_0.0.3-2.pgdg24.04+1_amd64.deb
postgresql-17-rational0.0.3u24.x86_64pgdg24.9 KiBpostgresql-17-rational_0.0.3-1.pgdg24.04+2_amd64.deb
postgresql-17-rational0.0.3u24.x86_64pgdg24.9 KiBpostgresql-17-rational_0.0.3-1.pgdg24.04+1_amd64.deb
postgresql-17-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-17-rational_0.0.3-2.pgdg24.04+1_arm64.deb
postgresql-17-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-17-rational_0.0.3-1.pgdg24.04+2_arm64.deb
postgresql-17-rational0.0.3u24.aarch64pgdg25.0 KiBpostgresql-17-rational_0.0.3-1.pgdg24.04+1_arm64.deb
postgresql-17-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-17-rational_0.0.3-2.pgdg26.04+1_amd64.deb
postgresql-17-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-17-rational_0.0.3-1.pgdg26.04+2_amd64.deb
postgresql-17-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-17-rational_0.0.3-1.pgdg26.04+1_amd64.deb
postgresql-17-rational0.0.3u26.aarch64pgdg24.6 KiBpostgresql-17-rational_0.0.3-2.pgdg26.04+1_arm64.deb
postgresql-17-rational0.0.3u26.aarch64pgdg24.7 KiBpostgresql-17-rational_0.0.3-1.pgdg26.04+2_arm64.deb
postgresql-17-rational0.0.3u26.aarch64pgdg24.6 KiBpostgresql-17-rational_0.0.3-1.pgdg26.04+1_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_rational_160.0.3el8.x86_64pigsty32.5 KiBpg_rational_16-0.0.3-1PGSTY.el8.x86_64.rpm
pg_rational_160.0.3el8.aarch64pigsty32.2 KiBpg_rational_16-0.0.3-1PGSTY.el8.aarch64.rpm
pg_rational_160.0.3el9.x86_64pigsty32.8 KiBpg_rational_16-0.0.3-1PGSTY.el9.x86_64.rpm
pg_rational_160.0.3el9.aarch64pigsty32.6 KiBpg_rational_16-0.0.3-1PGSTY.el9.aarch64.rpm
pg_rational_160.0.3el10.x86_64pigsty32.9 KiBpg_rational_16-0.0.3-1PGSTY.el10.x86_64.rpm
pg_rational_160.0.3el10.aarch64pigsty33.1 KiBpg_rational_16-0.0.3-1PGSTY.el10.aarch64.rpm
postgresql-16-rational0.0.3d12.x86_64pgdg25.0 KiBpostgresql-16-rational_0.0.3-2.pgdg12+1_amd64.deb
postgresql-16-rational0.0.3d12.x86_64pgdg25.0 KiBpostgresql-16-rational_0.0.3-1.pgdg12+2_amd64.deb
postgresql-16-rational0.0.3d12.x86_64pgdg24.9 KiBpostgresql-16-rational_0.0.3-1.pgdg12+1_amd64.deb
postgresql-16-rational0.0.3d12.aarch64pgdg24.8 KiBpostgresql-16-rational_0.0.3-2.pgdg12+1_arm64.deb
postgresql-16-rational0.0.3d12.aarch64pgdg24.8 KiBpostgresql-16-rational_0.0.3-1.pgdg12+2_arm64.deb
postgresql-16-rational0.0.3d12.aarch64pgdg24.7 KiBpostgresql-16-rational_0.0.3-1.pgdg12+1_arm64.deb
postgresql-16-rational0.0.3d13.x86_64pgdg25.0 KiBpostgresql-16-rational_0.0.3-2.pgdg13+1_amd64.deb
postgresql-16-rational0.0.3d13.x86_64pgdg24.9 KiBpostgresql-16-rational_0.0.3-1.pgdg13+2_amd64.deb
postgresql-16-rational0.0.3d13.x86_64pgdg24.9 KiBpostgresql-16-rational_0.0.3-1.pgdg13+1_amd64.deb
postgresql-16-rational0.0.3d13.aarch64pgdg25.1 KiBpostgresql-16-rational_0.0.3-2.pgdg13+1_arm64.deb
postgresql-16-rational0.0.3d13.aarch64pgdg25.0 KiBpostgresql-16-rational_0.0.3-1.pgdg13+2_arm64.deb
postgresql-16-rational0.0.3d13.aarch64pgdg25.0 KiBpostgresql-16-rational_0.0.3-1.pgdg13+1_arm64.deb
postgresql-16-rational0.0.3u22.x86_64pgdg26.0 KiBpostgresql-16-rational_0.0.3-2.pgdg22.04+1_amd64.deb
postgresql-16-rational0.0.3u22.x86_64pgdg25.9 KiBpostgresql-16-rational_0.0.3-1.pgdg22.04+2_amd64.deb
postgresql-16-rational0.0.3u22.x86_64pgdg25.9 KiBpostgresql-16-rational_0.0.3-1.pgdg22.04+1_amd64.deb
postgresql-16-rational0.0.3u22.aarch64pgdg25.4 KiBpostgresql-16-rational_0.0.3-2.pgdg22.04+1_arm64.deb
postgresql-16-rational0.0.3u22.aarch64pgdg25.4 KiBpostgresql-16-rational_0.0.3-1.pgdg22.04+2_arm64.deb
postgresql-16-rational0.0.3u22.aarch64pgdg25.4 KiBpostgresql-16-rational_0.0.3-1.pgdg22.04+1_arm64.deb
postgresql-16-rational0.0.3u24.x86_64pgdg25.0 KiBpostgresql-16-rational_0.0.3-2.pgdg24.04+1_amd64.deb
postgresql-16-rational0.0.3u24.x86_64pgdg24.9 KiBpostgresql-16-rational_0.0.3-1.pgdg24.04+2_amd64.deb
postgresql-16-rational0.0.3u24.x86_64pgdg24.9 KiBpostgresql-16-rational_0.0.3-1.pgdg24.04+1_amd64.deb
postgresql-16-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-16-rational_0.0.3-2.pgdg24.04+1_arm64.deb
postgresql-16-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-16-rational_0.0.3-1.pgdg24.04+2_arm64.deb
postgresql-16-rational0.0.3u24.aarch64pgdg25.0 KiBpostgresql-16-rational_0.0.3-1.pgdg24.04+1_arm64.deb
postgresql-16-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-16-rational_0.0.3-2.pgdg26.04+1_amd64.deb
postgresql-16-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-16-rational_0.0.3-1.pgdg26.04+2_amd64.deb
postgresql-16-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-16-rational_0.0.3-1.pgdg26.04+1_amd64.deb
postgresql-16-rational0.0.3u26.aarch64pgdg24.7 KiBpostgresql-16-rational_0.0.3-2.pgdg26.04+1_arm64.deb
postgresql-16-rational0.0.3u26.aarch64pgdg24.7 KiBpostgresql-16-rational_0.0.3-1.pgdg26.04+2_arm64.deb
postgresql-16-rational0.0.3u26.aarch64pgdg24.6 KiBpostgresql-16-rational_0.0.3-1.pgdg26.04+1_arm64.deb
PackageVersionOSORGSIZEFile URL
pg_rational_150.0.3el8.x86_64pigsty32.5 KiBpg_rational_15-0.0.3-1PGSTY.el8.x86_64.rpm
pg_rational_150.0.3el8.aarch64pigsty32.2 KiBpg_rational_15-0.0.3-1PGSTY.el8.aarch64.rpm
pg_rational_150.0.3el9.x86_64pigsty32.8 KiBpg_rational_15-0.0.3-1PGSTY.el9.x86_64.rpm
pg_rational_150.0.3el9.aarch64pigsty32.6 KiBpg_rational_15-0.0.3-1PGSTY.el9.aarch64.rpm
pg_rational_150.0.3el10.x86_64pigsty32.9 KiBpg_rational_15-0.0.3-1PGSTY.el10.x86_64.rpm
pg_rational_150.0.3el10.aarch64pigsty33.1 KiBpg_rational_15-0.0.3-1PGSTY.el10.aarch64.rpm
postgresql-15-rational0.0.3d12.x86_64pgdg25.0 KiBpostgresql-15-rational_0.0.3-2.pgdg12+1_amd64.deb
postgresql-15-rational0.0.3d12.x86_64pgdg25.0 KiBpostgresql-15-rational_0.0.3-1.pgdg12+2_amd64.deb
postgresql-15-rational0.0.3d12.x86_64pgdg24.9 KiBpostgresql-15-rational_0.0.3-1.pgdg12+1_amd64.deb
postgresql-15-rational0.0.3d12.aarch64pgdg24.8 KiBpostgresql-15-rational_0.0.3-2.pgdg12+1_arm64.deb
postgresql-15-rational0.0.3d12.aarch64pgdg24.8 KiBpostgresql-15-rational_0.0.3-1.pgdg12+2_arm64.deb
postgresql-15-rational0.0.3d12.aarch64pgdg24.7 KiBpostgresql-15-rational_0.0.3-1.pgdg12+1_arm64.deb
postgresql-15-rational0.0.3d13.x86_64pgdg24.9 KiBpostgresql-15-rational_0.0.3-2.pgdg13+1_amd64.deb
postgresql-15-rational0.0.3d13.x86_64pgdg24.9 KiBpostgresql-15-rational_0.0.3-1.pgdg13+2_amd64.deb
postgresql-15-rational0.0.3d13.x86_64pgdg24.9 KiBpostgresql-15-rational_0.0.3-1.pgdg13+1_amd64.deb
postgresql-15-rational0.0.3d13.aarch64pgdg25.1 KiBpostgresql-15-rational_0.0.3-2.pgdg13+1_arm64.deb
postgresql-15-rational0.0.3d13.aarch64pgdg25.0 KiBpostgresql-15-rational_0.0.3-1.pgdg13+2_arm64.deb
postgresql-15-rational0.0.3d13.aarch64pgdg25.0 KiBpostgresql-15-rational_0.0.3-1.pgdg13+1_arm64.deb
postgresql-15-rational0.0.3u22.x86_64pgdg25.9 KiBpostgresql-15-rational_0.0.3-2.pgdg22.04+1_amd64.deb
postgresql-15-rational0.0.3u22.x86_64pgdg25.9 KiBpostgresql-15-rational_0.0.3-1.pgdg22.04+2_amd64.deb
postgresql-15-rational0.0.3u22.x86_64pgdg25.9 KiBpostgresql-15-rational_0.0.3-1.pgdg22.04+1_amd64.deb
postgresql-15-rational0.0.3u22.aarch64pgdg25.4 KiBpostgresql-15-rational_0.0.3-2.pgdg22.04+1_arm64.deb
postgresql-15-rational0.0.3u22.aarch64pgdg25.4 KiBpostgresql-15-rational_0.0.3-1.pgdg22.04+2_arm64.deb
postgresql-15-rational0.0.3u22.aarch64pgdg25.4 KiBpostgresql-15-rational_0.0.3-1.pgdg22.04+1_arm64.deb
postgresql-15-rational0.0.3u24.x86_64pgdg24.9 KiBpostgresql-15-rational_0.0.3-2.pgdg24.04+1_amd64.deb
postgresql-15-rational0.0.3u24.x86_64pgdg24.9 KiBpostgresql-15-rational_0.0.3-1.pgdg24.04+2_amd64.deb
postgresql-15-rational0.0.3u24.x86_64pgdg24.9 KiBpostgresql-15-rational_0.0.3-1.pgdg24.04+1_amd64.deb
postgresql-15-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-15-rational_0.0.3-2.pgdg24.04+1_arm64.deb
postgresql-15-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-15-rational_0.0.3-1.pgdg24.04+2_arm64.deb
postgresql-15-rational0.0.3u24.aarch64pgdg25.1 KiBpostgresql-15-rational_0.0.3-1.pgdg24.04+1_arm64.deb
postgresql-15-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-15-rational_0.0.3-2.pgdg26.04+1_amd64.deb
postgresql-15-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-15-rational_0.0.3-1.pgdg26.04+2_amd64.deb
postgresql-15-rational0.0.3u26.x86_64pgdg24.6 KiBpostgresql-15-rational_0.0.3-1.pgdg26.04+1_amd64.deb
postgresql-15-rational0.0.3u26.aarch64pgdg24.7 KiBpostgresql-15-rational_0.0.3-2.pgdg26.04+1_arm64.deb
postgresql-15-rational0.0.3u26.aarch64pgdg24.7 KiBpostgresql-15-rational_0.0.3-1.pgdg26.04+2_arm64.deb
postgresql-15-rational0.0.3u26.aarch64pgdg24.6 KiBpostgresql-15-rational_0.0.3-1.pgdg26.04+1_arm64.deb

Source

pig build pkg pg_rational;		# build rpm

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_rational;		# install by package name

pig install pg_rational -v 19;   # install for PG 19
pig install pg_rational -v 18;   # install for PG 18
pig install pg_rational -v 17;   # install for PG 17
pig install pg_rational -v 16;   # install for PG 16
pig install pg_rational -v 15;   # install for PG 15

Create this extension with:

CREATE EXTENSION pg_rational;

Usage

Sources:

pg_rational provides exact fractional arithmetic in a fixed 64-bit PostgreSQL type. Use rational for values that must remain exact and for user-defined row ordering where new positions need to be inserted between existing positions without renumbering the table.

Exact Arithmetic

CREATE EXTENSION pg_rational;

SELECT 1::rational / 3 * 3 = 1;
SELECT '1/3'::rational + '2/7'::rational;
SELECT rational_simplify('36/12');

The extension detects arithmetic overflow instead of silently wrapping. ratt is a helper type for tuple coercion:

SELECT 1 + (i, i + 1)::ratt
FROM generate_series(1, 5) AS i;

Conversions are available between integer values, floating-point values, and rationals. Converting a float finds a rational approximation; converting a rational to float loses exactness.

Stable User-Defined Ordering

CREATE SEQUENCE todos_seq AS integer;

CREATE TABLE todos (
  prio rational UNIQUE DEFAULT nextval('todos_seq')::integer,
  what text NOT NULL
);

INSERT INTO todos (what)
VALUES ('install extension'), ('read about it'), ('try it');

UPDATE todos
SET prio = rational_intermediate(1, 2)
WHERE what = 'try it';

SELECT * FROM todos ORDER BY prio;

Use an integer sequence and cast nextval() explicitly. The extension intentionally has no implicit bigint-to-rational conversion because its numerator is limited to the PostgreSQL integer range.

Indexes, Aggregates, and Caveats

  • rational supports btree and hash operator classes, so it can be used in ordered and equality indexes.
  • The extension supplies min(rational), max(rational), and sum(rational) aggregates in addition to arithmetic and comparison operators.
  • rational_intermediate(lower, upper) walks a Stern-Brocot tree to find a fraction between its arguments. Extremely narrow ranges take longer, and v0.0.3 has no maximum-depth parameter; do not expose attacker-controlled pathological bounds without a statement timeout.
  • Values are exact only while arithmetic stays within the type’s numerator and denominator limits. Handle overflow errors rather than falling back silently to floating point.
  • Version 0.0.3 is primarily a build-compatibility and documentation release; the user-facing rational arithmetic surface remains stable.

Table reader