From: Bruce Momjian <bruce@momjian.us>
To: Олег Самойлов <splarv@ya.ru>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: logging proxy
Date: Thu, 7 Nov 2019 20:33:45 -0500
Message-ID: <20191108013345.GA3553@momjian.us> (raw)
In-Reply-To: <DFA76755-B7C4-41E8-8A9B-6186BA32AA8D@ya.ru>
References: <DFA76755-B7C4-41E8-8A9B-6186BA32AA8D@ya.ru>
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 +
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: bruce@momjian.us, splarv@ya.ru
Subject: Re: logging proxy
In-Reply-To: <20191108013345.GA3553@momjian.us>
References: <DFA76755-B7C4-41E8-8A9B-6186BA32AA8D@ya.ru> <20191108013345.GA3553@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox