Search Postgresql Archives

Re: Findout long unused tables in database

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

 





Am 26.09.22 um 14:05 schrieb Andreas Fröde:
Hello,
I am looking for a way to find out when a table was last used for reading. (Without writing every statement in the logfile or putting a trigger on it). Is there such a thing?


no really what you are looking for, i know, but we have pg_stat_user_tables. There can you find how often the table was queried in the past. Take the data, wait some time, take it again and compare.



Regards, Andreas

--
Andreas Kretschmer
Technical Account Manager (TAM)
www.enterprisedb.com






[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