# opencc 0.1.0：内置中文转换词典

> pg_opencc 首版以源码发布，在 PG14–18 的 UTF8 库中提供 OpenCC 1.4.2。SQL 扩展名为 opencc。

---

LLMS 索引： [llms.txt](/zh/llms.txt)

---

pg_opencc 首版以源码发布，在 PG14–18 的 UTF8 库中提供 OpenCC 1.4.2。SQL 扩展名为 opencc。

**v0\.1\.0 · 2026-11-06**
- [查看版本](https://github.com/pgsty/pg_opencc/releases/tag/v0.1.0)
- [源码 · tar\.gz](https://github.com/pgsty/pg_opencc/archive/refs/tags/v0.1.0.tar.gz)
- [源码 · zip](https://github.com/pgsty/pg_opencc/archive/refs/tags/v0.1.0.zip)
- [pgsty\/pg\_opencc](https://github.com/pgsty/pg_opencc)

## 变更 {#changes}

| 范围 | 变更 | 依据 |
| --- | --- | --- |
| 资源 | 静态链接 OpenCC，16 份配置与 22 份词典随共享库分发。 | [CHANGELOG.md](https://github.com/pgsty/pg_opencc/blob/v0.1.0/CHANGELOG.md) |
| SQL | 提供配置包装函数、地区路由、文字检测与校对接口，可查看分段结果与歧义候选。 | [opencc--0.1.0.sql](https://github.com/pgsty/pg_opencc/blob/v0.1.0/sql/opencc--0.1.0.sql) |
| 运维 | 支持版本与词典身份查询、转换器预载及目录依赖盘点。打标前已修正 PG14 生成列依赖识别。 | [opencc--0.1.0.sql](https://github.com/pgsty/pg_opencc/blob/v0.1.0/sql/opencc--0.1.0.sql) |

## 词典标识 {#details}

内置资源摘要标识不可变转换所用的词典；首次发布的回归覆盖上游 556 个黄金用例。

## 首版性能记录 {#measurements}

在发布标签记录的 macOS arm64 测量中，后端首次使用 t2s、s2t、s2twp 后的常驻内存分别增加约 6、28、42 MB。s2t 与 s2twp 处理同一份 10.8 MiB 输入分别用时 0.11、0.22 秒；20 万行短文本分别为 0.14、0.32 秒。首次调用按配置不同为 2–21 毫秒。[发布时的测量记录](https://github.com/pgsty/pg_opencc/blob/v0.1.0/README.md#behavior-to-know).

## 安装与升级 {#upgrade}

这是首个扩展版本。在目标 UTF8 库安装即可。

```sql
CREATE EXTENSION opencc VERSION '0.1.0';
```

## 兼容性 {#compatibility}

发布版 CI 覆盖 PG14–18，包含 PG14 生成列依赖检查。

## 核验 {#verification}

核验材料见 [CHANGELOG.md](https://github.com/pgsty/pg_opencc/blob/v0.1.0/CHANGELOG.md) · [.github/workflows/ci.yml](https://github.com/pgsty/pg_opencc/blob/v0.1.0/.github/workflows/ci.yml) · [test/sql/opencc_ops.sql](https://github.com/pgsty/pg_opencc/blob/v0.1.0/test/sql/opencc_ops.sql) · [test/sql/opencc_upstream.sql](https://github.com/pgsty/pg_opencc/blob/v0.1.0/test/sql/opencc_upstream.sql) · [GitHub 发布正文](https://github.com/pgsty/pg_opencc/releases/tag/v0.1.0) · [PG14 依赖修正](https://github.com/pgsty/pg_opencc/commit/b7831dc).

---

反链：

- [实战指南](/zh/docs/opencc/guide/)
