This is the multi-page printable view of this section.
acdat releases
- 1: acdat 0.1.1: Bounded builds and faster root misses
- 2: acdat 0.1.0: Typed machines and transactional dictionaries
- 3: acdat 0.0.2: Literal replacement on PG16
- 4: acdat 0.0.1: PG14 dictionary prototype
Early tags used compiled bytea values. The typed SQL API starts at 0.1.0; install versioned update scripts before updating a database.
History
The 2018 Go library Vonng/ac supplied the original benchmark. The 2022 PG14 prototype provided contains, the 2024 PG16 tag added replacement, and the 2026 PGXS rebuild introduced typed machines. The historical dataset release preserves the Go dictionary and corpus.
1 - acdat 0.1.1: Bounded builds and faster root misses
acdat 0.1.1 ships a PGXN-compatible source ZIP for the PG14–18 release line. The SQL API and format-major-1 machines remain compatible with 0.1.0.
Changes
| Area | Change | Evidence |
|---|---|---|
| Compiler | Removing globally unique BASE placement reduces pathological UTF8 build searches. Compilation is cancellable and the builder bounds its candidate search. | CHANGELOG.md |
| Runtime | The materialized output chain frees one four-byte array per DAT slot. A 256-entry root transition table handles root misses; cache replacement is exception-safe. | CHANGELOG.md |
| Release | The canonical repository moved to pgsty/acdat and the code was relicensed under Apache-2.0. | LICENSE |
Dictionary builds
The release evaluates packed runtime states and LexDFS placement but retains the existing representation. The benchmark separates root misses, hit-heavy scans, UTF8 inputs and worst overlaps.
Upgrade notes
Install the new library and update each 0.1.0 database. Existing machines require no rebuild.
Compatibility
The release records PG14–18 CI and additional demo, dump/restore and TOAST-cache checks on PG18.
Verification
Check the tagged evidence: docs/CHANGELOG.md · .github/workflows/ci.yml · sql/acdat–0.1.0–0.1.1.sql · GitHub release.
acdat-0.1.1.zip SHA-256 e19a06abc44ae74f7932a0537d65dadfafb66f5478117b275c6d9c4a9a450a14.
2 - acdat 0.1.0: Typed machines and transactional dictionaries
The C/PGXS rebuild targets PG14–18. This source tag introduces a fixed acdat schema and a typed machine that can be stored and reused.
Changes
| Area | Change | Evidence |
|---|---|---|
| SQL | Compile text or bytea arrays and aggregate source rows. Enumerate hit positions, test existence and replace literal spans. | acdat–0.1.0.sql |
| Storage | Portable serialized machines expose validation, import/export and distinct fingerprints for rules, builds and payloads. | acdat_format.c |
| Lifecycle | Publish immutable builds and atomically switch the active build; roll back by activating a prior ready build. | acdat–0.1.0.sql |
| License | The tag includes the original PostgreSQL-style permissive license. | LICENSE |
Dictionary builds
A rule set now has a machine value with explicit IDs and a typed hit result. Managed builds can be activated in a transaction; source rules stay with the application.
Upgrade notes
There is no update script from the bytea prototypes. Preserve source rules, install 0.1.0 in a fresh database and recompile the dictionaries.
Compatibility
The tagged CI workflow lists PostgreSQL 14 through 18.
Verification
Check the tagged evidence: .github/workflows/ci.yml · examples/demo.sql · test/dump_restore.sh.
3 - acdat 0.0.2: Literal replacement on PG16
This PostgreSQL 16 source tag adds literal rewriting to the bytea dictionary prototype. Source tag.
Changes
| Area | Change | Evidence |
|---|---|---|
| Dictionary | Optional replacements travel with compiled patterns. The install and update scripts expose acdat_replace(text, bytea). | acdat–0.0.2.sql |
| Selection | Replacement walks left to right, selects the longest pattern at a start, breaks equal-length ties by dictionary order and never rescans inserted text. | README.md |
| Validation | Compiled offsets and pattern payloads are bounded; regression cases cover overlaps and rule ordering. | acdat_basic.sql |
4 - acdat 0.0.1: PG14 dictionary prototype
The PostgreSQL 14 source prototype compiles a text array into a bytea dictionary and tests an input for any literal match. Source tag.
Changes
| Area | Change | Evidence |
|---|---|---|
| API | acdat_compile(text[]) builds the byte-oriented dictionary; acdat_contains(text, bytea) stops on the first hit. | acdat–0.0.1.sql |
| Matcher | Byte transitions and failure links allow one pass over the input. | acdat.c |
| Regression | The prototype includes a PGXS regression script and expected matcher output. | acdat_basic.out |