跳转到主要内容

pgbson

为 PostgreSQL 提供 BSON 数据类型及访问函数

pgbson · 为 PostgreSQL 提供 BSON 数据类型及访问函数

概览

ID扩展软件包版本类别许可证编程语言
3910pgbsonpgbson2.2.0TYPEMITC
属性可执行文件动态库需要预加载需要建扩展可迁移可信
--s-d-r否是否是是否
PGXN bson 2.2.0; SQL 2.2; upgrade library then extension; no REINDEX.

软件包

类型仓库版本兼容的 PostgreSQL 大版本包名模式依赖
EXTPIGSTY2.2.019 18 17 16 15pgbson-
RPMPGDG2.2.019 18 17 16 15postgresbson_$vlibbson
DEBPIGSTY2.2.019 18 17 16 15postgresql-$v-pgbson-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APGDG 2.2.0PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0
el8.aarch64N/APGDG 2.2.0PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0
el9.x86_64PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0
el9.aarch64PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0
el10.x86_64PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0
el10.aarch64PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0PGDG 2.2.0
d12.x86_64PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0
d12.aarch64PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0
d13.x86_64PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0
d13.aarch64PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0
u22.x86_64PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0
u22.aarch64PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0
u24.x86_64PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0
u24.aarch64PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0
u26.x86_64PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0
u26.aarch64PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0PIGSTY 2.2.0
软件包版本平台仓库大小下载
postgresbson_192.2.0el9.x86_64pgdg37.4 KiBpostgresbson_19-2.2.0-3PGDG.rhel9.9.x86_64.rpm
postgresbson_192.2.0el9.x86_64pgdg37.4 KiBpostgresbson_19-2.2.0-3PGDG.rhel9.8.x86_64.rpm
postgresbson_192.2.0el9.x86_64pgdg37.4 KiBpostgresbson_19-2.2.0-3PGDG.rhel9.7.x86_64.rpm
postgresbson_192.2.0el9.aarch64pgdg36.9 KiBpostgresbson_19-2.2.0-3PGDG.rhel9.9.aarch64.rpm
postgresbson_192.2.0el9.aarch64pgdg36.9 KiBpostgresbson_19-2.2.0-3PGDG.rhel9.8.aarch64.rpm
postgresbson_192.2.0el9.aarch64pgdg36.9 KiBpostgresbson_19-2.2.0-3PGDG.rhel9.7.aarch64.rpm
postgresbson_192.2.0el10.x86_64pgdg37.6 KiBpostgresbson_19-2.2.0-3PGDG.rhel10.3.x86_64.rpm
postgresbson_192.2.0el10.x86_64pgdg37.6 KiBpostgresbson_19-2.2.0-3PGDG.rhel10.2.x86_64.rpm
postgresbson_192.2.0el10.x86_64pgdg37.6 KiBpostgresbson_19-2.2.0-3PGDG.rhel10.1.x86_64.rpm
postgresbson_192.2.0el10.aarch64pgdg37.2 KiBpostgresbson_19-2.2.0-3PGDG.rhel10.3.aarch64.rpm
postgresbson_192.2.0el10.aarch64pgdg37.2 KiBpostgresbson_19-2.2.0-3PGDG.rhel10.2.aarch64.rpm
postgresbson_192.2.0el10.aarch64pgdg37.2 KiBpostgresbson_19-2.2.0-3PGDG.rhel10.1.aarch64.rpm
postgresql-19-pgbson2.2.0d12.x86_64pigsty46.1 KiBpostgresql-19-pgbson_2.2.0-1PGSTY~bookworm_amd64.deb
postgresql-19-pgbson2.2.0d12.aarch64pigsty45.6 KiBpostgresql-19-pgbson_2.2.0-1PGSTY~bookworm_arm64.deb
postgresql-19-pgbson2.2.0d13.x86_64pigsty46.1 KiBpostgresql-19-pgbson_2.2.0-1PGSTY~trixie_amd64.deb
postgresql-19-pgbson2.2.0d13.aarch64pigsty45.6 KiBpostgresql-19-pgbson_2.2.0-1PGSTY~trixie_arm64.deb
postgresql-19-pgbson2.2.0u22.x86_64pigsty48.3 KiBpostgresql-19-pgbson_2.2.0-1PGSTY~jammy_amd64.deb
postgresql-19-pgbson2.2.0u22.aarch64pigsty47.6 KiBpostgresql-19-pgbson_2.2.0-1PGSTY~jammy_arm64.deb
postgresql-19-pgbson2.2.0u24.x86_64pigsty47.7 KiBpostgresql-19-pgbson_2.2.0-1PGSTY~noble_amd64.deb
postgresql-19-pgbson2.2.0u24.aarch64pigsty47.1 KiBpostgresql-19-pgbson_2.2.0-1PGSTY~noble_arm64.deb
postgresql-19-pgbson2.2.0u26.x86_64pigsty47.4 KiBpostgresql-19-pgbson_2.2.0-1PGSTY~resolute_amd64.deb
postgresql-19-pgbson2.2.0u26.aarch64pigsty47.5 KiBpostgresql-19-pgbson_2.2.0-1PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
postgresbson_182.2.0el8.x86_64pgdg37.3 KiBpostgresbson_18-2.2.0-3PGDG.rhel8.10.x86_64.rpm
postgresbson_182.2.0el8.x86_64pgdg37.2 KiBpostgresbson_18-2.2.0-2PGDG.rhel8.10.x86_64.rpm
postgresbson_182.2.0el8.x86_64pigsty54.6 KiBpostgresbson_18-2.2.0-1PGSTY.el8.x86_64.rpm
postgresbson_182.2.0el8.x86_64pgdg37.0 KiBpostgresbson_18-2.2.0-1PGDG.rhel8.10.x86_64.rpm
postgresbson_182.2.0el8.aarch64pgdg36.7 KiBpostgresbson_18-2.2.0-3PGDG.rhel8.10.aarch64.rpm
postgresbson_182.2.0el8.aarch64pgdg36.5 KiBpostgresbson_18-2.2.0-2PGDG.rhel8.10.aarch64.rpm
postgresbson_182.2.0el8.aarch64pigsty54.0 KiBpostgresbson_18-2.2.0-1PGSTY.el8.aarch64.rpm
postgresbson_182.2.0el8.aarch64pgdg36.2 KiBpostgresbson_18-2.2.0-1PGDG.rhel8.10.aarch64.rpm
postgresbson_182.2.0el9.x86_64pgdg37.4 KiBpostgresbson_18-2.2.0-3PGDG.rhel9.9.x86_64.rpm
postgresbson_182.2.0el9.x86_64pgdg37.4 KiBpostgresbson_18-2.2.0-3PGDG.rhel9.8.x86_64.rpm
postgresbson_182.2.0el9.x86_64pgdg37.4 KiBpostgresbson_18-2.2.0-3PGDG.rhel9.7.x86_64.rpm
postgresbson_182.2.0el9.x86_64pigsty54.9 KiBpostgresbson_18-2.2.0-2PGSTY.el9.x86_64.rpm
postgresbson_182.2.0el9.x86_64pgdg37.1 KiBpostgresbson_18-2.2.0-2PGDG.rhel9.8.x86_64.rpm
postgresbson_182.2.0el9.x86_64pgdg37.1 KiBpostgresbson_18-2.2.0-2PGDG.rhel9.7.x86_64.rpm
postgresbson_182.2.0el9.x86_64pgdg36.9 KiBpostgresbson_18-2.2.0-1PGDG.rhel9.8.x86_64.rpm
postgresbson_182.2.0el9.x86_64pgdg36.8 KiBpostgresbson_18-2.2.0-1PGDG.rhel9.7.x86_64.rpm
postgresbson_182.2.0el9.aarch64pgdg36.8 KiBpostgresbson_18-2.2.0-3PGDG.rhel9.9.aarch64.rpm
postgresbson_182.2.0el9.aarch64pgdg36.8 KiBpostgresbson_18-2.2.0-3PGDG.rhel9.8.aarch64.rpm
postgresbson_182.2.0el9.aarch64pgdg36.8 KiBpostgresbson_18-2.2.0-3PGDG.rhel9.7.aarch64.rpm
postgresbson_182.2.0el9.aarch64pigsty54.1 KiBpostgresbson_18-2.2.0-2PGSTY.el9.aarch64.rpm
postgresbson_182.2.0el9.aarch64pgdg36.6 KiBpostgresbson_18-2.2.0-2PGDG.rhel9.8.aarch64.rpm
postgresbson_182.2.0el9.aarch64pgdg36.6 KiBpostgresbson_18-2.2.0-2PGDG.rhel9.7.aarch64.rpm
postgresbson_182.2.0el9.aarch64pgdg36.3 KiBpostgresbson_18-2.2.0-1PGDG.rhel9.8.aarch64.rpm
postgresbson_182.2.0el9.aarch64pgdg36.3 KiBpostgresbson_18-2.2.0-1PGDG.rhel9.7.aarch64.rpm
postgresbson_182.2.0el10.x86_64pgdg37.6 KiBpostgresbson_18-2.2.0-3PGDG.rhel10.3.x86_64.rpm
postgresbson_182.2.0el10.x86_64pgdg37.6 KiBpostgresbson_18-2.2.0-3PGDG.rhel10.2.x86_64.rpm
postgresbson_182.2.0el10.x86_64pgdg37.6 KiBpostgresbson_18-2.2.0-3PGDG.rhel10.1.x86_64.rpm
postgresbson_182.2.0el10.x86_64pigsty55.6 KiBpostgresbson_18-2.2.0-2PGSTY.el10.x86_64.rpm
postgresbson_182.2.0el10.x86_64pgdg37.4 KiBpostgresbson_18-2.2.0-2PGDG.rhel10.2.x86_64.rpm
postgresbson_182.2.0el10.x86_64pgdg37.3 KiBpostgresbson_18-2.2.0-2PGDG.rhel10.1.x86_64.rpm
postgresbson_182.2.0el10.x86_64pgdg37.1 KiBpostgresbson_18-2.2.0-1PGDG.rhel10.2.x86_64.rpm
postgresbson_182.2.0el10.x86_64pgdg37.1 KiBpostgresbson_18-2.2.0-1PGDG.rhel10.1.x86_64.rpm
postgresbson_182.2.0el10.aarch64pgdg37.0 KiBpostgresbson_18-2.2.0-3PGDG.rhel10.3.aarch64.rpm
postgresbson_182.2.0el10.aarch64pgdg37.1 KiBpostgresbson_18-2.2.0-3PGDG.rhel10.2.aarch64.rpm
postgresbson_182.2.0el10.aarch64pgdg37.1 KiBpostgresbson_18-2.2.0-3PGDG.rhel10.1.aarch64.rpm
postgresbson_182.2.0el10.aarch64pigsty55.0 KiBpostgresbson_18-2.2.0-2PGSTY.el10.aarch64.rpm
postgresbson_182.2.0el10.aarch64pgdg36.8 KiBpostgresbson_18-2.2.0-2PGDG.rhel10.2.aarch64.rpm
postgresbson_182.2.0el10.aarch64pgdg36.8 KiBpostgresbson_18-2.2.0-2PGDG.rhel10.1.aarch64.rpm
postgresbson_182.2.0el10.aarch64pgdg36.5 KiBpostgresbson_18-2.2.0-1PGDG.rhel10.2.aarch64.rpm
postgresbson_182.2.0el10.aarch64pgdg36.5 KiBpostgresbson_18-2.2.0-1PGDG.rhel10.1.aarch64.rpm
postgresql-18-pgbson2.2.0d12.x86_64pigsty46.0 KiBpostgresql-18-pgbson_2.2.0-1PGSTY~bookworm_amd64.deb
postgresql-18-pgbson2.2.0d12.aarch64pigsty45.5 KiBpostgresql-18-pgbson_2.2.0-1PGSTY~bookworm_arm64.deb
postgresql-18-pgbson2.2.0d13.x86_64pigsty46.1 KiBpostgresql-18-pgbson_2.2.0-1PGSTY~trixie_amd64.deb
postgresql-18-pgbson2.2.0d13.aarch64pigsty45.5 KiBpostgresql-18-pgbson_2.2.0-1PGSTY~trixie_arm64.deb
postgresql-18-pgbson2.2.0u22.x86_64pigsty48.2 KiBpostgresql-18-pgbson_2.2.0-1PGSTY~jammy_amd64.deb
postgresql-18-pgbson2.2.0u22.aarch64pigsty47.5 KiBpostgresql-18-pgbson_2.2.0-1PGSTY~jammy_arm64.deb
postgresql-18-pgbson2.2.0u24.x86_64pigsty47.6 KiBpostgresql-18-pgbson_2.2.0-1PGSTY~noble_amd64.deb
postgresql-18-pgbson2.2.0u24.aarch64pigsty47.1 KiBpostgresql-18-pgbson_2.2.0-1PGSTY~noble_arm64.deb
postgresql-18-pgbson2.2.0u26.x86_64pigsty47.4 KiBpostgresql-18-pgbson_2.2.0-1PGSTY~resolute_amd64.deb
postgresql-18-pgbson2.2.0u26.aarch64pigsty47.4 KiBpostgresql-18-pgbson_2.2.0-1PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
postgresbson_172.2.0el8.x86_64pgdg37.3 KiBpostgresbson_17-2.2.0-3PGDG.rhel8.10.x86_64.rpm
postgresbson_172.2.0el8.x86_64pgdg37.3 KiBpostgresbson_17-2.2.0-2PGDG.rhel8.10.x86_64.rpm
postgresbson_172.2.0el8.x86_64pigsty54.7 KiBpostgresbson_17-2.2.0-1PGSTY.el8.x86_64.rpm
postgresbson_172.2.0el8.x86_64pgdg37.0 KiBpostgresbson_17-2.2.0-1PGDG.rhel8.10.x86_64.rpm
postgresbson_172.2.0el8.aarch64pgdg36.7 KiBpostgresbson_17-2.2.0-3PGDG.rhel8.10.aarch64.rpm
postgresbson_172.2.0el8.aarch64pgdg36.4 KiBpostgresbson_17-2.2.0-2PGDG.rhel8.10.aarch64.rpm
postgresbson_172.2.0el8.aarch64pigsty54.0 KiBpostgresbson_17-2.2.0-1PGSTY.el8.aarch64.rpm
postgresbson_172.2.0el8.aarch64pgdg36.2 KiBpostgresbson_17-2.2.0-1PGDG.rhel8.10.aarch64.rpm
postgresbson_172.2.0el9.x86_64pgdg37.4 KiBpostgresbson_17-2.2.0-3PGDG.rhel9.9.x86_64.rpm
postgresbson_172.2.0el9.x86_64pgdg37.4 KiBpostgresbson_17-2.2.0-3PGDG.rhel9.8.x86_64.rpm
postgresbson_172.2.0el9.x86_64pgdg37.4 KiBpostgresbson_17-2.2.0-3PGDG.rhel9.7.x86_64.rpm
postgresbson_172.2.0el9.x86_64pigsty55.0 KiBpostgresbson_17-2.2.0-2PGSTY.el9.x86_64.rpm
postgresbson_172.2.0el9.x86_64pgdg37.1 KiBpostgresbson_17-2.2.0-2PGDG.rhel9.8.x86_64.rpm
postgresbson_172.2.0el9.x86_64pgdg37.1 KiBpostgresbson_17-2.2.0-2PGDG.rhel9.7.x86_64.rpm
postgresbson_172.2.0el9.x86_64pgdg36.9 KiBpostgresbson_17-2.2.0-1PGDG.rhel9.8.x86_64.rpm
postgresbson_172.2.0el9.x86_64pgdg36.9 KiBpostgresbson_17-2.2.0-1PGDG.rhel9.7.x86_64.rpm
postgresbson_172.2.0el9.aarch64pgdg36.8 KiBpostgresbson_17-2.2.0-3PGDG.rhel9.9.aarch64.rpm
postgresbson_172.2.0el9.aarch64pgdg36.8 KiBpostgresbson_17-2.2.0-3PGDG.rhel9.8.aarch64.rpm
postgresbson_172.2.0el9.aarch64pgdg36.8 KiBpostgresbson_17-2.2.0-3PGDG.rhel9.7.aarch64.rpm
postgresbson_172.2.0el9.aarch64pigsty54.2 KiBpostgresbson_17-2.2.0-2PGSTY.el9.aarch64.rpm
postgresbson_172.2.0el9.aarch64pgdg36.6 KiBpostgresbson_17-2.2.0-2PGDG.rhel9.8.aarch64.rpm
postgresbson_172.2.0el9.aarch64pgdg36.6 KiBpostgresbson_17-2.2.0-2PGDG.rhel9.7.aarch64.rpm
postgresbson_172.2.0el9.aarch64pgdg36.3 KiBpostgresbson_17-2.2.0-1PGDG.rhel9.8.aarch64.rpm
postgresbson_172.2.0el9.aarch64pgdg36.3 KiBpostgresbson_17-2.2.0-1PGDG.rhel9.7.aarch64.rpm
postgresbson_172.2.0el10.x86_64pgdg37.6 KiBpostgresbson_17-2.2.0-3PGDG.rhel10.3.x86_64.rpm
postgresbson_172.2.0el10.x86_64pgdg37.6 KiBpostgresbson_17-2.2.0-3PGDG.rhel10.2.x86_64.rpm
postgresbson_172.2.0el10.x86_64pgdg37.6 KiBpostgresbson_17-2.2.0-3PGDG.rhel10.1.x86_64.rpm
postgresbson_172.2.0el10.x86_64pigsty55.6 KiBpostgresbson_17-2.2.0-2PGSTY.el10.x86_64.rpm
postgresbson_172.2.0el10.x86_64pgdg37.4 KiBpostgresbson_17-2.2.0-2PGDG.rhel10.2.x86_64.rpm
postgresbson_172.2.0el10.x86_64pgdg37.3 KiBpostgresbson_17-2.2.0-2PGDG.rhel10.1.x86_64.rpm
postgresbson_172.2.0el10.x86_64pgdg37.1 KiBpostgresbson_17-2.2.0-1PGDG.rhel10.2.x86_64.rpm
postgresbson_172.2.0el10.x86_64pgdg37.1 KiBpostgresbson_17-2.2.0-1PGDG.rhel10.1.x86_64.rpm
postgresbson_172.2.0el10.aarch64pgdg37.1 KiBpostgresbson_17-2.2.0-3PGDG.rhel10.3.aarch64.rpm
postgresbson_172.2.0el10.aarch64pgdg37.1 KiBpostgresbson_17-2.2.0-3PGDG.rhel10.2.aarch64.rpm
postgresbson_172.2.0el10.aarch64pgdg37.1 KiBpostgresbson_17-2.2.0-3PGDG.rhel10.1.aarch64.rpm
postgresbson_172.2.0el10.aarch64pigsty55.0 KiBpostgresbson_17-2.2.0-2PGSTY.el10.aarch64.rpm
postgresbson_172.2.0el10.aarch64pgdg36.8 KiBpostgresbson_17-2.2.0-2PGDG.rhel10.2.aarch64.rpm
postgresbson_172.2.0el10.aarch64pgdg36.8 KiBpostgresbson_17-2.2.0-2PGDG.rhel10.1.aarch64.rpm
postgresbson_172.2.0el10.aarch64pgdg36.5 KiBpostgresbson_17-2.2.0-1PGDG.rhel10.2.aarch64.rpm
postgresbson_172.2.0el10.aarch64pgdg36.5 KiBpostgresbson_17-2.2.0-1PGDG.rhel10.1.aarch64.rpm
postgresql-17-pgbson2.2.0d12.x86_64pigsty45.9 KiBpostgresql-17-pgbson_2.2.0-1PGSTY~bookworm_amd64.deb
postgresql-17-pgbson2.2.0d12.aarch64pigsty45.4 KiBpostgresql-17-pgbson_2.2.0-1PGSTY~bookworm_arm64.deb
postgresql-17-pgbson2.2.0d13.x86_64pigsty46.0 KiBpostgresql-17-pgbson_2.2.0-1PGSTY~trixie_amd64.deb
postgresql-17-pgbson2.2.0d13.aarch64pigsty45.4 KiBpostgresql-17-pgbson_2.2.0-1PGSTY~trixie_arm64.deb
postgresql-17-pgbson2.2.0u22.x86_64pigsty49.2 KiBpostgresql-17-pgbson_2.2.0-1PGSTY~jammy_amd64.deb
postgresql-17-pgbson2.2.0u22.aarch64pigsty48.6 KiBpostgresql-17-pgbson_2.2.0-1PGSTY~jammy_arm64.deb
postgresql-17-pgbson2.2.0u24.x86_64pigsty47.6 KiBpostgresql-17-pgbson_2.2.0-1PGSTY~noble_amd64.deb
postgresql-17-pgbson2.2.0u24.aarch64pigsty47.0 KiBpostgresql-17-pgbson_2.2.0-1PGSTY~noble_arm64.deb
postgresql-17-pgbson2.2.0u26.x86_64pigsty47.4 KiBpostgresql-17-pgbson_2.2.0-1PGSTY~resolute_amd64.deb
postgresql-17-pgbson2.2.0u26.aarch64pigsty47.5 KiBpostgresql-17-pgbson_2.2.0-1PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
postgresbson_162.2.0el8.x86_64pgdg37.3 KiBpostgresbson_16-2.2.0-3PGDG.rhel8.10.x86_64.rpm
postgresbson_162.2.0el8.x86_64pgdg37.2 KiBpostgresbson_16-2.2.0-2PGDG.rhel8.10.x86_64.rpm
postgresbson_162.2.0el8.x86_64pigsty54.7 KiBpostgresbson_16-2.2.0-1PGSTY.el8.x86_64.rpm
postgresbson_162.2.0el8.x86_64pgdg37.0 KiBpostgresbson_16-2.2.0-1PGDG.rhel8.10.x86_64.rpm
postgresbson_162.2.0el8.aarch64pgdg36.7 KiBpostgresbson_16-2.2.0-3PGDG.rhel8.10.aarch64.rpm
postgresbson_162.2.0el8.aarch64pgdg36.5 KiBpostgresbson_16-2.2.0-2PGDG.rhel8.10.aarch64.rpm
postgresbson_162.2.0el8.aarch64pigsty54.0 KiBpostgresbson_16-2.2.0-1PGSTY.el8.aarch64.rpm
postgresbson_162.2.0el8.aarch64pgdg36.2 KiBpostgresbson_16-2.2.0-1PGDG.rhel8.10.aarch64.rpm
postgresbson_162.2.0el9.x86_64pgdg37.4 KiBpostgresbson_16-2.2.0-3PGDG.rhel9.9.x86_64.rpm
postgresbson_162.2.0el9.x86_64pgdg37.4 KiBpostgresbson_16-2.2.0-3PGDG.rhel9.8.x86_64.rpm
postgresbson_162.2.0el9.x86_64pgdg37.4 KiBpostgresbson_16-2.2.0-3PGDG.rhel9.7.x86_64.rpm
postgresbson_162.2.0el9.x86_64pigsty55.0 KiBpostgresbson_16-2.2.0-2PGSTY.el9.x86_64.rpm
postgresbson_162.2.0el9.x86_64pgdg37.1 KiBpostgresbson_16-2.2.0-2PGDG.rhel9.8.x86_64.rpm
postgresbson_162.2.0el9.x86_64pgdg37.1 KiBpostgresbson_16-2.2.0-2PGDG.rhel9.7.x86_64.rpm
postgresbson_162.2.0el9.x86_64pgdg36.8 KiBpostgresbson_16-2.2.0-1PGDG.rhel9.8.x86_64.rpm
postgresbson_162.2.0el9.x86_64pgdg36.9 KiBpostgresbson_16-2.2.0-1PGDG.rhel9.7.x86_64.rpm
postgresbson_162.2.0el9.aarch64pgdg36.8 KiBpostgresbson_16-2.2.0-3PGDG.rhel9.9.aarch64.rpm
postgresbson_162.2.0el9.aarch64pgdg36.8 KiBpostgresbson_16-2.2.0-3PGDG.rhel9.8.aarch64.rpm
postgresbson_162.2.0el9.aarch64pgdg36.8 KiBpostgresbson_16-2.2.0-3PGDG.rhel9.7.aarch64.rpm
postgresbson_162.2.0el9.aarch64pigsty54.2 KiBpostgresbson_16-2.2.0-2PGSTY.el9.aarch64.rpm
postgresbson_162.2.0el9.aarch64pgdg36.6 KiBpostgresbson_16-2.2.0-2PGDG.rhel9.8.aarch64.rpm
postgresbson_162.2.0el9.aarch64pgdg36.6 KiBpostgresbson_16-2.2.0-2PGDG.rhel9.7.aarch64.rpm
postgresbson_162.2.0el9.aarch64pgdg36.3 KiBpostgresbson_16-2.2.0-1PGDG.rhel9.8.aarch64.rpm
postgresbson_162.2.0el9.aarch64pgdg36.3 KiBpostgresbson_16-2.2.0-1PGDG.rhel9.7.aarch64.rpm
postgresbson_162.2.0el10.x86_64pgdg37.6 KiBpostgresbson_16-2.2.0-3PGDG.rhel10.3.x86_64.rpm
postgresbson_162.2.0el10.x86_64pgdg37.6 KiBpostgresbson_16-2.2.0-3PGDG.rhel10.2.x86_64.rpm
postgresbson_162.2.0el10.x86_64pgdg37.6 KiBpostgresbson_16-2.2.0-3PGDG.rhel10.1.x86_64.rpm
postgresbson_162.2.0el10.x86_64pigsty55.6 KiBpostgresbson_16-2.2.0-2PGSTY.el10.x86_64.rpm
postgresbson_162.2.0el10.x86_64pgdg37.4 KiBpostgresbson_16-2.2.0-2PGDG.rhel10.2.x86_64.rpm
postgresbson_162.2.0el10.x86_64pgdg37.4 KiBpostgresbson_16-2.2.0-2PGDG.rhel10.1.x86_64.rpm
postgresbson_162.2.0el10.x86_64pgdg37.1 KiBpostgresbson_16-2.2.0-1PGDG.rhel10.2.x86_64.rpm
postgresbson_162.2.0el10.x86_64pgdg37.1 KiBpostgresbson_16-2.2.0-1PGDG.rhel10.1.x86_64.rpm
postgresbson_162.2.0el10.aarch64pgdg37.1 KiBpostgresbson_16-2.2.0-3PGDG.rhel10.3.aarch64.rpm
postgresbson_162.2.0el10.aarch64pgdg37.1 KiBpostgresbson_16-2.2.0-3PGDG.rhel10.2.aarch64.rpm
postgresbson_162.2.0el10.aarch64pgdg37.1 KiBpostgresbson_16-2.2.0-3PGDG.rhel10.1.aarch64.rpm
postgresbson_162.2.0el10.aarch64pigsty55.0 KiBpostgresbson_16-2.2.0-2PGSTY.el10.aarch64.rpm
postgresbson_162.2.0el10.aarch64pgdg36.8 KiBpostgresbson_16-2.2.0-2PGDG.rhel10.2.aarch64.rpm
postgresbson_162.2.0el10.aarch64pgdg36.8 KiBpostgresbson_16-2.2.0-2PGDG.rhel10.1.aarch64.rpm
postgresbson_162.2.0el10.aarch64pgdg36.5 KiBpostgresbson_16-2.2.0-1PGDG.rhel10.2.aarch64.rpm
postgresbson_162.2.0el10.aarch64pgdg36.5 KiBpostgresbson_16-2.2.0-1PGDG.rhel10.1.aarch64.rpm
postgresql-16-pgbson2.2.0d12.x86_64pigsty45.9 KiBpostgresql-16-pgbson_2.2.0-1PGSTY~bookworm_amd64.deb
postgresql-16-pgbson2.2.0d12.aarch64pigsty45.4 KiBpostgresql-16-pgbson_2.2.0-1PGSTY~bookworm_arm64.deb
postgresql-16-pgbson2.2.0d13.x86_64pigsty46.0 KiBpostgresql-16-pgbson_2.2.0-1PGSTY~trixie_amd64.deb
postgresql-16-pgbson2.2.0d13.aarch64pigsty45.4 KiBpostgresql-16-pgbson_2.2.0-1PGSTY~trixie_arm64.deb
postgresql-16-pgbson2.2.0u22.x86_64pigsty49.2 KiBpostgresql-16-pgbson_2.2.0-1PGSTY~jammy_amd64.deb
postgresql-16-pgbson2.2.0u22.aarch64pigsty48.6 KiBpostgresql-16-pgbson_2.2.0-1PGSTY~jammy_arm64.deb
postgresql-16-pgbson2.2.0u24.x86_64pigsty47.6 KiBpostgresql-16-pgbson_2.2.0-1PGSTY~noble_amd64.deb
postgresql-16-pgbson2.2.0u24.aarch64pigsty47.0 KiBpostgresql-16-pgbson_2.2.0-1PGSTY~noble_arm64.deb
postgresql-16-pgbson2.2.0u26.x86_64pigsty47.4 KiBpostgresql-16-pgbson_2.2.0-1PGSTY~resolute_amd64.deb
postgresql-16-pgbson2.2.0u26.aarch64pigsty47.5 KiBpostgresql-16-pgbson_2.2.0-1PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
postgresbson_152.2.0el8.x86_64pgdg37.3 KiBpostgresbson_15-2.2.0-3PGDG.rhel8.10.x86_64.rpm
postgresbson_152.2.0el8.x86_64pgdg37.2 KiBpostgresbson_15-2.2.0-2PGDG.rhel8.10.x86_64.rpm
postgresbson_152.2.0el8.x86_64pigsty54.6 KiBpostgresbson_15-2.2.0-1PGSTY.el8.x86_64.rpm
postgresbson_152.2.0el8.x86_64pgdg37.0 KiBpostgresbson_15-2.2.0-1PGDG.rhel8.10.x86_64.rpm
postgresbson_152.2.0el8.aarch64pgdg36.7 KiBpostgresbson_15-2.2.0-3PGDG.rhel8.10.aarch64.rpm
postgresbson_152.2.0el8.aarch64pgdg36.4 KiBpostgresbson_15-2.2.0-2PGDG.rhel8.10.aarch64.rpm
postgresbson_152.2.0el8.aarch64pigsty53.9 KiBpostgresbson_15-2.2.0-1PGSTY.el8.aarch64.rpm
postgresbson_152.2.0el8.aarch64pgdg36.1 KiBpostgresbson_15-2.2.0-1PGDG.rhel8.10.aarch64.rpm
postgresbson_152.2.0el9.x86_64pgdg37.4 KiBpostgresbson_15-2.2.0-3PGDG.rhel9.9.x86_64.rpm
postgresbson_152.2.0el9.x86_64pgdg37.4 KiBpostgresbson_15-2.2.0-3PGDG.rhel9.8.x86_64.rpm
postgresbson_152.2.0el9.x86_64pgdg37.4 KiBpostgresbson_15-2.2.0-3PGDG.rhel9.7.x86_64.rpm
postgresbson_152.2.0el9.x86_64pigsty55.1 KiBpostgresbson_15-2.2.0-2PGSTY.el9.x86_64.rpm
postgresbson_152.2.0el9.x86_64pgdg37.1 KiBpostgresbson_15-2.2.0-2PGDG.rhel9.8.x86_64.rpm
postgresbson_152.2.0el9.x86_64pgdg37.1 KiBpostgresbson_15-2.2.0-2PGDG.rhel9.7.x86_64.rpm
postgresbson_152.2.0el9.x86_64pgdg36.9 KiBpostgresbson_15-2.2.0-1PGDG.rhel9.8.x86_64.rpm
postgresbson_152.2.0el9.x86_64pgdg36.9 KiBpostgresbson_15-2.2.0-1PGDG.rhel9.7.x86_64.rpm
postgresbson_152.2.0el9.aarch64pgdg36.8 KiBpostgresbson_15-2.2.0-3PGDG.rhel9.9.aarch64.rpm
postgresbson_152.2.0el9.aarch64pgdg36.8 KiBpostgresbson_15-2.2.0-3PGDG.rhel9.8.aarch64.rpm
postgresbson_152.2.0el9.aarch64pgdg36.8 KiBpostgresbson_15-2.2.0-3PGDG.rhel9.7.aarch64.rpm
postgresbson_152.2.0el9.aarch64pigsty54.2 KiBpostgresbson_15-2.2.0-2PGSTY.el9.aarch64.rpm
postgresbson_152.2.0el9.aarch64pgdg36.6 KiBpostgresbson_15-2.2.0-2PGDG.rhel9.8.aarch64.rpm
postgresbson_152.2.0el9.aarch64pgdg36.6 KiBpostgresbson_15-2.2.0-2PGDG.rhel9.7.aarch64.rpm
postgresbson_152.2.0el9.aarch64pgdg36.3 KiBpostgresbson_15-2.2.0-1PGDG.rhel9.8.aarch64.rpm
postgresbson_152.2.0el9.aarch64pgdg36.3 KiBpostgresbson_15-2.2.0-1PGDG.rhel9.7.aarch64.rpm
postgresbson_152.2.0el10.x86_64pgdg37.6 KiBpostgresbson_15-2.2.0-3PGDG.rhel10.3.x86_64.rpm
postgresbson_152.2.0el10.x86_64pgdg37.6 KiBpostgresbson_15-2.2.0-3PGDG.rhel10.2.x86_64.rpm
postgresbson_152.2.0el10.x86_64pgdg37.6 KiBpostgresbson_15-2.2.0-3PGDG.rhel10.1.x86_64.rpm
postgresbson_152.2.0el10.x86_64pigsty55.6 KiBpostgresbson_15-2.2.0-2PGSTY.el10.x86_64.rpm
postgresbson_152.2.0el10.x86_64pgdg37.3 KiBpostgresbson_15-2.2.0-2PGDG.rhel10.2.x86_64.rpm
postgresbson_152.2.0el10.x86_64pgdg37.3 KiBpostgresbson_15-2.2.0-2PGDG.rhel10.1.x86_64.rpm
postgresbson_152.2.0el10.x86_64pgdg37.0 KiBpostgresbson_15-2.2.0-1PGDG.rhel10.2.x86_64.rpm
postgresbson_152.2.0el10.x86_64pgdg37.1 KiBpostgresbson_15-2.2.0-1PGDG.rhel10.1.x86_64.rpm
postgresbson_152.2.0el10.aarch64pgdg37.0 KiBpostgresbson_15-2.2.0-3PGDG.rhel10.3.aarch64.rpm
postgresbson_152.2.0el10.aarch64pgdg37.1 KiBpostgresbson_15-2.2.0-3PGDG.rhel10.2.aarch64.rpm
postgresbson_152.2.0el10.aarch64pgdg37.1 KiBpostgresbson_15-2.2.0-3PGDG.rhel10.1.aarch64.rpm
postgresbson_152.2.0el10.aarch64pigsty54.9 KiBpostgresbson_15-2.2.0-2PGSTY.el10.aarch64.rpm
postgresbson_152.2.0el10.aarch64pgdg36.8 KiBpostgresbson_15-2.2.0-2PGDG.rhel10.2.aarch64.rpm
postgresbson_152.2.0el10.aarch64pgdg36.8 KiBpostgresbson_15-2.2.0-2PGDG.rhel10.1.aarch64.rpm
postgresbson_152.2.0el10.aarch64pgdg36.5 KiBpostgresbson_15-2.2.0-1PGDG.rhel10.2.aarch64.rpm
postgresbson_152.2.0el10.aarch64pgdg36.5 KiBpostgresbson_15-2.2.0-1PGDG.rhel10.1.aarch64.rpm
postgresql-15-pgbson2.2.0d12.x86_64pigsty45.9 KiBpostgresql-15-pgbson_2.2.0-1PGSTY~bookworm_amd64.deb
postgresql-15-pgbson2.2.0d12.aarch64pigsty45.4 KiBpostgresql-15-pgbson_2.2.0-1PGSTY~bookworm_arm64.deb
postgresql-15-pgbson2.2.0d13.x86_64pigsty45.9 KiBpostgresql-15-pgbson_2.2.0-1PGSTY~trixie_amd64.deb
postgresql-15-pgbson2.2.0d13.aarch64pigsty45.4 KiBpostgresql-15-pgbson_2.2.0-1PGSTY~trixie_arm64.deb
postgresql-15-pgbson2.2.0u22.x86_64pigsty49.2 KiBpostgresql-15-pgbson_2.2.0-1PGSTY~jammy_amd64.deb
postgresql-15-pgbson2.2.0u22.aarch64pigsty48.6 KiBpostgresql-15-pgbson_2.2.0-1PGSTY~jammy_arm64.deb
postgresql-15-pgbson2.2.0u24.x86_64pigsty47.5 KiBpostgresql-15-pgbson_2.2.0-1PGSTY~noble_amd64.deb
postgresql-15-pgbson2.2.0u24.aarch64pigsty46.9 KiBpostgresql-15-pgbson_2.2.0-1PGSTY~noble_arm64.deb
postgresql-15-pgbson2.2.0u26.x86_64pigsty47.3 KiBpostgresql-15-pgbson_2.2.0-1PGSTY~resolute_amd64.deb
postgresql-15-pgbson2.2.0u26.aarch64pigsty47.4 KiBpostgresql-15-pgbson_2.2.0-1PGSTY~resolute_arm64.deb

源码

pig build pkg pgbson;		# build rpm/deb

安装

启用 PGDG 和 PIGSTY 仓库并更新缓存。

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

使用 pig 安装扩展。

pig install pgbson;		# install by package name

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

在数据库中创建扩展。

CREATE EXTENSION pgbson;

用法

来源:

pgbson 添加了 BSON 数据类型、带类型的点路径访问器、JSON 风格的导航、类型转换、比较操作符,以及 btree/hash 索引。当二进制往返保真度或 BSON 特有的标量类型至关重要时,请使用 BSON;如果主要需求是 PostgreSQL 原生 JSON 索引,请使用 jsonb。PGXN 发行版本为 2.2.0,而 SQL 扩展版本为 2.2。

安装并存储 BSON

CREATE EXTENSION pgbson;
SELECT pgbson_version();

CREATE TABLE events (
  id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
  payload bson NOT NULL
);

INSERT INTO events (payload)
VALUES ('{"user":{"name":"Ada"},"attempt":3}'::jsonb::bson);

本地模块依赖 libbson。隐式的 bytea 到 bson 转换会验证 BSON 输入,而反向转换会保留二进制表示。

提取值

带类型的访问器无需物化每一层中间文档:

SELECT bson_get_string(payload, 'user.name'),
       bson_get_int32(payload, 'attempt')
FROM events;

其他带类型的 getter 覆盖 64 位整数、双精度数、十进制数、日期时间、二进制值、布尔值、嵌套 BSON 文档和 JSONB 数组。路径缺失或类型不匹配时返回 NULL;如果必须区分这些情况,请在摄取数据时验证预期的 BSON 模式。

版本 2.1 新增了与类型无关的终端提取器:

SELECT bson_get_value(payload, 'user.name')
FROM events;
-- { "_" : "Ada" }

bson_get_value 始终将选中的标量、数组或文档包装在键 _ 下。调用方应只移除这一层包装。该函数有意不提供可链式使用的 -> 等价形式。

导航、比较与索引

SELECT payload->'user'->>'name'
FROM events;

CREATE INDEX events_user_name_idx
ON events (bson_get_string(payload, 'user.name'));

CREATE INDEX events_payload_btree_idx ON events (payload);
CREATE INDEX events_payload_hash_idx ON events USING hash (payload);

版本 2.1 提供逻辑比较操作符 =、<>、<、<=、> 和 >=;== 与 <<>> 分别执行二进制相等和不等比较。默认 btree 操作符类使用 BSON 逻辑比较,而 hash 操作符类使用二进制相等。字段顺序或字节完全一致性有影响时,应有意识地选择。

升级与注意事项

ALTER EXTENSION pgbson UPDATE TO '2.2';
  • 安装 2.1 共享库不会更新已有 2.0 扩展的 SQL 对象;安装文件后应执行扩展更新。
  • 2.1 共享库修复了 bson_get_bson() 或 -> 解析到标量端点时导致后端崩溃的问题。即使应用尚未使用新增的 2.1 SQL 函数,也应替换早期二进制文件。
  • BSON 到 JSON/JSONB 的转换使用 Extended JSON。BSON 与 JSONB 的类型、相等和排序语义不同,因此这种转换并非对所有工作流都无损。
  • 在 2.1 中,BSON 日期时间上的 ->> 会包含末尾的 Z;bson_get_datetime() 保持不变。请检查会比较旧文本格式的客户端。
  • BSON 顶层值是文档,不能是裸数组或标量。bson_get_value 使用 _ 包装,以便在该限制下返回任意嵌套形态。

2.1.1 二进制修复

发行版 2.1.1 保留 SQL 版本 2.1,安装新库并重新连接即可,已有 2.1 实例无需 SQL 扩展更新。它修复 BSON 二进制接收函数读取错误内存而导致后端崩溃的问题,影响二进制 COPY 和以二进制发送参数的驱动;文本输入不受该缺陷影响。bson_get_datetime 对超出 PostgreSQL timestamp 范围的日期现在返回 NULL。bson_get_string 与 ->> 遇到嵌入的 NUL 时会截断,这属于文档澄清,行为未变。

2.2.0 当前升级边界

2.2.0 的 SQL 版本为 2.2,比较函数改为 C 实现,消除通过 search_path 同名函数劫持比较过程的风险。先安装新共享库,再执行上面的 SQL 更新;已有索引无需因此重建。该版本包含 2.1.2 的 libbson 兼容性、字符编码转换和无效输入处理修复。无效 UTF-8 的检查范围仍受所用 libbson 版本影响,旧版本的键检查不等同于完整字符串值验证。使用匹配的新库和 SQL 文件,不应把早期 2.1.1 的“无需 SQL 升级”说明套用于此次升级。

表格阅读器