Re: logging aql queries only one table or tables of one scheme

Поиск
Список
Период
Сортировка
От Achilleas Mantzios
Тема Re: logging aql queries only one table or tables of one scheme
Дата
Msg-id 45b317b6-6b12-0a64-329d-9080ff1a9be3@matrix.gatewaynet.com
обсуждение исходный текст
Ответ на Re: logging aql queries only one table or tables of one scheme  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы AW: logging aql queries only one table or tables of one scheme
Список pgsql-admin
On 19/11/18 6:13 μ.μ., David G. Johnston wrote:
> On Mon, Nov 19, 2018 at 2:38 AM Häfliger Guido
> <guido.haefliger@vogelwarte.ch> wrote:
>> Is it possible to enable query statement logging only for one table (or one scheme)? If I set
log_min_duration_statement= 0 everything is logged, the log-files becomes huge.
 
> No, that particular setting (like most) doesn't operate at a
> sub-session level.  And since it is super-user only changing it for
> individual queries is not recommended - though you could create a
> security definer function to make it doable (never tried it myself).


pgaudit does the trick, but it takes some reading to get what you need.


>
> David J.
>


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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: autovacuum is running but pg_stat_all_tables empty
Следующее
От: Bogdan Yakovenko
Дата:
Сообщение: pgadmin4 - session timeout problem in browser