# Build extensions, run REPACK and validate workloads

> Compile C and Rust pgrx extensions against Mimus pg_config, reorganize tables safely with native PostgreSQL 19 REPACK, and test application SQL.

---

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

---

## Choosing extension binaries {#abi}

Build native C and Rust (`pgrx 0.20.1`) extensions using the `pg_config` binary and server headers from the target `/usr/mimus-19` installation:

```sh
export PATH="/usr/mimus-19/bin:$PATH"
make PG_CONFIG=/usr/mimus-19/bin/pg_config
sudo make PG_CONFIG=/usr/mimus-19/bin/pg_config install
```

A shared PostgreSQL 19 major version establishes the SQL baseline, not universal drop-in ABI compatibility with prebuilt third-party binaries, because the unified Mimus kernel includes Babelfish parser/executor hooks alongside storage and replication interfaces. `pgrx 0.20.1` header compatibility is verified against Mimus `19.0.1-r4` (790 PG 19 tests passed). For workloads requiring **Citus** or **TimescaleDB**, deploy a separate community PostgreSQL cluster.

## Validating a workload {#application}

Before migrating an application, run an end-to-end check against your chosen listener and storage configuration:

1. Exercise driver connection startup, TLS negotiation, authentication, and parameter binding.
2. Run representative schema DDL, concurrent reads/writes, generated keys, null handling, and collation comparisons from both the compatibility protocol (`MySQL`, `MSSQL`, or `MongoDB`) and native `psql`.
3. Take a backup, restore it into a second isolated instance, and re-run application smoke checks against the restored data. See [19.0.1-r4 Verification](/docs/reference/verification/) for tested combinations.

## Storage and third-party extensions {#storage}

Mimus excludes **OrioleDB**, **Citus**, and **TimescaleDB** (including when `pg_tde` is disabled).

For online or offline table reorganization on PostgreSQL 19, always use PostgreSQL 19's built-in **`REPACK`** command rather than the external **`pg_repack`** extension. In verification testing, external `pg_repack 1.5.3` rewrote `tde_heap` tables back into unencrypted ordinary `heap` storage while queries continued returning rows without warning. After any table rewrite, verify encryption on the relation, indexes, and TOAST table with `pg_tde_is_encrypted()`; see [PG TDE table coverage](/docs/tde/tables/#coverage).

---

Backlinks:

- [Merging four PostgreSQL forks into one kernel](/blog/merging-four-postgresql-forks-into-one-kernel/)
- [MySQL compatibility as a PostgreSQL 18 extension](/blog/mysql-as-a-postgresql-18-extension/)
- [The kernel patches pg_tde needs and their upstream prospects](/blog/pg-tde-kernel-patches-and-upstream/)
- [How-to Guides](/docs/guides/)
- [DocumentDB and the gateway](/docs/mongo/architecture/)
- [Enable TDE and encrypt a table](/docs/tde/tables/)
- [Mimus 19.0.1 (r4 candidate)](/release/19.0.1/)
