Skip to content

Commit

Permalink
Merge pull request #443 from NixOS/postgres-jit_no-full-page-writes
Browse files Browse the repository at this point in the history
haumea/postgresql: use jit package, disable full page writes
  • Loading branch information
mweinelt committed Jun 17, 2024
2 parents ca11a27 + 6137463 commit 507694d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions delft/haumea/postgresql.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@

services.postgresql = {
enable = true;
enableJIT = true;
package = pkgs.postgresql_16;
dataDir = "/var/db/postgresql/16";
# https://pgtune.leopard.in.ua/#/
logLinePrefix = "user=%u,db=%d,app=%a,client=%h ";
settings = {
listen_addresses = lib.mkForce "10.254.1.9";

# https://vadosware.io/post/everything-ive-seen-on-optimizing-postgres-on-zfs-on-linux/#zfs-related-tunables-on-the-postgres-side
full_page_writes = "off";

checkpoint_completion_target = "0.9";
default_statistics_target = 100;

Expand Down

0 comments on commit 507694d

Please sign in to comment.