# 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.

---

LLMS index: [llms.txt](/llms.txt)

---

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](https://github.com/pgsty/acdat/tree/v0.1.0)

## Changes {#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](https://github.com/pgsty/acdat/blob/v0.1.0/sql/acdat--0.1.0.sql) |
| Storage | Portable serialized machines expose validation, import/export and distinct fingerprints for rules, builds and payloads. | [acdat_format.c](https://github.com/pgsty/acdat/blob/v0.1.0/src/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](https://github.com/pgsty/acdat/blob/v0.1.0/sql/acdat--0.1.0.sql) |
| License | The tag includes the original PostgreSQL-style permissive license. | [LICENSE](https://github.com/pgsty/acdat/blob/v0.1.0/LICENSE) |

## Dictionary builds {#details}

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 {#upgrade}

There is no update script from the bytea prototypes. Preserve source rules, install 0.1.0 in a fresh database and recompile the dictionaries.

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

## Compatibility {#compatibility}

The tagged CI workflow lists PostgreSQL 14 through 18.

## Verification {#verification}

Check the tagged evidence: [.github/workflows/ci.yml](https://github.com/pgsty/acdat/blob/v0.1.0/.github/workflows/ci.yml) · [examples/demo.sql](https://github.com/pgsty/acdat/blob/v0.1.0/examples/demo.sql) · [test/dump_restore.sh](https://github.com/pgsty/acdat/blob/v0.1.0/test/dump_restore.sh).
