Re: Using pgAudit to audit interesting tables for all users except for batch user?

Поиск
Список
Период
Сортировка
От Colin 't Hart
Тема Re: Using pgAudit to audit interesting tables for all users except for batch user?
Дата
Msg-id CAMon-aSyCvDk924RuP=BU5B4qsFAwJidWzQKmSEMgfL5KXKodQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Using pgAudit to audit interesting tables for all users except for batch user?  (Greg Sabino Mullane <htamfids@gmail.com>)
Список pgsql-general
Duh, I feel silly now :-)

Works perfectly.

Many thanks,

Colin

On Tue, 18 Nov 2025 at 16:11, Greg Sabino Mullane <htamfids@gmail.com> wrote:
On Tue, Nov 18, 2025 at 4:18 AM Colin 't Hart <colinthart@gmail.com> wrote:
alter user <batchuser> set pgaudit.log to 'none';

That's close! pgaudit.log deals with session level things, but you want to exclude object-level things. Try:

create role skip_pguadit;
alter user <batchuser> set pgaudit.role = 'skip_pgaudit';


Cheers,
Greg

--
Enterprise Postgres Software Products & Tech Support

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