Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log_min_duration_statement set to 0 - records all the parameters #823

Open
tejaswikt opened this issue Apr 23, 2024 · 1 comment
Open

log_min_duration_statement set to 0 - records all the parameters #823

tejaswikt opened this issue Apr 23, 2024 · 1 comment

Comments

@tejaswikt
Copy link

Hi , we have set log_min_duration_statement = 0 ,
this is causing to record all values of ,

  1. select * from table where id =
  2. update table set id = where id =
  3. 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 ?

@darold
Copy link
Owner

darold commented Apr 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants