From: | Tejaswi K T <tejaswi(dot)kt(at)gmail(dot)com> |
---|---|
To: | pgsql-admin(at)lists(dot)postgresql(dot)org |
Subject: | Values Logged in Logfile of postgres logs |
Date: | 2024-04-22 20:00:34 |
Message-ID: | CAFxeN6T2g-Opu7_E23sC1NNtSmRSRShY-KnS8KWtz0o7NsYW_w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi Friends,
My postgres log has an insert statement with values too .
Is this safe of logging the values in the log file.
Is there a way to mask the values whenever DML operations happen.
--------------------inserting record -------------------
postgres=# insert into test (id) values(4);
INSERT 0 1
postgres=# show log_min_duration_statement;
log_min_duration_statement
----------------------------
* 0 -- to capture all statements happening *
(1 row)
2024-04-22 21:54:13.989 CEST [11805] postgres(at)postgres LOG: duration:
10.455 ms statement: insert into test (id) *values(4);*
2024-04-22 21:54:23.197 CEST [11805] postgres(at)postgres ERROR: unrecognized
configuration parameter "log_min_duration"
------------ the above log has values of what data got inserted as well.
regards
Tejas
From | Date | Subject | |
---|---|---|---|
Next Message | Serkan Akdemir | 2024-04-23 07:56:12 | Re: Values Logged in Logfile of postgres logs |
Previous Message | Keith Fiske | 2024-04-22 16:01:01 | Re: Set fillfactor to partition child tables |