Re: How to find the table which is not used in recent 3 month?

From: Fabio Pardi <f(dot)pardi(at)portavita(dot)eu>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: How to find the table which is not used in recent 3 month?
Date: 2018-12-31 13:22:07
Message-ID: e8f169bf-ee3a-6eed-1622-a1fd7b853c26@portavita.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Frantz,

If 'used' means 'written', then I think it might be an idea to look at the youngest 'xmin' in the table, to know when it was last modified together with keeping a log of what xmin is associated to each day.

regards,

fabio pardi

On 31/12/2018 07:30, Frantz Song wrote:
> Dear all,
>
> I'm use postgresql 9.6, it have 800+tables and some of them is not frequently used. 
> How to find the table which is not used in recent 3 month? 
>
> Thanks!
>
> --
> P Help save trees...please don't print this e-mail/ unless you really need to./

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Fabio Pardi 2018-12-31 14:01:39 Re: How to find the table which is not used in recent 3 month?
Previous Message Shreeyansh Dba 2018-12-31 11:24:23 Re: How to find the table which is not used in recent 3 month?