pg_base58

pg_base58

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
Relationships
See Also
url_encode
pg_cardano
base36
base62
pg_polyline
uri
pg_curl
pg_rewrite

manual updated pgrx by Vonng

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
Package Version OS ORG SIZE File URL
pg_base58_18 0.0.1 el8.x86_64 pigsty 288.3 KiB pg_base58_18-0.0.1-2PIGSTY.el8.x86_64.rpm
pg_base58_18 0.0.1 el8.aarch64 pigsty 184.0 KiB pg_base58_18-0.0.1-2PIGSTY.el8.aarch64.rpm
pg_base58_18 0.0.1 el9.x86_64 pigsty 303.1 KiB pg_base58_18-0.0.1-2PIGSTY.el9.x86_64.rpm
pg_base58_18 0.0.1 el9.aarch64 pigsty 197.0 KiB pg_base58_18-0.0.1-2PIGSTY.el9.aarch64.rpm
pg_base58_18 0.0.1 el10.x86_64 pigsty 303.1 KiB pg_base58_18-0.0.1-2PIGSTY.el10.x86_64.rpm
pg_base58_18 0.0.1 el10.aarch64 pigsty 196.7 KiB pg_base58_18-0.0.1-2PIGSTY.el10.aarch64.rpm
postgresql-18-pg-base58 0.0.1 d12.x86_64 pigsty 236.4 KiB postgresql-18-pg-base58_0.0.1-3PIGSTY~bookworm_amd64.deb
postgresql-18-pg-base58 0.0.1 d12.aarch64 pigsty 141.2 KiB postgresql-18-pg-base58_0.0.1-3PIGSTY~bookworm_arm64.deb
postgresql-18-pg-base58 0.0.1 d13.x86_64 pigsty 236.4 KiB postgresql-18-pg-base58_0.0.1-3PIGSTY~trixie_amd64.deb
postgresql-18-pg-base58 0.0.1 d13.aarch64 pigsty 141.1 KiB postgresql-18-pg-base58_0.0.1-3PIGSTY~trixie_arm64.deb
postgresql-18-pg-base58 0.0.1 u22.x86_64 pigsty 267.5 KiB postgresql-18-pg-base58_0.0.1-3PIGSTY~jammy_amd64.deb
postgresql-18-pg-base58 0.0.1 u22.aarch64 pigsty 163.9 KiB postgresql-18-pg-base58_0.0.1-3PIGSTY~jammy_arm64.deb
postgresql-18-pg-base58 0.0.1 u24.x86_64 pigsty 265.1 KiB postgresql-18-pg-base58_0.0.1-3PIGSTY~noble_amd64.deb
postgresql-18-pg-base58 0.0.1 u24.aarch64 pigsty 162.7 KiB postgresql-18-pg-base58_0.0.1-3PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pg_base58_17 0.0.1 el8.x86_64 pigsty 288.0 KiB pg_base58_17-0.0.1-2PIGSTY.el8.x86_64.rpm
pg_base58_17 0.0.1 el8.aarch64 pigsty 184.0 KiB pg_base58_17-0.0.1-2PIGSTY.el8.aarch64.rpm
pg_base58_17 0.0.1 el9.x86_64 pigsty 302.9 KiB pg_base58_17-0.0.1-2PIGSTY.el9.x86_64.rpm
pg_base58_17 0.0.1 el9.aarch64 pigsty 197.1 KiB pg_base58_17-0.0.1-2PIGSTY.el9.aarch64.rpm
pg_base58_17 0.0.1 el10.x86_64 pigsty 303.1 KiB pg_base58_17-0.0.1-2PIGSTY.el10.x86_64.rpm
pg_base58_17 0.0.1 el10.aarch64 pigsty 196.6 KiB pg_base58_17-0.0.1-2PIGSTY.el10.aarch64.rpm
postgresql-17-pg-base58 0.0.1 d12.x86_64 pigsty 236.5 KiB postgresql-17-pg-base58_0.0.1-3PIGSTY~bookworm_amd64.deb
postgresql-17-pg-base58 0.0.1 d12.aarch64 pigsty 141.2 KiB postgresql-17-pg-base58_0.0.1-3PIGSTY~bookworm_arm64.deb
postgresql-17-pg-base58 0.0.1 d13.x86_64 pigsty 236.5 KiB postgresql-17-pg-base58_0.0.1-3PIGSTY~trixie_amd64.deb
postgresql-17-pg-base58 0.0.1 d13.aarch64 pigsty 141.1 KiB postgresql-17-pg-base58_0.0.1-3PIGSTY~trixie_arm64.deb
postgresql-17-pg-base58 0.0.1 u22.x86_64 pigsty 267.5 KiB postgresql-17-pg-base58_0.0.1-3PIGSTY~jammy_amd64.deb
postgresql-17-pg-base58 0.0.1 u22.aarch64 pigsty 163.9 KiB postgresql-17-pg-base58_0.0.1-3PIGSTY~jammy_arm64.deb
postgresql-17-pg-base58 0.0.1 u24.x86_64 pigsty 264.9 KiB postgresql-17-pg-base58_0.0.1-3PIGSTY~noble_amd64.deb
postgresql-17-pg-base58 0.0.1 u24.aarch64 pigsty 162.8 KiB postgresql-17-pg-base58_0.0.1-3PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pg_base58_16 0.0.1 el8.x86_64 pigsty 288.0 KiB pg_base58_16-0.0.1-2PIGSTY.el8.x86_64.rpm
pg_base58_16 0.0.1 el8.aarch64 pigsty 184.0 KiB pg_base58_16-0.0.1-2PIGSTY.el8.aarch64.rpm
pg_base58_16 0.0.1 el9.x86_64 pigsty 302.8 KiB pg_base58_16-0.0.1-2PIGSTY.el9.x86_64.rpm
pg_base58_16 0.0.1 el9.aarch64 pigsty 197.0 KiB pg_base58_16-0.0.1-2PIGSTY.el9.aarch64.rpm
pg_base58_16 0.0.1 el10.x86_64 pigsty 303.2 KiB pg_base58_16-0.0.1-2PIGSTY.el10.x86_64.rpm
pg_base58_16 0.0.1 el10.aarch64 pigsty 196.7 KiB pg_base58_16-0.0.1-2PIGSTY.el10.aarch64.rpm
postgresql-16-pg-base58 0.0.1 d12.x86_64 pigsty 236.7 KiB postgresql-16-pg-base58_0.0.1-3PIGSTY~bookworm_amd64.deb
postgresql-16-pg-base58 0.0.1 d12.aarch64 pigsty 141.2 KiB postgresql-16-pg-base58_0.0.1-3PIGSTY~bookworm_arm64.deb
postgresql-16-pg-base58 0.0.1 d13.x86_64 pigsty 236.5 KiB postgresql-16-pg-base58_0.0.1-3PIGSTY~trixie_amd64.deb
postgresql-16-pg-base58 0.0.1 d13.aarch64 pigsty 141.1 KiB postgresql-16-pg-base58_0.0.1-3PIGSTY~trixie_arm64.deb
postgresql-16-pg-base58 0.0.1 u22.x86_64 pigsty 267.4 KiB postgresql-16-pg-base58_0.0.1-3PIGSTY~jammy_amd64.deb
postgresql-16-pg-base58 0.0.1 u22.aarch64 pigsty 164.2 KiB postgresql-16-pg-base58_0.0.1-3PIGSTY~jammy_arm64.deb
postgresql-16-pg-base58 0.0.1 u24.x86_64 pigsty 265.1 KiB postgresql-16-pg-base58_0.0.1-3PIGSTY~noble_amd64.deb
postgresql-16-pg-base58 0.0.1 u24.aarch64 pigsty 163.0 KiB postgresql-16-pg-base58_0.0.1-3PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pg_base58_15 0.0.1 el8.x86_64 pigsty 287.9 KiB pg_base58_15-0.0.1-2PIGSTY.el8.x86_64.rpm
pg_base58_15 0.0.1 el8.aarch64 pigsty 184.0 KiB pg_base58_15-0.0.1-2PIGSTY.el8.aarch64.rpm
pg_base58_15 0.0.1 el9.x86_64 pigsty 302.6 KiB pg_base58_15-0.0.1-2PIGSTY.el9.x86_64.rpm
pg_base58_15 0.0.1 el9.aarch64 pigsty 197.0 KiB pg_base58_15-0.0.1-2PIGSTY.el9.aarch64.rpm
pg_base58_15 0.0.1 el10.x86_64 pigsty 302.7 KiB pg_base58_15-0.0.1-2PIGSTY.el10.x86_64.rpm
pg_base58_15 0.0.1 el10.aarch64 pigsty 196.7 KiB pg_base58_15-0.0.1-2PIGSTY.el10.aarch64.rpm
postgresql-15-pg-base58 0.0.1 d12.x86_64 pigsty 236.4 KiB postgresql-15-pg-base58_0.0.1-3PIGSTY~bookworm_amd64.deb
postgresql-15-pg-base58 0.0.1 d12.aarch64 pigsty 141.2 KiB postgresql-15-pg-base58_0.0.1-3PIGSTY~bookworm_arm64.deb
postgresql-15-pg-base58 0.0.1 d13.x86_64 pigsty 236.8 KiB postgresql-15-pg-base58_0.0.1-3PIGSTY~trixie_amd64.deb
postgresql-15-pg-base58 0.0.1 d13.aarch64 pigsty 141.1 KiB postgresql-15-pg-base58_0.0.1-3PIGSTY~trixie_arm64.deb
postgresql-15-pg-base58 0.0.1 u22.x86_64 pigsty 267.2 KiB postgresql-15-pg-base58_0.0.1-3PIGSTY~jammy_amd64.deb
postgresql-15-pg-base58 0.0.1 u22.aarch64 pigsty 163.9 KiB postgresql-15-pg-base58_0.0.1-3PIGSTY~jammy_arm64.deb
postgresql-15-pg-base58 0.0.1 u24.x86_64 pigsty 264.8 KiB postgresql-15-pg-base58_0.0.1-3PIGSTY~noble_amd64.deb
postgresql-15-pg-base58 0.0.1 u24.aarch64 pigsty 163.0 KiB postgresql-15-pg-base58_0.0.1-3PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pg_base58_14 0.0.1 el8.x86_64 pigsty 287.8 KiB pg_base58_14-0.0.1-2PIGSTY.el8.x86_64.rpm
pg_base58_14 0.0.1 el8.aarch64 pigsty 184.0 KiB pg_base58_14-0.0.1-2PIGSTY.el8.aarch64.rpm
pg_base58_14 0.0.1 el9.x86_64 pigsty 302.3 KiB pg_base58_14-0.0.1-2PIGSTY.el9.x86_64.rpm
pg_base58_14 0.0.1 el9.aarch64 pigsty 196.9 KiB pg_base58_14-0.0.1-2PIGSTY.el9.aarch64.rpm
pg_base58_14 0.0.1 el10.x86_64 pigsty 302.8 KiB pg_base58_14-0.0.1-2PIGSTY.el10.x86_64.rpm
pg_base58_14 0.0.1 el10.aarch64 pigsty 196.6 KiB pg_base58_14-0.0.1-2PIGSTY.el10.aarch64.rpm
postgresql-14-pg-base58 0.0.1 d12.x86_64 pigsty 236.8 KiB postgresql-14-pg-base58_0.0.1-3PIGSTY~bookworm_amd64.deb
postgresql-14-pg-base58 0.0.1 d12.aarch64 pigsty 141.2 KiB postgresql-14-pg-base58_0.0.1-3PIGSTY~bookworm_arm64.deb
postgresql-14-pg-base58 0.0.1 d13.x86_64 pigsty 236.9 KiB postgresql-14-pg-base58_0.0.1-3PIGSTY~trixie_amd64.deb
postgresql-14-pg-base58 0.0.1 d13.aarch64 pigsty 141.1 KiB postgresql-14-pg-base58_0.0.1-3PIGSTY~trixie_arm64.deb
postgresql-14-pg-base58 0.0.1 u22.x86_64 pigsty 267.2 KiB postgresql-14-pg-base58_0.0.1-3PIGSTY~jammy_amd64.deb
postgresql-14-pg-base58 0.0.1 u22.aarch64 pigsty 163.9 KiB postgresql-14-pg-base58_0.0.1-3PIGSTY~jammy_arm64.deb
postgresql-14-pg-base58 0.0.1 u24.x86_64 pigsty 265.1 KiB postgresql-14-pg-base58_0.0.1-3PIGSTY~noble_amd64.deb
postgresql-14-pg-base58 0.0.1 u24.aarch64 pigsty 162.7 KiB postgresql-14-pg-base58_0.0.1-3PIGSTY~noble_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'
Last updated on