nixpkgs/nixos/tests/postgresql
Maximilian Bosch 6ae194e419
nixos/postgresql: set Restart=always for postgresql.service
...including a slightly more careful config around restarts, i.e.

* We have intervals of 5 seconds between restarts instead of 100ms.

* If we exceed 5 start attempts in 5*120s (with 120s being the timeout),
  start job gets rate-limited and thus aborted. Do note that there are
  at most 5 start attempts allowed in ~625s by default. If the startup
  fails very quickly, either wait until the rate-limit is over or reset
  the counter using `systemctl reset-failed postgresql.service`.

* The interval of 625s (plus 5s of buffer) are automatically derived
  from RestartSec & TimeoutSec. Changing either will also affect
  StartLimitIntervalSec unless overridden with `mkForce`.
2025-07-26 19:11:54 +02:00
..
wal2json
anonymizer.nix nixos/postgresql: move postStart into separate unit 2025-06-24 15:26:47 +02:00
default.nix postgresqlPackages.pgvecto-rs: move test from VM to postgresqlTestExtension 2025-04-21 12:56:19 +02:00
pgjwt.nix nixos/postgresql: move postStart into separate unit 2025-06-24 15:26:47 +02:00
postgresql-jit.nix nixos/postgresql: move postStart into separate unit 2025-06-24 15:26:47 +02:00
postgresql-tls-client-cert.nix postgresql: always build with JIT enabled 2025-04-05 20:00:13 +02:00
postgresql-wal-receiver.nix nixos/postgresql: move postStart into separate unit 2025-06-24 15:26:47 +02:00
postgresql.nix nixos/postgresql: set Restart=always for postgresql.service 2025-07-26 19:11:54 +02:00
wal2json.nix nixos/postgresql: move postStart into separate unit 2025-06-24 15:26:47 +02:00