Re: How to Log DBA actions

From: Nikolay Samokhvalov <samokhvalov(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Holger Jakobs <holger(at)jakobs(dot)com>, Daulat <daulat(dot)dba(at)gmail(dot)com>, pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: How to Log DBA actions
Date: 2021-12-21 21:49:04
Message-ID: CANNMO+KY2ZrxWCBkvq15vrYTEObw9GmgibskCjBY2hJiqb280w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Dec 21, 2021 at 1:31 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Nikolay Samokhvalov <samokhvalov(at)gmail(dot)com> writes:
> > On Sun, Dec 19, 2021 at 10:43 PM Holger Jakobs <holger(at)jakobs(dot)com>
> 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)

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Reno, Natalie 2021-12-23 18:07:48 RE: Reconfiguring active PostgreSQL instance
Previous Message Tom Lane 2021-12-21 21:31:22 Re: How to Log DBA actions