Re: Is it possible to keep track of SELECTs?

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Is it possible to keep track of SELECTs?
Дата
Msg-id 52713980-BE9D-4A45-8052-862DB6123494@thebuild.com
обсуждение исходный текст
Ответ на Is it possible to keep track of SELECTs?  (Dominique Devienne <ddevienne@gmail.com>)
Ответы Re: Is it possible to keep track of SELECTs?
Список pgsql-general

> On Mar 12, 2024, at 07:15, Dominique Devienne <ddevienne@gmail.com> wrote:
> So is it possible to track the last time a SELECT was performed on some TABLE?

Directly, no.  You could periodically sample the various table-level statistics, and conclude that tables that have had
sometype of scan since the last scan have had a SELECT run against them.  It might not be 100% accurate if (for
example)you reset the statistics or lose them for some other reason, but it might be sufficient for the application. 


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

Предыдущее
От: Dominique Devienne
Дата:
Сообщение: Is it possible to keep track of SELECTs?
Следующее
От: Amna Abdul Rehman
Дата:
Сообщение: Postgresql docker health check