Re: logging proxy

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Олег Самойлов <splarv(at)ya(dot)ru>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: logging proxy
Date: 2019-11-08 01:33:45
Message-ID: 20191108013345.GA3553@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)momjian(dot)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 +

In response to

  • logging proxy at 2019-10-31 22:58:10 from Олег Самойлов

Browse pgsql-general by date

  From Date Subject
Next Message İlyas Derse 2019-11-08 08:18:54 INOUT PARAMETERS WITH RETURN TABLES IN FUNCTION
Previous Message Carlos T. Groero Carmona 2019-11-07 19:45:00 Re: pg_hba y ldap