Skip to content

This is the multi-page printable view of this section.

Return to the regular view of this page

acdat releases

Early tags used compiled bytea values. The typed SQL API starts at 0.1.0; install versioned update scripts before updating a database.

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.

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

AreaChangeEvidence
CompilerRemoving globally unique BASE placement reduces pathological UTF8 build searches. Compilation is cancellable and the builder bounds its candidate search.CHANGELOG.md
RuntimeThe 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
ReleaseThe 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.

ALTER EXTENSION acdat UPDATE TO '0.1.1';

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.

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.

Tagged source

Changes

AreaChangeEvidence
SQLCompile text or bytea arrays and aggregate source rows. Enumerate hit positions, test existence and replace literal spans.acdat–0.1.0.sql
StoragePortable serialized machines expose validation, import/export and distinct fingerprints for rules, builds and payloads.acdat_format.c
LifecyclePublish immutable builds and atomically switch the active build; roll back by activating a prior ready build.acdat–0.1.0.sql
LicenseThe 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.

CREATE EXTENSION acdat VERSION '0.1.0';

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.

This PostgreSQL 16 source tag adds literal rewriting to the bytea dictionary prototype. Source tag.

Changes

AreaChangeEvidence
DictionaryOptional replacements travel with compiled patterns. The install and update scripts expose acdat_replace(text, bytea).acdat–0.0.2.sql
SelectionReplacement 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
ValidationCompiled 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.

The PostgreSQL 14 source prototype compiles a text array into a bytea dictionary and tests an input for any literal match. Source tag.

Changes

AreaChangeEvidence
APIacdat_compile(text[]) builds the byte-oriented dictionary; acdat_contains(text, bytea) stops on the first hit.acdat–0.0.1.sql
MatcherByte transitions and failure links allow one pass over the input.acdat.c
RegressionThe prototype includes a PGXS regression script and expected matcher output.acdat_basic.out