Skip to main content

Module pg_unpack

Module pg_unpack 

Source
Expand description

Unpacks the PostgreSQL binaries JAR into the binary cache.

The JAR (a ZIP archive) distributed by zonkyio/embedded-postgres-binaries contains a single .txz-compressed tarball (a tar archive compressed with XZ/LZMA2, sometimes also named .tar.xz). unpack_postgres locates that entry, decompresses it with lzma_rs, and extracts the resulting tar archive into cache_dir.

All I/O runs inside tokio::task::spawn_blocking so it does not block the async executor.

Functionsยง

unpack_postgres
Unpacks the PostgreSQL binaries ZIP/JAR into cache_dir.