PizzaSQL now requires the PKBFI protocol and PizzaKV's durable .pkvdb engine. The old text-delimited .db file cannot be opened directly by the new engine.
.db file.Migrate into a new destination:
pizzakv -migrate=.db -path=.pkvdb
Start PizzaKV with the migrated file:
pizzakv -unix -path=.pkvdb
Start PizzaSQL against unix:.pizzakv.sock, or use pizzasql -kv -kvflags="-path=.pkvdb" to let PizzaSQL launch PizzaKV.
Run point-read, bounded-scan, write, restart, and application smoke tests before removing the backup.
The migration command exits after writing and verifying the destination. It refuses to overwrite an existing destination and does not modify the source file.
.pkvdb file must have one PizzaSQL process owner. Optimistic scan and
predicate conflict detection uses process-local generations and is not safe
when multiple PizzaSQL processes share one storage file.Stop the new processes and restart the old binaries against the untouched legacy .db backup. Writes accepted into .pkvdb after cutover are not copied back to the legacy file, so reconcile or discard them before rollback.
For each tenant, migrate and validate independently. Do not migrate a file while its owner process is running, and do not replace a live tenant's files as part of a benchmark or endurance experiment.