blacksteel: use postgresql_16

This commit is contained in:
Guanran Wang 2024-08-11 21:26:31 +08:00
parent 538fffeee5
commit cf1c1e506d
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -85,8 +85,8 @@
services.postgresql = { services.postgresql = {
enable = true; enable = true;
package = pkgs.postgresql_16;
settings = { settings = {
# https://pgtune.leopard.in.ua/
max_connections = 200; max_connections = 200;
shared_buffers = "4GB"; shared_buffers = "4GB";
effective_cache_size = "12GB"; effective_cache_size = "12GB";
@ -94,7 +94,7 @@
checkpoint_completion_target = 0.9; checkpoint_completion_target = 0.9;
wal_buffers = "16MB"; wal_buffers = "16MB";
default_statistics_target = 100; default_statistics_target = 100;
random_page_cost = "1.1"; random_page_cost = 1.1;
effective_io_concurrency = 200; effective_io_concurrency = 200;
work_mem = "5242kB"; work_mem = "5242kB";
huge_pages = "off"; huge_pages = "off";