Обсуждение: How to Log DBA actions

Поиск
Список
Период
Сортировка

How to Log DBA actions

От
Daulat
Дата:
Hi Team,

I want to log DBA actions in Postgres. Can you please suggest how I can achieve it.
Will pg_audit and log_min_duration_statements help on it?

Thanks,


Re: How to Log DBA actions

От
Holger Jakobs
Дата:
There is a setting log_statements which can be set to none (the default), ddl, mod or all

This might help.

Am 20. Dezember 2021 07:34:13 MEZ schrieb Daulat <daulat.dba@gmail.com>:
Hi Team,

I want to log DBA actions in Postgres. Can you please suggest how I can achieve it.
Will pg_audit and log_min_duration_statements help on it?

Thanks,


--
Holger Jakobs, Bergisch Gladbach
+49 178 9759012
- sent from mobile, therefore short -

Re: How to Log DBA actions

От
Daulat
Дата:
Thanks Holger ! 
It means, there is no use of pgaudit if we already have log_statements enabled?

On Mon, Dec 20, 2021 at 12:13 PM Holger Jakobs <holger@jakobs.com> wrote:
There is a setting log_statements which can be set to none (the default), ddl, mod or all

This might help.

Am 20. Dezember 2021 07:34:13 MEZ schrieb Daulat <daulat.dba@gmail.com>:
Hi Team,

I want to log DBA actions in Postgres. Can you please suggest how I can achieve it.
Will pg_audit and log_min_duration_statements help on it?

Thanks,


--
Holger Jakobs, Bergisch Gladbach
+49 178 9759012
- sent from mobile, therefore short -