[Backport release-26.05] nixos/gitlab: increase postgres max locks per transaction (#553288)

This commit is contained in:
Vladimír Čunát
2026-08-17 05:10:17 +00:00
committed by GitHub

View File

@@ -1285,6 +1285,8 @@ in
services.postgresql = optionalAttrs databaseActuallyCreateLocally {
enable = true;
ensureUsers = singleton { name = cfg.databaseUsername; };
# With the PostgreSQL update to 17.6, the default was no longer enough.
settings.max_locks_per_transaction = lib.mkDefault 128;
};
# Enable rotation of log files