Skip to content

chore(deps): update pgrx to 0.19.3 and Lindera to 6.2.0 - #6

Merged
Vonng merged 1 commit into
mainfrom
feat/pgrx-0.19.3
Nov 2, 2026
Merged

Vonng merged 1 commit into
mainfrom
feat/pgrx-0.19.3

Conversation

@Vonng

@Vonng Vonng commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

This upgrades pgrx/pgrx-tests to 0.19.3, updates direct Cargo dependencies to their current stable versions, and tracks a refreshed Cargo.lock from cargo update. Lindera moves from 0.42 to 6.2.0 with the new lindera-analysis crate; Jieba, tokenizers, toml and validator also move to their current release lines.

The pgrx migration removes the obsolete embed binary, stamps the 0.1.1 package version for standard cargo pgrx package, preserves schema sections under Linux LTO, drops PG13 and adds the PG19 feature. Check and release workflows are manual-only.

Lindera configuration loading accepts both dictionary URIs and existing dictionary tables in catalog rows and preload files. Unknown words remain excluded despite Lindera's new word-ID representation. README, model/reference documentation and Japanese regression expectations are updated. The embedded IPADIC revision changes token IDs: existing Lindera token arrays must be regenerated and their indexes rebuilt when deploying this upgrade. External compiled dictionaries must also be rebuilt with Lindera 6.

Validated locally on Apple Silicon macOS with cargo-pgrx 0.19.3 and Homebrew PostgreSQL 18.6:

  • A release cargo pgrx package with pg18 lindera-ipadic produced the arm64 dylib, control file and pg_tokenizer--0.1.1.sql with 30 SQL entities.
  • A fresh cluster on port 28820 passed extension creation, BERT and Lindera tokenization, legacy catalog loading from a new connection, and legacy preload loading after restart.
  • All 14 SQLLogicTest files and six Rust unit tests passed; clippy, rustfmt and diff checks passed.
  • The lockfile retains registry checksums, has no temporary path/dummy dependencies, and fixes the entire pgrx family at 0.19.3.

The temporary cluster was stopped after testing. Existing PostgreSQL data and installed extension files were not modified. CI was not run.

Closes #5

…and stamp release version

- Upgrade pgrx and pgrx-tests from 0.16.1 to 0.19.3
- Update Cargo dependencies (anyhow, dashmap, jieba-rs 0.11, lindera 0.42.4, regex, serde, serde_json, tokenizers 0.23, toml 1.1, unicode-normalization, unicode-segmentation, validator 0.21) and track Cargo.lock
- Remove obsolete pgrx_embed binary target and src/bin/pgrx_embed.rs
- Drop EOL pg13 feature and add pg19 feature support
- Stamp Cargo.toml package version to 0.1.1 so cargo pgrx package substitutes @CARGO_VERSION@ directly
- Add Linux -Wl,--no-gc-sections linker flag to preserve __pgrx_schema ELF sections under fat LTO
- Update CI workflows and tools/setup.sh for cargo-pgrx 0.19.3

Closes #5
@Vonng Vonng changed the title feat(build): upgrade pgrx to 0.19.3, update dependencies, drop pg13, and stamp release version chore(deps): update pgrx to 0.19.3 and Lindera to 6.2.0 Nov 2, 2026
@Vonng
Vonng merged commit 412b643 into main Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(build): upgrade pgrx to 0.19.2+, drop pg13, and stamp release version in Cargo.toml

1 participant