Re: Separate log_destination, user specific

Поиск
Список
Период
Сортировка
От Holger Jakobs
Тема Re: Separate log_destination, user specific
Дата
Msg-id 8cca2a2c-9a05-5915-137d-4719f72623b6@jakobs.com
обсуждение исходный текст
Ответ на Separate log_destination, user specific  (Daulat <daulat.dba@gmail.com>)
Список pgsql-admin
Am 25.01.22 um 11:48 schrieb Daulat:
Hello Team,

Is it possible to set a separate log_destination for some users  in Postgres? 
As I know all actions are recorded under the directory specified by log_destination. 

But I want to create a separate log file for DBA users to log their actions.
Is any third party or free ware tool available to accomplish this task ?

Please suggest ! 

Thanks,

There is no setting for this, but of course you can set up a process which is always watching the log and copying messages by user (or other criteria) to other files.

Make sure that in case of log rotation your process switches to the new current log file.


-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
Вложения

В списке pgsql-admin по дате отправления:

Предыдущее
От: Daulat
Дата:
Сообщение: Separate log_destination, user specific
Следующее
От: Paul Smith
Дата:
Сообщение: Re: Separate log_destination, user specific