Advice on logging strategy

From: Mike Martin <redtux1(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Advice on logging strategy
Date: 2018-10-11 10:26:08
Message-ID: CAOwYNKZEM0JjpJAXiPowLhqtVEpXLbYKqmk_sR6Ee=nvitT4+g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2018-10-11 10:33:41 Re: Advice on logging strategy
Previous Message magodo 2018-10-11 10:08:31 parallel PITR for HA setup