PG 扩展目录扩展详情base62操作查看编辑历史编辑此页添加子页面提交文档问题提交项目问题base62Base62编码解码扩展仓库adjust/pg-base62https://github.com/adjust/pg-base62源码pg-base62-0.0.1.tar.gzpg-base62-0.0.1.tar.gz概览扩展包名版本分类许可证语言pg_base620.0.1FUNCMITCID扩展名BinLibLoadCreateTrustReloc模式4820base62否是否是否是-相关扩展base36 pg_base58 pg_hashids url_encode pg_slug_gen typeid pgqr pg_lexo版本类型仓库版本PG 大版本包名依赖EXTPIGSTY0.0.11817161514pg_base62-RPMPIGSTY0.0.11817161514pg_base62_$v-DEBPIGSTY0.0.11817161514postgresql-$v-base62-OS / PGPG19PG18PG17PG16PG15el8.x86_64N/APIGSTY 0.0.1el8.x86_64.pg18 : pg_base62_18×pg_base62_18-0.0.1-1PGSTY.el8.x86_64.rpmPIGSTY · 0.0.1 · 34.8KiBPIGSTY 0.0.1el8.x86_64.pg17 : pg_base62_17×pg_base62_17-0.0.1-1PGSTY.el8.x86_64.rpmPIGSTY · 0.0.1 · 34.8KiBPIGSTY 0.0.1el8.x86_64.pg16 : pg_base62_16×pg_base62_16-0.0.1-1PGSTY.el8.x86_64.rpmPIGSTY · 0.0.1 · 34.8KiBPIGSTY 0.0.1el8.x86_64.pg15 : pg_base62_15×pg_base62_15-0.0.1-1PGSTY.el8.x86_64.rpmPIGSTY · 0.0.1 · 34.8KiBel8.aarch64N/APIGSTY 0.0.1el8.aarch64.pg18 : pg_base62_18×pg_base62_18-0.0.1-1PGSTY.el8.aarch64.rpmPIGSTY · 0.0.1 · 34.4KiBPIGSTY 0.0.1el8.aarch64.pg17 : pg_base62_17×pg_base62_17-0.0.1-1PGSTY.el8.aarch64.rpmPIGSTY · 0.0.1 · 34.4KiBPIGSTY 0.0.1el8.aarch64.pg16 : pg_base62_16×pg_base62_16-0.0.1-1PGSTY.el8.aarch64.rpmPIGSTY · 0.0.1 · 34.4KiBPIGSTY 0.0.1el8.aarch64.pg15 : pg_base62_15×pg_base62_15-0.0.1-1PGSTY.el8.aarch64.rpmPIGSTY · 0.0.1 · 34.4KiBel9.x86_64PIGSTY 0.0.1el9.x86_64.pg19 : pg_base62_19×pg_base62_19-0.0.1-1PGSTY.el9.x86_64.rpmPIGSTY · 0.0.1 · 34.5KiBPIGSTY 0.0.1el9.x86_64.pg18 : pg_base62_18×pg_base62_18-0.0.1-1PGSTY.el9.x86_64.rpmPIGSTY · 0.0.1 · 34.6KiBPIGSTY 0.0.1el9.x86_64.pg17 : pg_base62_17×pg_base62_17-0.0.1-1PGSTY.el9.x86_64.rpmPIGSTY · 0.0.1 · 34.6KiBPIGSTY 0.0.1el9.x86_64.pg16 : pg_base62_16×pg_base62_16-0.0.1-1PGSTY.el9.x86_64.rpmPIGSTY · 0.0.1 · 34.6KiBPIGSTY 0.0.1el9.x86_64.pg15 : pg_base62_15×pg_base62_15-0.0.1-1PGSTY.el9.x86_64.rpmPIGSTY · 0.0.1 · 34.6KiBel9.aarch64PIGSTY 0.0.1el9.aarch64.pg19 : pg_base62_19×pg_base62_19-0.0.1-1PGSTY.el9.aarch64.rpmPIGSTY · 0.0.1 · 34.6KiBPIGSTY 0.0.1el9.aarch64.pg18 : pg_base62_18×pg_base62_18-0.0.1-1PGSTY.el9.aarch64.rpmPIGSTY · 0.0.1 · 34.5KiBPIGSTY 0.0.1el9.aarch64.pg17 : pg_base62_17×pg_base62_17-0.0.1-1PGSTY.el9.aarch64.rpmPIGSTY · 0.0.1 · 34.5KiBPIGSTY 0.0.1el9.aarch64.pg16 : pg_base62_16×pg_base62_16-0.0.1-1PGSTY.el9.aarch64.rpmPIGSTY · 0.0.1 · 34.5KiBPIGSTY 0.0.1el9.aarch64.pg15 : pg_base62_15×pg_base62_15-0.0.1-1PGSTY.el9.aarch64.rpmPIGSTY · 0.0.1 · 34.5KiBel10.x86_64PIGSTY 0.0.1el10.x86_64.pg19 : pg_base62_19×pg_base62_19-0.0.1-1PGSTY.el10.x86_64.rpmPIGSTY · 0.0.1 · 35.0KiBPIGSTY 0.0.1el10.x86_64.pg18 : pg_base62_18×pg_base62_18-0.0.1-1PGSTY.el10.x86_64.rpmPIGSTY · 0.0.1 · 35.0KiBPIGSTY 0.0.1el10.x86_64.pg17 : pg_base62_17×pg_base62_17-0.0.1-1PGSTY.el10.x86_64.rpmPIGSTY · 0.0.1 · 35.0KiBPIGSTY 0.0.1el10.x86_64.pg16 : pg_base62_16×pg_base62_16-0.0.1-1PGSTY.el10.x86_64.rpmPIGSTY · 0.0.1 · 35.0KiBPIGSTY 0.0.1el10.x86_64.pg15 : pg_base62_15×pg_base62_15-0.0.1-1PGSTY.el10.x86_64.rpmPIGSTY · 0.0.1 · 35.0KiBel10.aarch64PIGSTY 0.0.1el10.aarch64.pg19 : pg_base62_19×pg_base62_19-0.0.1-1PGSTY.el10.aarch64.rpmPIGSTY · 0.0.1 · 34.8KiBPIGSTY 0.0.1el10.aarch64.pg18 : pg_base62_18×pg_base62_18-0.0.1-1PGSTY.el10.aarch64.rpmPIGSTY · 0.0.1 · 34.8KiBPIGSTY 0.0.1el10.aarch64.pg17 : pg_base62_17×pg_base62_17-0.0.1-1PGSTY.el10.aarch64.rpmPIGSTY · 0.0.1 · 34.7KiBPIGSTY 0.0.1el10.aarch64.pg16 : pg_base62_16×pg_base62_16-0.0.1-1PGSTY.el10.aarch64.rpmPIGSTY · 0.0.1 · 34.7KiBPIGSTY 0.0.1el10.aarch64.pg15 : pg_base62_15×pg_base62_15-0.0.1-1PGSTY.el10.aarch64.rpmPIGSTY · 0.0.1 · 34.7KiBd12.x86_64PIGSTY 0.0.1d12.x86_64.pg19 : postgresql-19-base62×postgresql-19-base62_0.0.1-1PGSTY~bookworm_amd64.debPIGSTY · 0.0.1 · 25.5KiBPIGSTY 0.0.1d12.x86_64.pg18 : postgresql-18-base62×postgresql-18-base62_0.0.1-1PGSTY~bookworm_amd64.debPIGSTY · 0.0.1 · 25.5KiBPIGSTY 0.0.1d12.x86_64.pg17 : postgresql-17-base62×postgresql-17-base62_0.0.1-1PGSTY~bookworm_amd64.debPIGSTY · 0.0.1 · 25.5KiBPIGSTY 0.0.1d12.x86_64.pg16 : postgresql-16-base62×postgresql-16-base62_0.0.1-1PGSTY~bookworm_amd64.debPIGSTY · 0.0.1 · 25.5KiBPIGSTY 0.0.1d12.x86_64.pg15 : postgresql-15-base62×postgresql-15-base62_0.0.1-1PGSTY~bookworm_amd64.debPIGSTY · 0.0.1 · 25.6KiBd12.aarch64PIGSTY 0.0.1d12.aarch64.pg19 : postgresql-19-base62×postgresql-19-base62_0.0.1-1PGSTY~bookworm_arm64.debPIGSTY · 0.0.1 · 25.3KiBPIGSTY 0.0.1d12.aarch64.pg18 : postgresql-18-base62×postgresql-18-base62_0.0.1-1PGSTY~bookworm_arm64.debPIGSTY · 0.0.1 · 25.3KiBPIGSTY 0.0.1d12.aarch64.pg17 : postgresql-17-base62×postgresql-17-base62_0.0.1-1PGSTY~bookworm_arm64.debPIGSTY · 0.0.1 · 25.4KiBPIGSTY 0.0.1d12.aarch64.pg16 : postgresql-16-base62×postgresql-16-base62_0.0.1-1PGSTY~bookworm_arm64.debPIGSTY · 0.0.1 · 25.4KiBPIGSTY 0.0.1d12.aarch64.pg15 : postgresql-15-base62×postgresql-15-base62_0.0.1-1PGSTY~bookworm_arm64.debPIGSTY · 0.0.1 · 25.5KiBd13.x86_64PIGSTY 0.0.1d13.x86_64.pg19 : postgresql-19-base62×postgresql-19-base62_0.0.1-1PGSTY~trixie_amd64.debPIGSTY · 0.0.1 · 25.9KiBPIGSTY 0.0.1d13.x86_64.pg18 : postgresql-18-base62×postgresql-18-base62_0.0.1-1PGSTY~trixie_amd64.debPIGSTY · 0.0.1 · 25.8KiBPIGSTY 0.0.1d13.x86_64.pg17 : postgresql-17-base62×postgresql-17-base62_0.0.1-1PGSTY~trixie_amd64.debPIGSTY · 0.0.1 · 25.8KiBPIGSTY 0.0.1d13.x86_64.pg16 : postgresql-16-base62×postgresql-16-base62_0.0.1-1PGSTY~trixie_amd64.debPIGSTY · 0.0.1 · 25.8KiBPIGSTY 0.0.1d13.x86_64.pg15 : postgresql-15-base62×postgresql-15-base62_0.0.1-1PGSTY~trixie_amd64.debPIGSTY · 0.0.1 · 26.0KiBd13.aarch64PIGSTY 0.0.1d13.aarch64.pg19 : postgresql-19-base62×postgresql-19-base62_0.0.1-1PGSTY~trixie_arm64.debPIGSTY · 0.0.1 · 25.8KiBPIGSTY 0.0.1d13.aarch64.pg18 : postgresql-18-base62×postgresql-18-base62_0.0.1-1PGSTY~trixie_arm64.debPIGSTY · 0.0.1 · 25.7KiBPIGSTY 0.0.1d13.aarch64.pg17 : postgresql-17-base62×postgresql-17-base62_0.0.1-1PGSTY~trixie_arm64.debPIGSTY · 0.0.1 · 25.6KiBPIGSTY 0.0.1d13.aarch64.pg16 : postgresql-16-base62×postgresql-16-base62_0.0.1-1PGSTY~trixie_arm64.debPIGSTY · 0.0.1 · 25.6KiBPIGSTY 0.0.1d13.aarch64.pg15 : postgresql-15-base62×postgresql-15-base62_0.0.1-1PGSTY~trixie_arm64.debPIGSTY · 0.0.1 · 25.8KiBu22.x86_64PIGSTY 0.0.1u22.x86_64.pg19 : postgresql-19-base62×postgresql-19-base62_0.0.1-1PGSTY~jammy_amd64.debPIGSTY · 0.0.1 · 26.7KiBPIGSTY 0.0.1u22.x86_64.pg18 : postgresql-18-base62×postgresql-18-base62_0.0.1-1PGSTY~jammy_amd64.debPIGSTY · 0.0.1 · 26.7KiBPIGSTY 0.0.1u22.x86_64.pg17 : postgresql-17-base62×postgresql-17-base62_0.0.1-1PGSTY~jammy_amd64.debPIGSTY · 0.0.1 · 27.2KiBPIGSTY 0.0.1u22.x86_64.pg16 : postgresql-16-base62×postgresql-16-base62_0.0.1-1PGSTY~jammy_amd64.debPIGSTY · 0.0.1 · 27.2KiBPIGSTY 0.0.1u22.x86_64.pg15 : postgresql-15-base62×postgresql-15-base62_0.0.1-1PGSTY~jammy_amd64.debPIGSTY · 0.0.1 · 27.2KiBu22.aarch64PIGSTY 0.0.1u22.aarch64.pg19 : postgresql-19-base62×postgresql-19-base62_0.0.1-1PGSTY~jammy_arm64.debPIGSTY · 0.0.1 · 26.8KiBPIGSTY 0.0.1u22.aarch64.pg18 : postgresql-18-base62×postgresql-18-base62_0.0.1-1PGSTY~jammy_arm64.debPIGSTY · 0.0.1 · 26.8KiBPIGSTY 0.0.1u22.aarch64.pg17 : postgresql-17-base62×postgresql-17-base62_0.0.1-1PGSTY~jammy_arm64.debPIGSTY · 0.0.1 · 27.2KiBPIGSTY 0.0.1u22.aarch64.pg16 : postgresql-16-base62×postgresql-16-base62_0.0.1-1PGSTY~jammy_arm64.debPIGSTY · 0.0.1 · 27.2KiBPIGSTY 0.0.1u22.aarch64.pg15 : postgresql-15-base62×postgresql-15-base62_0.0.1-1PGSTY~jammy_arm64.debPIGSTY · 0.0.1 · 27.2KiBu24.x86_64PIGSTY 0.0.1u24.x86_64.pg19 : postgresql-19-base62×postgresql-19-base62_0.0.1-1PGSTY~noble_amd64.debPIGSTY · 0.0.1 · 27.1KiBPIGSTY 0.0.1u24.x86_64.pg18 : postgresql-18-base62×postgresql-18-base62_0.0.1-1PGSTY~noble_amd64.debPIGSTY · 0.0.1 · 27.0KiBPIGSTY 0.0.1u24.x86_64.pg17 : postgresql-17-base62×postgresql-17-base62_0.0.1-1PGSTY~noble_amd64.debPIGSTY · 0.0.1 · 27.1KiBPIGSTY 0.0.1u24.x86_64.pg16 : postgresql-16-base62×postgresql-16-base62_0.0.1-1PGSTY~noble_amd64.debPIGSTY · 0.0.1 · 27.1KiBPIGSTY 0.0.1u24.x86_64.pg15 : postgresql-15-base62×postgresql-15-base62_0.0.1-1PGSTY~noble_amd64.debPIGSTY · 0.0.1 · 27.2KiBu24.aarch64PIGSTY 0.0.1u24.aarch64.pg19 : postgresql-19-base62×postgresql-19-base62_0.0.1-1PGSTY~noble_arm64.debPIGSTY · 0.0.1 · 26.9KiBPIGSTY 0.0.1u24.aarch64.pg18 : postgresql-18-base62×postgresql-18-base62_0.0.1-1PGSTY~noble_arm64.debPIGSTY · 0.0.1 · 26.9KiBPIGSTY 0.0.1u24.aarch64.pg17 : postgresql-17-base62×postgresql-17-base62_0.0.1-1PGSTY~noble_arm64.debPIGSTY · 0.0.1 · 26.9KiBPIGSTY 0.0.1u24.aarch64.pg16 : postgresql-16-base62×postgresql-16-base62_0.0.1-1PGSTY~noble_arm64.debPIGSTY · 0.0.1 · 26.9KiBPIGSTY 0.0.1u24.aarch64.pg15 : postgresql-15-base62×postgresql-15-base62_0.0.1-1PGSTY~noble_arm64.debPIGSTY · 0.0.1 · 27.1KiBu26.x86_64PIGSTY 0.0.1u26.x86_64.pg19 : postgresql-19-base62×postgresql-19-base62_0.0.1-1PGSTY~resolute_amd64.debPIGSTY · 0.0.1 · 27.2KiBPIGSTY 0.0.1u26.x86_64.pg18 : postgresql-18-base62×postgresql-18-base62_0.0.1-1PGSTY~resolute_amd64.debPIGSTY · 0.0.1 · 27.2KiBPIGSTY 0.0.1u26.x86_64.pg17 : postgresql-17-base62×postgresql-17-base62_0.0.1-1PGSTY~resolute_amd64.debPIGSTY · 0.0.1 · 27.2KiBPIGSTY 0.0.1u26.x86_64.pg16 : postgresql-16-base62×postgresql-16-base62_0.0.1-1PGSTY~resolute_amd64.debPIGSTY · 0.0.1 · 27.2KiBPIGSTY 0.0.1u26.x86_64.pg15 : postgresql-15-base62×postgresql-15-base62_0.0.1-1PGSTY~resolute_amd64.debPIGSTY · 0.0.1 · 27.3KiBu26.aarch64PIGSTY 0.0.1u26.aarch64.pg19 : postgresql-19-base62×postgresql-19-base62_0.0.1-1PGSTY~resolute_arm64.debPIGSTY · 0.0.1 · 27.1KiBPIGSTY 0.0.1u26.aarch64.pg18 : postgresql-18-base62×postgresql-18-base62_0.0.1-1PGSTY~resolute_arm64.debPIGSTY · 0.0.1 · 27.1KiBPIGSTY 0.0.1u26.aarch64.pg17 : postgresql-17-base62×postgresql-17-base62_0.0.1-1PGSTY~resolute_arm64.debPIGSTY · 0.0.1 · 27.0KiBPIGSTY 0.0.1u26.aarch64.pg16 : postgresql-16-base62×postgresql-16-base62_0.0.1-1PGSTY~resolute_arm64.debPIGSTY · 0.0.1 · 27.0KiBPIGSTY 0.0.1u26.aarch64.pg15 : postgresql-15-base62×postgresql-15-base62_0.0.1-1PGSTY~resolute_arm64.debPIGSTY · 0.0.1 · 27.2KiB构建您可以使用 pig build 命令构建 pg_base62 扩展的 RPM / DEB 包: pig build pkg pg_base62 # 构建 RPM / DEB 包安装您可以直接安装 pg_base62 扩展包的预置二进制包,首先确保 PGDG 和 PIGSTY 仓库已经添加并启用: pig repo add pgsql -u # 添加仓库并更新缓存使用 pig 或者是 apt/yum/dnf 安装扩展:安装 pig install pg_base62; # 当前活跃 PG 版本安装pig pig ext install -y pg_base62 -v 19 # PG 19 pig ext install -y pg_base62 -v 18 # PG 18 pig ext install -y pg_base62 -v 17 # PG 17 pig ext install -y pg_base62 -v 16 # PG 16 pig ext install -y pg_base62 -v 15 # PG 15dnf dnf install -y pg_base62_19 # PG 19 dnf install -y pg_base62_18 # PG 18 dnf install -y pg_base62_17 # PG 17 dnf install -y pg_base62_16 # PG 16 dnf install -y pg_base62_15 # PG 15apt apt install -y postgresql-19-base62 # PG 19 apt install -y postgresql-18-base62 # PG 18 apt install -y postgresql-17-base62 # PG 17 apt install -y postgresql-16-base62 # PG 16 apt install -y postgresql-15-base62 # PG 15创建扩展: CREATE EXTENSION base62;用法base62: PostgreSQL 的 base62 编解码数据类型提供使用 base62 方案(0-9、A-Z、a-z)进行编码和解码的数据类型。 CREATE EXTENSION base62;类型类型存储最大字符串长度最大数值base624 字节(int)6 字符2,147,483,647bigbase628 字节(bigint)11 字符9,223,372,036,854,775,807hugebase6216 字节20 字符(bytea 转换)示例 -- 编码/解码 base62 SELECT 2147483647::base62; -- '2LKcb1' SELECT '2LKcb1'::base62::int; -- 2147483647 -- 用于更大数值的 bigbase62 SELECT 9223372036854775807::bigbase62; -- 'AzL8n0Y58m7' SELECT 'AzL8n0Y58m7'::bigbase62::bigint; -- 9223372036854775807 -- hugebase62 与 bytea 转换 SELECT 'AzL8n0Y58m7AzL8n0Y58'::hugebase62; SELECT 'AzL8n0Y58m7AzL8n0Y58'::hugebase62::bytea; SELECT '\x960c06065a6ed8ffff1e7149f40b1800'::bytea::hugebase62; -- 注意:base62 区分大小写 SELECT '2lkcb'::base62::int; -- 40933305 SELECT '2LKCB'::base62::int; -- 34635195这个页面对您有帮助吗? 有帮助 没帮助感谢反馈,我们会据此改进本页内容。遇到什么问题?(可选) 缺少必要信息 内容错误或已过时 操作步骤没有生效 内容难以理解修改反馈