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

---

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

---

The PostgreSQL 14 source prototype compiles a text array into a bytea dictionary and tests an input for any literal match. [Source tag](https://github.com/pgsty/acdat/tree/v0.0.1).

## Changes {#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](https://github.com/pgsty/acdat/blob/v0.0.1/sql/acdat--0.0.1.sql) |
| Matcher | Byte transitions and failure links allow one pass over the input. | [acdat.c](https://github.com/pgsty/acdat/blob/v0.0.1/src/acdat.c) |
| Regression | The prototype includes a PGXS regression script and expected matcher output. | [acdat_basic.out](https://github.com/pgsty/acdat/blob/v0.0.1/expected/acdat_basic.out) |
