Re: since when has pg_stat_user_indexes.idx_scan been counting?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Smith <greg(at)2ndquadrant(dot)com>
Cc: Tomas Vondra <tv(at)fuzzy(dot)cz>, pgsql-performance(at)postgresql(dot)org
Subject: Re: since when has pg_stat_user_indexes.idx_scan been counting?
Date: 2011-05-12 20:16:18
Message-ID: 8490.1305231378@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-performance

Greg Smith <greg(at)2ndquadrant(dot)com> writes:
> You're saying to watch out for (3); I think that's not usually the case,
> but that's a fair thing to warn about. Even in that case, though, it
> may still be worth dropping the index. Year-end processes are not
> usually very sensitive to whether they take a little or a long time to
> execute. But you will be paying to maintain the index every day while
> it is there.

Yeah. Another idea worth considering is to have the year-end processing
build the index it wants, use it, drop it. It seems unlikely that it's
worth maintaining an index year-round for such infrequent usage.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tomas Vondra 2011-05-12 20:46:16 Re: [ADMIN] since when has pg_stat_user_indexes.idx_scan been counting?
Previous Message Greg Smith 2011-05-12 20:06:49 Re: since when has pg_stat_user_indexes.idx_scan been counting?

Browse pgsql-performance by date

  From Date Subject
Next Message Tomas Vondra 2011-05-12 20:46:16 Re: [ADMIN] since when has pg_stat_user_indexes.idx_scan been counting?
Previous Message Greg Smith 2011-05-12 20:06:49 Re: since when has pg_stat_user_indexes.idx_scan been counting?