From a6e1347a1c4e207a09cf28f317df9c693703ab4f Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 26 Jun 2024 20:56:44 +0300 Subject: [PATCH] Postgres : Add debug note. --- container/Postgres.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/container/Postgres.nix b/container/Postgres.nix index 7562a6c..7fd9816 100644 --- a/container/Postgres.nix +++ b/container/Postgres.nix @@ -70,6 +70,15 @@ in { package = pkgs.postgresql_14; dataDir = "/var/lib/postgresql/data/14"; enableTCPIP = true; + + # NOTE: Debug mode. + # settings = { + # log_connections = true; + # log_destination = lib.mkForce "syslog"; + # log_disconnections = true; + # log_statement = "all"; + # logging_collector = true; + # }; }; }; };