From: Rob Sargent <robjsargent@gmail.com>
To: Mike Martin <redtux1@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Advice on logging strategy
Date: Thu, 11 Oct 2018 04:33:41 -0600
Message-ID: <76CE3E73-7564-441F-9E2B-3F5873D4A153@gmail.com> (raw)
In-Reply-To: <CAOwYNKZEM0JjpJAXiPowLhqtVEpXLbYKqmk_sR6Ee=nvitT4+g@mail.gmail.com>
References: <CAOwYNKZEM0JjpJAXiPowLhqtVEpXLbYKqmk_sR6Ee=nvitT4+g@mail.gmail.com>
> On Oct 11, 2018, at 4:26 AM, Mike Martin <redtux1@gmail.com> wrote:
>
> I have a question on logging strategy
>
> I have loggin set to
> log_statement = 'all' on a network database with logging set to csv so I can import it to a logging table
>
> However the database is populated via a nightly routine downloading data via REST APIusing prepared statements
>
> 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
>
> thanks
>
Do you want all the log lines in you logging table?
There was a thread yesterday (10.Oct.2018) on COPY which mention the possibility of multiple processes COPYing to same table.
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: robjsargent@gmail.com, redtux1@gmail.com
Subject: Re: Advice on logging strategy
In-Reply-To: <76CE3E73-7564-441F-9E2B-3F5873D4A153@gmail.com>
References: <CAOwYNKZEM0JjpJAXiPowLhqtVEpXLbYKqmk_sR6Ee=nvitT4+g@mail.gmail.com> <76CE3E73-7564-441F-9E2B-3F5873D4A153@gmail.com>
* 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