Re: How to Log DBA actions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Tue, Dec 21, 2021 at 1:31 PM Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
Nikolay Samokhvalov <samokhvalov@xxxxxxxxx> writes:
> On Sun, Dec 19, 2021 at 10:43 PM Holger Jakobs <holger@xxxxxxxxxx> wrote:
>> There is a setting log_statements which can be set to none (the default),
>> ddl, mod or all

> ..and, unfortunately, any user will be able to set it back via SET.

Really?

You're right, I was wrong.

postgres=# select context from pg_settings where name = 'log_statement';
  context
-----------
 superuser
(1 row)  

[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux