postgresql: disable full_page_writes

This commit is contained in:
2026-03-03 15:05:59 -05:00
parent 71c3e499bd
commit 514ccb4258

View File

@@ -19,6 +19,14 @@
enable = true; enable = true;
package = pkgs.postgresql_16; package = pkgs.postgresql_16;
dataDir = service_configs.postgres.dataDir; dataDir = service_configs.postgres.dataDir;
settings = {
# ZFS provides checksumming and atomic writes, making PostgreSQL's
# full_page_writes redundant. Disabling reduces write amplification
# and SSD wear on the zpool.
# Did this in conjunction with setting recordsize=8k
# on the zvolume this is on
full_page_writes = false;
};
}; };
} }