Re: help interpreting pg_stat_user_index view values

From: Erik Darling <edarling80(at)gmail(dot)com>
To: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>, dennisr(at)visi(dot)com
Subject: Re: help interpreting pg_stat_user_index view values
Date: 2014-01-05 22:34:37
Message-ID: CAO+EYw+-DmPOESe-9YiOpGT94a+pDc+bznY4iVNqQda3HEEvKg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You could also look into a filtered index that perhaps only covers dates
earlier than a certain point in time where regular performance wouldn't be
hindered. But Gavin is absolutely right otherwise.

On Jan 5, 2014 5:22 PM, "Sergey Konoplev" <gray(dot)ru(at)gmail(dot)com> wrote:
>
> On Sun, Jan 5, 2014 at 2:19 PM, Gavin Flower
> <GavinFlower(at)archidevsys(dot)co(dot)nz> wrote:
> > On 06/01/14 11:08, Sergey Konoplev wrote:
> > [...]
> >
> >> An index might be considered as useless when there were no idx scans
for
> >> the significantly long period. However it might be non-trivial to
define
> >> this period. Eg. one have a query building an annual report that uses
this
> >> index and the period here is one year.
> >
> > [...]
> >
> > An index only used by an annual report, should possibly be only created
> > prior to the report run & dropped immediately afterwards - why carry its
> > overhead for the bulk of the year?
>
> I fully agree. This is the matter of implementation.
>
> --
> Kind regards,
> Sergey Konoplev
> PostgreSQL Consultant and DBA
>
> http://www.linkedin.com/in/grayhemp
> +1 (415) 867-9984, +7 (901) 903-0499, +7 (988) 888-1979
> gray(dot)ru(at)gmail(dot)com
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Keith Fiske 2014-01-06 02:31:39 Planning error in dynamic string creation in plpgsql
Previous Message Sergey Konoplev 2014-01-05 22:21:42 Re: help interpreting pg_stat_user_index view values