跳转到主要内容

pg_base58

Base58 Encoder/Decoder Extension for PostgreSQL

pg_base58 : Base58 Encoder/Decoder Extension for PostgreSQL

Overview

ID Extension Package Version Category License Language
4830 pg_base58 pg_base58 0.0.1 FUNC MIT Rust
Attribute Has Binary Has Library Need Load Has DDL Relocatable Trusted
--s-d-- No Yes No Yes no no

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT PIGSTY 0.0.1 18 17 16 15 14 pg_base58 -
RPM PIGSTY 0.0.1 18 17 16 15 14 pg_base58_$v -
DEB PIGSTY 0.0.1 18 17 16 15 14 postgresql-$v-pg-base58 -
Linux / PG PG18 PG17 PG16 PG15 PG14
el8.x86_64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
el8.aarch64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
el9.x86_64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
el9.aarch64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
el10.x86_64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
el10.aarch64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
d12.x86_64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
d12.aarch64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
d13.x86_64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
d13.aarch64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
u22.x86_64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
u22.aarch64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
u24.x86_64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
u24.aarch64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
u26.x86_64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
u26.aarch64 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1 PIGSTY 0.0.1
Package Version OS ORG SIZE File URL
pg_base58_18 0.0.1 el8.x86_64 pigsty 850.3 KiB pg_base58_18-0.0.1-4PIGSTY.el8.x86_64.rpm
pg_base58_18 0.0.1 el8.aarch64 pigsty 763.5 KiB pg_base58_18-0.0.1-4PIGSTY.el8.aarch64.rpm
pg_base58_18 0.0.1 el9.x86_64 pigsty 860.5 KiB pg_base58_18-0.0.1-4PIGSTY.el9.x86_64.rpm
pg_base58_18 0.0.1 el9.aarch64 pigsty 809.2 KiB pg_base58_18-0.0.1-4PIGSTY.el9.aarch64.rpm
pg_base58_18 0.0.1 el10.x86_64 pigsty 859.9 KiB pg_base58_18-0.0.1-4PIGSTY.el10.x86_64.rpm
pg_base58_18 0.0.1 el10.aarch64 pigsty 786.5 KiB pg_base58_18-0.0.1-4PIGSTY.el10.aarch64.rpm
postgresql-18-pg-base58 0.0.1 d12.x86_64 pigsty 681.1 KiB postgresql-18-pg-base58_0.0.1-5PIGSTY~bookworm_amd64.deb
postgresql-18-pg-base58 0.0.1 d12.aarch64 pigsty 567.9 KiB postgresql-18-pg-base58_0.0.1-5PIGSTY~bookworm_arm64.deb
postgresql-18-pg-base58 0.0.1 d13.x86_64 pigsty 680.2 KiB postgresql-18-pg-base58_0.0.1-5PIGSTY~trixie_amd64.deb
postgresql-18-pg-base58 0.0.1 d13.aarch64 pigsty 568.2 KiB postgresql-18-pg-base58_0.0.1-5PIGSTY~trixie_arm64.deb
postgresql-18-pg-base58 0.0.1 u22.x86_64 pigsty 758.2 KiB postgresql-18-pg-base58_0.0.1-5PIGSTY~jammy_amd64.deb
postgresql-18-pg-base58 0.0.1 u22.aarch64 pigsty 672.3 KiB postgresql-18-pg-base58_0.0.1-5PIGSTY~jammy_arm64.deb
postgresql-18-pg-base58 0.0.1 u24.x86_64 pigsty 748.4 KiB postgresql-18-pg-base58_0.0.1-5PIGSTY~noble_amd64.deb
postgresql-18-pg-base58 0.0.1 u24.aarch64 pigsty 661.1 KiB postgresql-18-pg-base58_0.0.1-5PIGSTY~noble_arm64.deb
postgresql-18-pg-base58 0.0.1 u26.x86_64 pigsty 744.7 KiB postgresql-18-pg-base58_0.0.1-5PIGSTY~resolute_amd64.deb
postgresql-18-pg-base58 0.0.1 u26.aarch64 pigsty 660.3 KiB postgresql-18-pg-base58_0.0.1-5PIGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pg_base58_17 0.0.1 el8.x86_64 pigsty 847.7 KiB pg_base58_17-0.0.1-4PIGSTY.el8.x86_64.rpm
pg_base58_17 0.0.1 el8.aarch64 pigsty 760.5 KiB pg_base58_17-0.0.1-4PIGSTY.el8.aarch64.rpm
pg_base58_17 0.0.1 el9.x86_64 pigsty 857.5 KiB pg_base58_17-0.0.1-4PIGSTY.el9.x86_64.rpm
pg_base58_17 0.0.1 el9.aarch64 pigsty 806.6 KiB pg_base58_17-0.0.1-4PIGSTY.el9.aarch64.rpm
pg_base58_17 0.0.1 el10.x86_64 pigsty 857.7 KiB pg_base58_17-0.0.1-4PIGSTY.el10.x86_64.rpm
pg_base58_17 0.0.1 el10.aarch64 pigsty 786.2 KiB pg_base58_17-0.0.1-4PIGSTY.el10.aarch64.rpm
postgresql-17-pg-base58 0.0.1 d12.x86_64 pigsty 679.3 KiB postgresql-17-pg-base58_0.0.1-5PIGSTY~bookworm_amd64.deb
postgresql-17-pg-base58 0.0.1 d12.aarch64 pigsty 566.5 KiB postgresql-17-pg-base58_0.0.1-5PIGSTY~bookworm_arm64.deb
postgresql-17-pg-base58 0.0.1 d13.x86_64 pigsty 678.8 KiB postgresql-17-pg-base58_0.0.1-5PIGSTY~trixie_amd64.deb
postgresql-17-pg-base58 0.0.1 d13.aarch64 pigsty 566.9 KiB postgresql-17-pg-base58_0.0.1-5PIGSTY~trixie_arm64.deb
postgresql-17-pg-base58 0.0.1 u22.x86_64 pigsty 755.7 KiB postgresql-17-pg-base58_0.0.1-5PIGSTY~jammy_amd64.deb
postgresql-17-pg-base58 0.0.1 u22.aarch64 pigsty 669.2 KiB postgresql-17-pg-base58_0.0.1-5PIGSTY~jammy_arm64.deb
postgresql-17-pg-base58 0.0.1 u24.x86_64 pigsty 747.7 KiB postgresql-17-pg-base58_0.0.1-5PIGSTY~noble_amd64.deb
postgresql-17-pg-base58 0.0.1 u24.aarch64 pigsty 659.6 KiB postgresql-17-pg-base58_0.0.1-5PIGSTY~noble_arm64.deb
postgresql-17-pg-base58 0.0.1 u26.x86_64 pigsty 743.5 KiB postgresql-17-pg-base58_0.0.1-5PIGSTY~resolute_amd64.deb
postgresql-17-pg-base58 0.0.1 u26.aarch64 pigsty 658.0 KiB postgresql-17-pg-base58_0.0.1-5PIGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pg_base58_16 0.0.1 el8.x86_64 pigsty 846.0 KiB pg_base58_16-0.0.1-4PIGSTY.el8.x86_64.rpm
pg_base58_16 0.0.1 el8.aarch64 pigsty 758.4 KiB pg_base58_16-0.0.1-4PIGSTY.el8.aarch64.rpm
pg_base58_16 0.0.1 el9.x86_64 pigsty 855.3 KiB pg_base58_16-0.0.1-4PIGSTY.el9.x86_64.rpm
pg_base58_16 0.0.1 el9.aarch64 pigsty 804.9 KiB pg_base58_16-0.0.1-4PIGSTY.el9.aarch64.rpm
pg_base58_16 0.0.1 el10.x86_64 pigsty 854.8 KiB pg_base58_16-0.0.1-4PIGSTY.el10.x86_64.rpm
pg_base58_16 0.0.1 el10.aarch64 pigsty 785.3 KiB pg_base58_16-0.0.1-4PIGSTY.el10.aarch64.rpm
postgresql-16-pg-base58 0.0.1 d12.x86_64 pigsty 678.2 KiB postgresql-16-pg-base58_0.0.1-5PIGSTY~bookworm_amd64.deb
postgresql-16-pg-base58 0.0.1 d12.aarch64 pigsty 566.2 KiB postgresql-16-pg-base58_0.0.1-5PIGSTY~bookworm_arm64.deb
postgresql-16-pg-base58 0.0.1 d13.x86_64 pigsty 678.6 KiB postgresql-16-pg-base58_0.0.1-5PIGSTY~trixie_amd64.deb
postgresql-16-pg-base58 0.0.1 d13.aarch64 pigsty 566.4 KiB postgresql-16-pg-base58_0.0.1-5PIGSTY~trixie_arm64.deb
postgresql-16-pg-base58 0.0.1 u22.x86_64 pigsty 753.5 KiB postgresql-16-pg-base58_0.0.1-5PIGSTY~jammy_amd64.deb
postgresql-16-pg-base58 0.0.1 u22.aarch64 pigsty 668.5 KiB postgresql-16-pg-base58_0.0.1-5PIGSTY~jammy_arm64.deb
postgresql-16-pg-base58 0.0.1 u24.x86_64 pigsty 745.0 KiB postgresql-16-pg-base58_0.0.1-5PIGSTY~noble_amd64.deb
postgresql-16-pg-base58 0.0.1 u24.aarch64 pigsty 658.6 KiB postgresql-16-pg-base58_0.0.1-5PIGSTY~noble_arm64.deb
postgresql-16-pg-base58 0.0.1 u26.x86_64 pigsty 742.8 KiB postgresql-16-pg-base58_0.0.1-5PIGSTY~resolute_amd64.deb
postgresql-16-pg-base58 0.0.1 u26.aarch64 pigsty 656.9 KiB postgresql-16-pg-base58_0.0.1-5PIGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pg_base58_15 0.0.1 el8.x86_64 pigsty 836.7 KiB pg_base58_15-0.0.1-4PIGSTY.el8.x86_64.rpm
pg_base58_15 0.0.1 el8.aarch64 pigsty 749.6 KiB pg_base58_15-0.0.1-4PIGSTY.el8.aarch64.rpm
pg_base58_15 0.0.1 el9.x86_64 pigsty 846.8 KiB pg_base58_15-0.0.1-4PIGSTY.el9.x86_64.rpm
pg_base58_15 0.0.1 el9.aarch64 pigsty 792.7 KiB pg_base58_15-0.0.1-4PIGSTY.el9.aarch64.rpm
pg_base58_15 0.0.1 el10.x86_64 pigsty 847.2 KiB pg_base58_15-0.0.1-4PIGSTY.el10.x86_64.rpm
pg_base58_15 0.0.1 el10.aarch64 pigsty 783.3 KiB pg_base58_15-0.0.1-4PIGSTY.el10.aarch64.rpm
postgresql-15-pg-base58 0.0.1 d12.x86_64 pigsty 671.9 KiB postgresql-15-pg-base58_0.0.1-5PIGSTY~bookworm_amd64.deb
postgresql-15-pg-base58 0.0.1 d12.aarch64 pigsty 561.4 KiB postgresql-15-pg-base58_0.0.1-5PIGSTY~bookworm_arm64.deb
postgresql-15-pg-base58 0.0.1 d13.x86_64 pigsty 672.1 KiB postgresql-15-pg-base58_0.0.1-5PIGSTY~trixie_amd64.deb
postgresql-15-pg-base58 0.0.1 d13.aarch64 pigsty 561.1 KiB postgresql-15-pg-base58_0.0.1-5PIGSTY~trixie_arm64.deb
postgresql-15-pg-base58 0.0.1 u22.x86_64 pigsty 749.3 KiB postgresql-15-pg-base58_0.0.1-5PIGSTY~jammy_amd64.deb
postgresql-15-pg-base58 0.0.1 u22.aarch64 pigsty 661.9 KiB postgresql-15-pg-base58_0.0.1-5PIGSTY~jammy_arm64.deb
postgresql-15-pg-base58 0.0.1 u24.x86_64 pigsty 740.0 KiB postgresql-15-pg-base58_0.0.1-5PIGSTY~noble_amd64.deb
postgresql-15-pg-base58 0.0.1 u24.aarch64 pigsty 652.2 KiB postgresql-15-pg-base58_0.0.1-5PIGSTY~noble_arm64.deb
postgresql-15-pg-base58 0.0.1 u26.x86_64 pigsty 735.7 KiB postgresql-15-pg-base58_0.0.1-5PIGSTY~resolute_amd64.deb
postgresql-15-pg-base58 0.0.1 u26.aarch64 pigsty 650.9 KiB postgresql-15-pg-base58_0.0.1-5PIGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pg_base58_14 0.0.1 el8.x86_64 pigsty 833.8 KiB pg_base58_14-0.0.1-4PIGSTY.el8.x86_64.rpm
pg_base58_14 0.0.1 el8.aarch64 pigsty 747.5 KiB pg_base58_14-0.0.1-4PIGSTY.el8.aarch64.rpm
pg_base58_14 0.0.1 el9.x86_64 pigsty 843.8 KiB pg_base58_14-0.0.1-4PIGSTY.el9.x86_64.rpm
pg_base58_14 0.0.1 el9.aarch64 pigsty 792.1 KiB pg_base58_14-0.0.1-4PIGSTY.el9.aarch64.rpm
pg_base58_14 0.0.1 el10.x86_64 pigsty 844.1 KiB pg_base58_14-0.0.1-4PIGSTY.el10.x86_64.rpm
pg_base58_14 0.0.1 el10.aarch64 pigsty 782.2 KiB pg_base58_14-0.0.1-4PIGSTY.el10.aarch64.rpm
postgresql-14-pg-base58 0.0.1 d12.x86_64 pigsty 669.3 KiB postgresql-14-pg-base58_0.0.1-5PIGSTY~bookworm_amd64.deb
postgresql-14-pg-base58 0.0.1 d12.aarch64 pigsty 559.6 KiB postgresql-14-pg-base58_0.0.1-5PIGSTY~bookworm_arm64.deb
postgresql-14-pg-base58 0.0.1 d13.x86_64 pigsty 670.8 KiB postgresql-14-pg-base58_0.0.1-5PIGSTY~trixie_amd64.deb
postgresql-14-pg-base58 0.0.1 d13.aarch64 pigsty 560.2 KiB postgresql-14-pg-base58_0.0.1-5PIGSTY~trixie_arm64.deb
postgresql-14-pg-base58 0.0.1 u22.x86_64 pigsty 747.3 KiB postgresql-14-pg-base58_0.0.1-5PIGSTY~jammy_amd64.deb
postgresql-14-pg-base58 0.0.1 u22.aarch64 pigsty 660.5 KiB postgresql-14-pg-base58_0.0.1-5PIGSTY~jammy_arm64.deb
postgresql-14-pg-base58 0.0.1 u24.x86_64 pigsty 737.6 KiB postgresql-14-pg-base58_0.0.1-5PIGSTY~noble_amd64.deb
postgresql-14-pg-base58 0.0.1 u24.aarch64 pigsty 650.6 KiB postgresql-14-pg-base58_0.0.1-5PIGSTY~noble_arm64.deb
postgresql-14-pg-base58 0.0.1 u26.x86_64 pigsty 734.0 KiB postgresql-14-pg-base58_0.0.1-5PIGSTY~resolute_amd64.deb
postgresql-14-pg-base58 0.0.1 u26.aarch64 pigsty 649.2 KiB postgresql-14-pg-base58_0.0.1-5PIGSTY~resolute_arm64.deb

Source

pig build pkg pg_base58;		# build rpm/deb

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_base58;		# install via package name, for the active PG version

pig install pg_base58 -v 18;   # install for PG 18
pig install pg_base58 -v 17;   # install for PG 17
pig install pg_base58 -v 16;   # install for PG 16
pig install pg_base58 -v 15;   # install for PG 15
pig install pg_base58 -v 14;   # install for PG 14

Create this extension with:

CREATE EXTENSION pg_base58;

Usage

pg_base58: base58 encoding/decoding for PostgreSQL

Provides functions to encode and decode data using Base58 encoding.

CREATE EXTENSION pg_base58;

Functions

Function Description
base58_encode(bytea) Encode bytea data to Base58 text
base58_decode(text) Decode Base58 text back to bytea

Examples

-- Encode a string to Base58
SELECT base58_encode('hello'::bytea);
-- 'Cn8eVZg'

-- Decode a Base58 string back
SELECT base58_decode('Cn8eVZg');
-- '\x68656c6c6f'  (i.e., 'hello')

-- Round-trip
SELECT convert_from(base58_decode(base58_encode('hello'::bytea)), 'UTF8');
-- 'hello'