bzip
Bzip compression and decompression
Repository
steve-chavez/pg_bzip
https://github.com/steve-chavez/pg_bzip
Source
pg_bzip-1.0.0.tar.gz
pg_bzip-1.0.0.tar.gz
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4020 | bzip | No | Yes | No | Yes | No | No | - |
| Related | gzip zstd pg_parquet pg_bulkload file_fdw aws_s3 |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0.0 | 1817161514 | pg_bzip | - |
| RPM | PIGSTY | 1.0.0 | 1817161514 | pg_bzip_$v | - |
| DEB | PIGSTY | 1.0.0 | 1817161514 | postgresql-$v-bzip | - |
Build
You can build the RPM / DEB packages for pg_bzip using pig build:
Install
You can install pg_bzip 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
Functions
bzcat(data bytea) returns bytea– Decompress bzip2 data, similar to thebzcatcommand.bzip2(data bytea, compression_level int default 9) returns bytea– Compress data using bzip2.
Examples
Decompress a bzip2-compressed file:
Compress data with bzip2:
Compress with a custom compression level (1-9):
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)