Re: logging proxy - Mailing list pgsql-general

From Bruce Momjian
Subject Re: logging proxy
Date
Msg-id 20191108013345.GA3553@momjian.us
Whole thread Raw
In response to logging proxy  (Олег Самойлов <splarv@ya.ru>)
List pgsql-general
On Fri, Nov 1, 2019 at 01:58:10AM +0300, Олег Самойлов
wrote:
> Does anyone know PostgresQL proxy which can log queries with username,
> ip and affected rows for security reason. PostgresQL itself can log
> almost all, except affected rows.

You can use the server logs to get the non-row information, then use
streaming replication with logical decoding to get the rows for each
transaction started by the user.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +



pgsql-general by date:

Previous
From: Matthias Apitz
Date:
Subject: Re: type SERIAL in C host-struct
Next
From: İlyas Derse
Date:
Subject: INOUT PARAMETERS WITH RETURN TABLES IN FUNCTION