Configuration
The configuration file is generated by amphi init in the data directory. Each setting is written with a commented default so the file is self-describing.
Use SET for session-scoped changes:
SET work_mem = '64MB';
SHOW work_mem;
Keep secrets outside the configuration file when possible. Restart the server after changing startup-only settings. See the configuration reference for parameter semantics.
Continuous checkpoint
checkpoint_batch_pages, checkpoint_timeout, bgwriter_delay, max_recovery_wal, checkpoint_min_publish_advance,
checkpoint_dirty_target, and checkpoint_dirty_trigger control continuous checkpointing. The
generated defaults are starting recommendations, not performance guarantees: local NVMe, slow
disks, cloud volumes, and Kubernetes PVCs may require different values. Benchmark the settings on
the actual storage with the application’s workload and adjust them when latency, throughput, or
recovery measurements indicate a better configuration.
Commit durability
default_commit_durability sets the session default and accepts local (the default) or async.
local waits for WAL synchronization before acknowledging; async acknowledges after append and may
lose acknowledged commits if the process crashes. The session GUC commit_durability selects the
profile for ordinary DML. DDL, catalog operations, and 2PC always remain local.
wal_writer_delay sets the normal maximum interval between periodic WAL-writer flush attempts. It
limits the usual loss window for asynchronous commits but is not a strict guarantee. These values are
operational recommendations: the best result depends on the actual storage and workload.