Search Postgresql Archives

Re: Is it possible to keep track of SELECTs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On Mar 12, 2024, at 07:15, Dominique Devienne <ddevienne@xxxxxxxxx> 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 some type 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.





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux