Skip to content

PostgreSQL extensions built and maintained by PGSTY

PGSTY EXTENSIONS

PGSTY develops acdat, pgs3, and opencc for PostgreSQL. The vchord and mooncake suites have their own documentation.

acdat 0.1.1 · pgs3 0.1.2 · opencc 0.1.0 · Apache-2.0

First-party extensions

v0.1.1 · CI PG14–18

acdat

Compile literal rules once and match or replace them in text and bytea in a single pass.

acdat

v0.1.2 · Acceptance PG17–19

pgs3

Turn PostgreSQL into a versioned S3 object endpoint with SQL transactions, bucket forks, and RLS isolation.

pgs3

v0.1.0 · CI PG14–18

opencc

Convert Chinese scripts and regional vocabulary inside PostgreSQL with embedded OpenCC dictionaries.

opencc

Try the SQL

Scan and mask rules in one pass

Compiles literal patterns into an automaton and rewrites matched spans without rescanning.

acdat · SQL
SELECT acdat.replace('found virus signature',
  acdat.compile(ARRAY['virus','signature'], ARRAY[1,2]::bigint[], ARRAY['[V]','[S]']));

Store and read objects in SQL

Objects live inside PostgreSQL tables and are also reachable over S3 with mc or rclone.

pgs3 · SQL
SELECT pgs3.put('artifacts', 'notes/hello.txt', convert_to('hello', 'UTF8'));
SELECT convert_from((pgs3.get('artifacts', 'notes/hello.txt')).body, 'UTF8');

Convert a regional phrase

The phrase-aware Taiwan config returns 安裝記憶體模組.

opencc · SQL
SELECT opencc.s2twp('安装内存条');

Extension suites

vchord

Approximate nearest-neighbor indexes for pgvector types.

vchord

vchord_bm25

BM25 ranking for PostgreSQL full-text search.

vchord_bm25

pg_tokenizer

Tokenize multilingual text inside PostgreSQL.

pg_tokenizer

pg_mooncake

Query an Iceberg mirror of a PostgreSQL table.

pg_mooncake

moonlink

Apply logical replication changes to Iceberg tables.

moonlink

duckdb_mooncake

Scan Parquet and recent in-memory changes together.

duckdb_mooncake

Install with Pigsty packages

  1. Configure the repository

    pig repo add pgsql -u
  2. Install extension files

    pig ext add acdat pgs3 opencc
  3. Enable each SQL extension

    For automatic pgs3 startup, preload pgs3, enable its launcher and restart PostgreSQL. A manual pool can be started with pgs3.start().

    CREATE EXTENSION acdat; CREATE EXTENSION pgs3; CREATE EXTENSION opencc;

Maintenance and compatibility

Who maintains the extensions?

PGSTY develops acdat, pgs3, and opencc (source repo pg_opencc). PGSTY also maintains the vchord and mooncake forks.

Which PostgreSQL majors can I use?

The extension cards give the tested majors. The download matrix lists the available packages separately for each platform.

Which licenses apply?

Current first-party extension releases use Apache-2.0. This documentation uses CC BY 4.0. Bundled opencc dependencies are listed in its NOTICE.

Where should I report a problem?

Include the PostgreSQL version, extension version and a reproducer in the appropriate issue tracker. acdat · pgs3 · opencc

Where is the old extension catalog?

The package and extension catalog is available at PGEXT.CLOUD.

Choose an extension for your database