Re: pg_stat_activity

Поиск
Список
Период
Сортировка
От pavan95
Тема Re: pg_stat_activity
Дата
Msg-id 1528790620675-0.post@n3.nabble.com
обсуждение исходный текст
Ответ на Re: pg_stat_activity  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-admin
Hi David,

On Monday, June 11, 2018, pavan95 <[hidden email]> wrote:
Hi David,

  >>You can also configure table level audit with the help of triggers to
capture DML's

​>How?

Please find below procedure to configure table level audit with the help of
triggers :
[...]

That's it and you are done. Just add the table you want to track the DML's
in the below way:

>I'm missing the part where any of that has to do with pg_stat_activity and
the question that this >thread is about...in particular the part about
select statements.

Yeah, this method is to track the execution times of the DML queries(long
running), just said if Ron's intention was to identify the long running
queries might be SELECT .. FOR UPDATES, he can use this method.
And it is not related in any way with pg_stat_activity.

Regards,
Pavan




--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html


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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: PostgreSQL 'Corruption & Fragmentation' detection andresolution/fix
Следующее
От: Pierre Ochsenbein
Дата:
Сообщение: pg_restore failed with the extension uuid-ossp.control