From: David Steele <david@pgmasters.net>
To: Mike Martin <redtux1@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Advice on logging strategy
Date: Fri, 12 Oct 2018 14:33:01 +0100
Message-ID: <5017eca2-e579-36bb-4878-725878ceaeac@pgmasters.net> (raw)
In-Reply-To: <CAOwYNKZEM0JjpJAXiPowLhqtVEpXLbYKqmk_sR6Ee=nvitT4+g@mail.gmail.com>
References: <CAOwYNKZEM0JjpJAXiPowLhqtVEpXLbYKqmk_sR6Ee=nvitT4+g@mail.gmail.com>
On 10/11/18 11:26 AM, Mike Martin wrote:
>
> This results in enormous log files which take ages to import using copy
> becuase each execute statement is logged with the parameters chosen
>
> Is there any way around this?
>
> I cant find any way to filter dml statements
pgAudit (https://github.com/pgaudit/pgaudit) gives you fine-grain
control over what is logged by command type, table, or user as well as a
lot more detail.
--
-David
david@pgmasters.net
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: david@pgmasters.net, redtux1@gmail.com
Subject: Re: Advice on logging strategy
In-Reply-To: <5017eca2-e579-36bb-4878-725878ceaeac@pgmasters.net>
References: <CAOwYNKZEM0JjpJAXiPowLhqtVEpXLbYKqmk_sR6Ee=nvitT4+g@mail.gmail.com> <5017eca2-e579-36bb-4878-725878ceaeac@pgmasters.net>
* 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