PG 扩展目录扩展详情base36操作查看编辑历史编辑此页添加子页面提交文档问题提交项目问题base36Base36编码解码扩展仓库adjust/pg-base36https://github.com/adjust/pg-base36源码pg-base36-1.1.1.tar.gzpg-base36-1.1.1.tar.gz概览扩展包名版本分类许可证语言pg_base361.1.1FUNCMITCID扩展名BinLibLoadCreateTrustReloc模式4810base36否是否是否是-相关扩展base62 pg_base58 pg_hashids url_encode pg_slug_gen typeid pgqr版本类型仓库版本PG 大版本包名依赖EXTPIGSTY1.1.11817161514pg_base36-RPMPIGSTY1.1.11817161514pg_base36_$v-DEBPIGSTY1.1.11817161514postgresql-$v-base36-OS / PGPG19PG18PG17PG16PG15el8.x86_64N/APIGSTY 1.1.1el8.x86_64.pg18 : pg_base36_18×pg_base36_18-1.1.1-1PGSTY.el8.x86_64.rpmPIGSTY · 1.1.1 · 25.2KiBPIGSTY 1.1.1el8.x86_64.pg17 : pg_base36_17×pg_base36_17-1.1.1-1PGSTY.el8.x86_64.rpmPIGSTY · 1.1.1 · 24.9KiBPIGSTY 1.1.1el8.x86_64.pg16 : pg_base36_16×pg_base36_16-1.1.1-1PGSTY.el8.x86_64.rpmPIGSTY · 1.1.1 · 24.9KiBPIGSTY 1.1.1el8.x86_64.pg15 : pg_base36_15×pg_base36_15-1.1.1-1PGSTY.el8.x86_64.rpmPIGSTY · 1.1.1 · 24.9KiBel8.aarch64N/APIGSTY 1.1.1el8.aarch64.pg18 : pg_base36_18×pg_base36_18-1.1.1-1PGSTY.el8.aarch64.rpmPIGSTY · 1.1.1 · 25.2KiBPIGSTY 1.1.1el8.aarch64.pg17 : pg_base36_17×pg_base36_17-1.1.1-1PGSTY.el8.aarch64.rpmPIGSTY · 1.1.1 · 25.0KiBPIGSTY 1.1.1el8.aarch64.pg16 : pg_base36_16×pg_base36_16-1.1.1-1PGSTY.el8.aarch64.rpmPIGSTY · 1.1.1 · 25.0KiBPIGSTY 1.1.1el8.aarch64.pg15 : pg_base36_15×pg_base36_15-1.1.1-1PGSTY.el8.aarch64.rpmPIGSTY · 1.1.1 · 25.0KiBel9.x86_64PIGSTY 1.1.1el9.x86_64.pg19 : pg_base36_19×pg_base36_19-1.1.1-1PGSTY.el9.x86_64.rpmPIGSTY · 1.1.1 · 25.0KiBPIGSTY 1.1.1el9.x86_64.pg18 : pg_base36_18×pg_base36_18-1.1.1-1PGSTY.el9.x86_64.rpmPIGSTY · 1.1.1 · 25.0KiBPIGSTY 1.1.1el9.x86_64.pg17 : pg_base36_17×pg_base36_17-1.1.1-1PGSTY.el9.x86_64.rpmPIGSTY · 1.1.1 · 24.8KiBPIGSTY 1.1.1el9.x86_64.pg16 : pg_base36_16×pg_base36_16-1.1.1-1PGSTY.el9.x86_64.rpmPIGSTY · 1.1.1 · 24.9KiBPIGSTY 1.1.1el9.x86_64.pg15 : pg_base36_15×pg_base36_15-1.1.1-1PGSTY.el9.x86_64.rpmPIGSTY · 1.1.1 · 24.8KiBel9.aarch64PIGSTY 1.1.1el9.aarch64.pg19 : pg_base36_19×pg_base36_19-1.1.1-1PGSTY.el9.aarch64.rpmPIGSTY · 1.1.1 · 25.0KiBPIGSTY 1.1.1el9.aarch64.pg18 : pg_base36_18×pg_base36_18-1.1.1-1PGSTY.el9.aarch64.rpmPIGSTY · 1.1.1 · 25.0KiBPIGSTY 1.1.1el9.aarch64.pg17 : pg_base36_17×pg_base36_17-1.1.1-1PGSTY.el9.aarch64.rpmPIGSTY · 1.1.1 · 24.8KiBPIGSTY 1.1.1el9.aarch64.pg16 : pg_base36_16×pg_base36_16-1.1.1-1PGSTY.el9.aarch64.rpmPIGSTY · 1.1.1 · 24.8KiBPIGSTY 1.1.1el9.aarch64.pg15 : pg_base36_15×pg_base36_15-1.1.1-1PGSTY.el9.aarch64.rpmPIGSTY · 1.1.1 · 24.8KiBel10.x86_64PIGSTY 1.1.1el10.x86_64.pg19 : pg_base36_19×pg_base36_19-1.1.1-1PGSTY.el10.x86_64.rpmPIGSTY · 1.1.1 · 25.2KiBPIGSTY 1.1.1el10.x86_64.pg18 : pg_base36_18×pg_base36_18-1.1.1-1PGSTY.el10.x86_64.rpmPIGSTY · 1.1.1 · 25.2KiBPIGSTY 1.1.1el10.x86_64.pg17 : pg_base36_17×pg_base36_17-1.1.1-1PGSTY.el10.x86_64.rpmPIGSTY · 1.1.1 · 24.8KiBPIGSTY 1.1.1el10.x86_64.pg16 : pg_base36_16×pg_base36_16-1.1.1-1PGSTY.el10.x86_64.rpmPIGSTY · 1.1.1 · 24.9KiBPIGSTY 1.1.1el10.x86_64.pg15 : pg_base36_15×pg_base36_15-1.1.1-1PGSTY.el10.x86_64.rpmPIGSTY · 1.1.1 · 24.8KiBel10.aarch64PIGSTY 1.1.1el10.aarch64.pg19 : pg_base36_19×pg_base36_19-1.1.1-1PGSTY.el10.aarch64.rpmPIGSTY · 1.1.1 · 25.3KiBPIGSTY 1.1.1el10.aarch64.pg18 : pg_base36_18×pg_base36_18-1.1.1-1PGSTY.el10.aarch64.rpmPIGSTY · 1.1.1 · 25.3KiBPIGSTY 1.1.1el10.aarch64.pg17 : pg_base36_17×pg_base36_17-1.1.1-1PGSTY.el10.aarch64.rpmPIGSTY · 1.1.1 · 25.1KiBPIGSTY 1.1.1el10.aarch64.pg16 : pg_base36_16×pg_base36_16-1.1.1-1PGSTY.el10.aarch64.rpmPIGSTY · 1.1.1 · 25.1KiBPIGSTY 1.1.1el10.aarch64.pg15 : pg_base36_15×pg_base36_15-1.1.1-1PGSTY.el10.aarch64.rpmPIGSTY · 1.1.1 · 25.1KiBd12.x86_64PIGSTY 1.1.1d12.x86_64.pg19 : postgresql-19-base36×postgresql-19-base36_1.1.1-1PGSTY~bookworm_amd64.debPIGSTY · 1.1.1 · 16.3KiBPIGSTY 1.1.1d12.x86_64.pg18 : postgresql-18-base36×postgresql-18-base36_1.1.1-1PGSTY~bookworm_amd64.debPIGSTY · 1.1.1 · 16.3KiBPIGSTY 1.1.1d12.x86_64.pg17 : postgresql-17-base36×postgresql-17-base36_1.1.1-1PGSTY~bookworm_amd64.debPIGSTY · 1.1.1 · 15.9KiBPIGSTY 1.1.1d12.x86_64.pg16 : postgresql-16-base36×postgresql-16-base36_1.1.1-1PGSTY~bookworm_amd64.debPIGSTY · 1.1.1 · 15.9KiBPIGSTY 1.1.1d12.x86_64.pg15 : postgresql-15-base36×postgresql-15-base36_1.1.1-1PGSTY~bookworm_amd64.debPIGSTY · 1.1.1 · 15.9KiBd12.aarch64PIGSTY 1.1.1d12.aarch64.pg19 : postgresql-19-base36×postgresql-19-base36_1.1.1-1PGSTY~bookworm_arm64.debPIGSTY · 1.1.1 · 16.3KiBPIGSTY 1.1.1d12.aarch64.pg18 : postgresql-18-base36×postgresql-18-base36_1.1.1-1PGSTY~bookworm_arm64.debPIGSTY · 1.1.1 · 16.3KiBPIGSTY 1.1.1d12.aarch64.pg17 : postgresql-17-base36×postgresql-17-base36_1.1.1-1PGSTY~bookworm_arm64.debPIGSTY · 1.1.1 · 16.1KiBPIGSTY 1.1.1d12.aarch64.pg16 : postgresql-16-base36×postgresql-16-base36_1.1.1-1PGSTY~bookworm_arm64.debPIGSTY · 1.1.1 · 16.1KiBPIGSTY 1.1.1d12.aarch64.pg15 : postgresql-15-base36×postgresql-15-base36_1.1.1-1PGSTY~bookworm_arm64.debPIGSTY · 1.1.1 · 16.1KiBd13.x86_64PIGSTY 1.1.1d13.x86_64.pg19 : postgresql-19-base36×postgresql-19-base36_1.1.1-1PGSTY~trixie_amd64.debPIGSTY · 1.1.1 · 16.4KiBPIGSTY 1.1.1d13.x86_64.pg18 : postgresql-18-base36×postgresql-18-base36_1.1.1-1PGSTY~trixie_amd64.debPIGSTY · 1.1.1 · 16.4KiBPIGSTY 1.1.1d13.x86_64.pg17 : postgresql-17-base36×postgresql-17-base36_1.1.1-1PGSTY~trixie_amd64.debPIGSTY · 1.1.1 · 16.0KiBPIGSTY 1.1.1d13.x86_64.pg16 : postgresql-16-base36×postgresql-16-base36_1.1.1-1PGSTY~trixie_amd64.debPIGSTY · 1.1.1 · 16.0KiBPIGSTY 1.1.1d13.x86_64.pg15 : postgresql-15-base36×postgresql-15-base36_1.1.1-1PGSTY~trixie_amd64.debPIGSTY · 1.1.1 · 16.0KiBd13.aarch64PIGSTY 1.1.1d13.aarch64.pg19 : postgresql-19-base36×postgresql-19-base36_1.1.1-1PGSTY~trixie_arm64.debPIGSTY · 1.1.1 · 16.4KiBPIGSTY 1.1.1d13.aarch64.pg18 : postgresql-18-base36×postgresql-18-base36_1.1.1-1PGSTY~trixie_arm64.debPIGSTY · 1.1.1 · 16.4KiBPIGSTY 1.1.1d13.aarch64.pg17 : postgresql-17-base36×postgresql-17-base36_1.1.1-1PGSTY~trixie_arm64.debPIGSTY · 1.1.1 · 16.2KiBPIGSTY 1.1.1d13.aarch64.pg16 : postgresql-16-base36×postgresql-16-base36_1.1.1-1PGSTY~trixie_arm64.debPIGSTY · 1.1.1 · 16.2KiBPIGSTY 1.1.1d13.aarch64.pg15 : postgresql-15-base36×postgresql-15-base36_1.1.1-1PGSTY~trixie_arm64.debPIGSTY · 1.1.1 · 16.2KiBu22.x86_64PIGSTY 1.1.1u22.x86_64.pg19 : postgresql-19-base36×postgresql-19-base36_1.1.1-1PGSTY~jammy_amd64.debPIGSTY · 1.1.1 · 16.6KiBPIGSTY 1.1.1u22.x86_64.pg18 : postgresql-18-base36×postgresql-18-base36_1.1.1-1PGSTY~jammy_amd64.debPIGSTY · 1.1.1 · 16.6KiBPIGSTY 1.1.1u22.x86_64.pg17 : postgresql-17-base36×postgresql-17-base36_1.1.1-1PGSTY~jammy_amd64.debPIGSTY · 1.1.1 · 16.8KiBPIGSTY 1.1.1u22.x86_64.pg16 : postgresql-16-base36×postgresql-16-base36_1.1.1-1PGSTY~jammy_amd64.debPIGSTY · 1.1.1 · 16.8KiBPIGSTY 1.1.1u22.x86_64.pg15 : postgresql-15-base36×postgresql-15-base36_1.1.1-1PGSTY~jammy_amd64.debPIGSTY · 1.1.1 · 16.7KiBu22.aarch64PIGSTY 1.1.1u22.aarch64.pg19 : postgresql-19-base36×postgresql-19-base36_1.1.1-1PGSTY~jammy_arm64.debPIGSTY · 1.1.1 · 16.4KiBPIGSTY 1.1.1u22.aarch64.pg18 : postgresql-18-base36×postgresql-18-base36_1.1.1-1PGSTY~jammy_arm64.debPIGSTY · 1.1.1 · 16.4KiBPIGSTY 1.1.1u22.aarch64.pg17 : postgresql-17-base36×postgresql-17-base36_1.1.1-1PGSTY~jammy_arm64.debPIGSTY · 1.1.1 · 16.6KiBPIGSTY 1.1.1u22.aarch64.pg16 : postgresql-16-base36×postgresql-16-base36_1.1.1-1PGSTY~jammy_arm64.debPIGSTY · 1.1.1 · 16.6KiBPIGSTY 1.1.1u22.aarch64.pg15 : postgresql-15-base36×postgresql-15-base36_1.1.1-1PGSTY~jammy_arm64.debPIGSTY · 1.1.1 · 16.6KiBu24.x86_64PIGSTY 1.1.1u24.x86_64.pg19 : postgresql-19-base36×postgresql-19-base36_1.1.1-1PGSTY~noble_amd64.debPIGSTY · 1.1.1 · 17.0KiBPIGSTY 1.1.1u24.x86_64.pg18 : postgresql-18-base36×postgresql-18-base36_1.1.1-1PGSTY~noble_amd64.debPIGSTY · 1.1.1 · 17.0KiBPIGSTY 1.1.1u24.x86_64.pg17 : postgresql-17-base36×postgresql-17-base36_1.1.1-1PGSTY~noble_amd64.debPIGSTY · 1.1.1 · 16.6KiBPIGSTY 1.1.1u24.x86_64.pg16 : postgresql-16-base36×postgresql-16-base36_1.1.1-1PGSTY~noble_amd64.debPIGSTY · 1.1.1 · 16.6KiBPIGSTY 1.1.1u24.x86_64.pg15 : postgresql-15-base36×postgresql-15-base36_1.1.1-1PGSTY~noble_amd64.debPIGSTY · 1.1.1 · 16.6KiBu24.aarch64PIGSTY 1.1.1u24.aarch64.pg19 : postgresql-19-base36×postgresql-19-base36_1.1.1-1PGSTY~noble_arm64.debPIGSTY · 1.1.1 · 17.1KiBPIGSTY 1.1.1u24.aarch64.pg18 : postgresql-18-base36×postgresql-18-base36_1.1.1-1PGSTY~noble_arm64.debPIGSTY · 1.1.1 · 17.1KiBPIGSTY 1.1.1u24.aarch64.pg17 : postgresql-17-base36×postgresql-17-base36_1.1.1-1PGSTY~noble_arm64.debPIGSTY · 1.1.1 · 16.8KiBPIGSTY 1.1.1u24.aarch64.pg16 : postgresql-16-base36×postgresql-16-base36_1.1.1-1PGSTY~noble_arm64.debPIGSTY · 1.1.1 · 16.8KiBPIGSTY 1.1.1u24.aarch64.pg15 : postgresql-15-base36×postgresql-15-base36_1.1.1-1PGSTY~noble_arm64.debPIGSTY · 1.1.1 · 16.8KiBu26.x86_64PIGSTY 1.1.1u26.x86_64.pg19 : postgresql-19-base36×postgresql-19-base36_1.1.1-1PGSTY~resolute_amd64.debPIGSTY · 1.1.1 · 16.9KiBPIGSTY 1.1.1u26.x86_64.pg18 : postgresql-18-base36×postgresql-18-base36_1.1.1-1PGSTY~resolute_amd64.debPIGSTY · 1.1.1 · 16.9KiBPIGSTY 1.1.1u26.x86_64.pg17 : postgresql-17-base36×postgresql-17-base36_1.1.1-1PGSTY~resolute_amd64.debPIGSTY · 1.1.1 · 16.5KiBPIGSTY 1.1.1u26.x86_64.pg16 : postgresql-16-base36×postgresql-16-base36_1.1.1-1PGSTY~resolute_amd64.debPIGSTY · 1.1.1 · 16.5KiBPIGSTY 1.1.1u26.x86_64.pg15 : postgresql-15-base36×postgresql-15-base36_1.1.1-1PGSTY~resolute_amd64.debPIGSTY · 1.1.1 · 16.5KiBu26.aarch64PIGSTY 1.1.1u26.aarch64.pg19 : postgresql-19-base36×postgresql-19-base36_1.1.1-1PGSTY~resolute_arm64.debPIGSTY · 1.1.1 · 17.1KiBPIGSTY 1.1.1u26.aarch64.pg18 : postgresql-18-base36×postgresql-18-base36_1.1.1-1PGSTY~resolute_arm64.debPIGSTY · 1.1.1 · 17.1KiBPIGSTY 1.1.1u26.aarch64.pg17 : postgresql-17-base36×postgresql-17-base36_1.1.1-1PGSTY~resolute_arm64.debPIGSTY · 1.1.1 · 16.9KiBPIGSTY 1.1.1u26.aarch64.pg16 : postgresql-16-base36×postgresql-16-base36_1.1.1-1PGSTY~resolute_arm64.debPIGSTY · 1.1.1 · 16.8KiBPIGSTY 1.1.1u26.aarch64.pg15 : postgresql-15-base36×postgresql-15-base36_1.1.1-1PGSTY~resolute_arm64.debPIGSTY · 1.1.1 · 16.9KiB构建您可以使用 pig build 命令构建 pg_base36 扩展的 RPM / DEB 包: pig build pkg pg_base36 # 构建 RPM / DEB 包安装您可以直接安装 pg_base36 扩展包的预置二进制包,首先确保 PGDG 和 PIGSTY 仓库已经添加并启用: pig repo add pgsql -u # 添加仓库并更新缓存使用 pig 或者是 apt/yum/dnf 安装扩展:安装 pig install pg_base36; # 当前活跃 PG 版本安装pig pig ext install -y pg_base36 -v 19 # PG 19 pig ext install -y pg_base36 -v 18 # PG 18 pig ext install -y pg_base36 -v 17 # PG 17 pig ext install -y pg_base36 -v 16 # PG 16 pig ext install -y pg_base36 -v 15 # PG 15dnf dnf install -y pg_base36_19 # PG 19 dnf install -y pg_base36_18 # PG 18 dnf install -y pg_base36_17 # PG 17 dnf install -y pg_base36_16 # PG 16 dnf install -y pg_base36_15 # PG 15apt apt install -y postgresql-19-base36 # PG 19 apt install -y postgresql-18-base36 # PG 18 apt install -y postgresql-17-base36 # PG 17 apt install -y postgresql-16-base36 # PG 16 apt install -y postgresql-15-base36 # PG 15创建扩展: CREATE EXTENSION base36;用法base36: PostgreSQL 的 base36 编解码数据类型提供使用 base36 方案进行编码和解码的数据类型,支持 base36 与整数类型之间的转换。 CREATE EXTENSION base36;类型类型存储最大字符串长度最大数值base364 字节(int)6 字符2,147,483,647bigbase368 字节(bigint)13 字符9,223,372,036,854,775,807示例 -- 将整数编码为 base36 SELECT 1234567::base36; -- 'qglj' -- 将 base36 解码为整数 SELECT 'qglj'::base36::int; -- 1234567 -- 用于更大数值的 bigbase36 SELECT 9223372036854775807::bigbase36; -- 'i1y004og0svr' SELECT 'i1y004og0svr'::bigbase36::bigint; -- 9223372036854775807这个页面对您有帮助吗? 有帮助 没帮助感谢反馈,我们会据此改进本页内容。遇到什么问题?(可选) 缺少必要信息 内容错误或已过时 操作步骤没有生效 内容难以理解修改反馈