https://github.com/ildus/pg_dict_compression
Custom dictionary compression for PostgreSQL
https://github.com/ildus/pg_dict_compression
compression custom dictionary postgresql
Last synced: about 2 months ago
JSON representation
Custom dictionary compression for PostgreSQL
- Host: GitHub
- URL: https://github.com/ildus/pg_dict_compression
- Owner: ildus
- Created: 2018-03-28T07:30:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-13T16:36:32.000Z (about 8 years ago)
- Last Synced: 2025-10-13T12:55:52.964Z (9 months ago)
- Topics: compression, custom, dictionary, postgresql
- Language: C
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pg_dict_compression extension
Dictionary compression for PostgreSQL
## Requirements
This extension only works with developement version of PostgreSQL with custom compression methods patch applied:
https://www.postgresql.org/message-id/20180115024930.48583c69@hh
## Installation
To install `pg_dict_compression` extension run:
```
make install
```
or if your PostgreSQL bin directory isn't in PATH:
```
make install PG_CONFIG=/pg_config
```
## Usage
First, create an extension:
```
CREATE EXTENSION pg_dict_compression;
```
Now you can specify the compression when defining new tables:
```
CREATE TABLE mytable (
id SERIAL,
data1 TEXT COMPRESSION pg_dict_compression WITH (dict 'one two three'),
data2 TEXT
);
```
or enable compression for existing table columns:
```
ALTER TABLE mytable ALTER COLUMN data2 SET COMPRESSION pg_dict_compression WITH (dict 'four five six');
```