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

From: Sylvain Fauvel <sylvain(dot)fauvel(at)gmail(dot)com>
To: Prince Pathria <prince(dot)pathria(at)goevive(dot)com>
Cc: Frantz Song <frantz(dot)song(at)gmail(dot)com>, 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 08:49:07
Message-ID: CAGWC_rJtNtdY+0imkThEqBsOJ2Yf_sLf+CBkk53ZZBFLVErw8A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi all,

maybe a tool such as pgbadger help getting stats from logs ?

Kind regards

Sylvain

Le lun. 31 déc. 2018 à 07:52, Prince Pathria <prince(dot)pathria(at)goevive(dot)com> a
écrit :

> Hi Frantz,
>
> For the same thing we have enabled "pg_stat_statements" on
> postgresql.conf.
> If you are not using "pg_stat_statements" as of now, sadly you're left
> with 2 options
> 1. Slow logs with lower response time, if you have enabled them, though
> not much trustworthy.
> 2. Grep in application logs of all apps using postgres as database backend.
>
> Happy to help :)
> Prince Pathria Systems Architect Intern Evive +91 9478670472 goevive.com
>
>
> On Mon, Dec 31, 2018 at 11:59 AM Frantz Song <frantz(dot)song(at)gmail(dot)com>
> 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

Browse pgsql-admin by date

  From Date Subject
Next Message Shreeyansh Dba 2018-12-31 11:24:23 Re: How to find the table which is not used in recent 3 month?
Previous Message Prince Pathria 2018-12-31 06:52:34 Re: How to find the table which is not used in recent 3 month?