Skip to content

opencc 0.1.0: Embedded Chinese conversion dictionaries

The first pg_opencc source release exposes OpenCC 1.4.2 in UTF8 databases on PG14–18. The SQL extension is named opencc.

The first pg_opencc source release exposes OpenCC 1.4.2 in UTF8 databases on PG14–18. The SQL extension is named opencc.

Changes

AreaChangeEvidence
ResourcesThe shared library embeds 16 configs and 22 dictionaries, and links OpenCC statically.CHANGELOG.md
SQLConfig wrappers, regional routing, detection and inspection expose conversion steps and ambiguous candidates.opencc–0.1.0.sql
OperationsVersion/dictionary identity, converter preloading and catalog dependency discovery are available. Before tagging, dependency discovery was corrected for PG14 generated columns.opencc–0.1.0.sql

Dictionary identity

The embedded resource digest identifies the dictionaries behind immutable conversion results. The initial regression suite includes 556 golden cases from OpenCC.

Initial measurements

The tagged README records macOS arm64 resident growth of about 6 MB for t2s, 28 MB for s2t and 42 MB for s2twp. For the same 10.8 MiB input, s2t and s2twp took 0.11 s and 0.22 s respectively; 200,000 short rows took 0.14 s and 0.32 s. First use took 2–21 ms depending on the config. Release measurements.

Upgrade notes

This is the first extension release. After installing its files, enable it in the target UTF8 database.

CREATE EXTENSION opencc VERSION '0.1.0';

Compatibility

Release CI covers PG14–18, including checks for generated-column dependencies on PG14.

Verification

Check the tagged evidence: CHANGELOG.md · .github/workflows/ci.yml · test/sql/opencc_ops.sql · test/sql/opencc_upstream.sql · GitHub release · PG14 dependency fix.