Storage Model
WorkaDB stores all persistent state under the provided pgdata_path. The host supplies a single path and WorkaDB manages all internal files beneath it.
Template-based init
WorkaDB copies a prebuilt template directory on first launch. This avoids running an external initdb binary at runtime and keeps initialization deterministic.
The template is produced by the build scripts and stored under:
share/workadb/pgdata-template
The host must provide the template and helper binary locations using:
WORKADB_TEMPLATE_PATHWORKADB_EXEC_PATH
If the template is missing, initialization fails with an error.