Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVbcr-0008NB-O5 for pgsql-general@arkaria.postgresql.org; Sun, 11 Apr 2021 15:03:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lVbcq-0001Vo-MF for pgsql-general@arkaria.postgresql.org; Sun, 11 Apr 2021 15:03:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVbcq-0001Vh-FL for pgsql-general@lists.postgresql.org; Sun, 11 Apr 2021 15:03:48 +0000 Received: from smtp13.smtpout.orange.fr ([80.12.242.135] helo=smtp.smtpout.orange.fr) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.92) (envelope-from ) id 1lVbcm-0008Oj-UI for pgsql-general@postgresql.org; Sun, 11 Apr 2021 15:03:47 +0000 Received: from X201.home ([193.252.24.13]) by mwinf5d75 with ME id rT3h240070GxKGH03T3hXS; Sun, 11 Apr 2021 17:03:41 +0200 X-ME-Helo: X201.home X-ME-Date: Sun, 11 Apr 2021 17:03:41 +0200 X-ME-IP: 193.252.24.13 Date: Sun, 11 Apr 2021 17:03:41 +0200 From: Vincent Veyron To: Durumdara Cc: Postgres General Subject: Re: Who altered the database? Message-Id: <20210411170341.8215c3ce4fd6e553c1fc73cf@wanadoo.fr> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 9 Apr 2021 13:14:17 +0200 Durumdara wrote: >=20 > What can we do to get info about the change (who did it, from what IP, wh= en > it happened) in the future? >=20 > As I see we can't define precisely what we want to log... All or nothing. >=20 Create a web interface to apply the changes and have the web server log the= info in its own logs? Apache has this directive : https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#logformat --=20 Bien =E0 vous, Vincent Veyron=20 https://marica.fr/=20 Logiciel de suivi des contentieux juridiques, des sinistres d'assurance et = des contrats