pgbadger
pgbadger copied to clipboard
log_min_duration_statement set to 0 - records all the parameters
Hi , we have set log_min_duration_statement = 0 , this is causing to record all values of ,
- select * from table where id =
- update table set id =
where id = - delete from table where id =
I want to mask all these values for the complete database and not to be printed in the logs, as this will have security issue .
is there any statement to be set to mask the values and pass as literals ?
For pgbadger you can use the dedicated command line option to obfuscate the values:
--anonymize : obscure all literals in queries, useful to hide confidential data.
In PostgreSQL logs, there is no way to do that.