base62
Base62 extension for PostgreSQL
Repository
adjust/pg-base62
https://github.com/adjust/pg-base62
Source
pg-base62-0.0.1.tar.gz
pg-base62-0.0.1.tar.gz
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4810 | base62 | No | Yes | No | Yes | No | No | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.0.1 | 1817161514 | pg_base62 | - |
| RPM | PIGSTY | 0.0.1 | 1817161514 | pg_base62_$v | - |
| DEB | PIGSTY | 0.0.1 | 1817161514 | postgresql-$v-base62 | - |
Build
You can build the RPM / DEB packages for pg_base62 using pig build:
Install
You can install pg_base62 directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
Provides data types for encoding and decoding values using the base62 scheme (0-9, A-Z, a-z).
Types
| Type | Storage | Max String Length | Max Numeric Value |
|---|---|---|---|
base62 | 4 bytes (int) | 6 characters | 2,147,483,647 |
bigbase62 | 8 bytes (bigint) | 11 characters | 9,223,372,036,854,775,807 |
hugebase62 | 16 bytes | 20 characters | (bytea conversion) |
Examples
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)