From: | Melvin Davidson <melvin6925(at)gmail(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | Lucas Possamai <drum(dot)lucas(at)gmail(dot)com>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, Postgres General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Unused indexes - PostgreSQL 9.2 |
Date: | 2016-05-24 00:57:41 |
Message-ID: | CANu8Fiyxb242kX=tNvPc2spQw7SoD=1rsST7vnW3hgScUn0DNA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Here is the url which explains the columns in pg_stat_all_indexes view
http://www.postgresql.org/docs/9.2/static/monitoring-stats.html#PG-STAT-ALL-INDEXES-VIEW
On Mon, May 23, 2016 at 8:42 PM, David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> On Mon, May 23, 2016 at 8:33 PM, Lucas Possamai <drum(dot)lucas(at)gmail(dot)com>
> wrote:
>
>>
>>
>> On 24 May 2016 at 12:18, Jeff Janes <jeff(dot)janes(at)gmail(dot)com> wrote:
>>
>>> On Mon, May 23, 2016 at 4:23 PM, Lucas Possamai <drum(dot)lucas(at)gmail(dot)com>
>>> wrote:
>>> >
>>> > That index has been added just 3 hours ago, and you can see that the
>>> > times_used goes over 41000.... How is that possible??
>>>
>>> Well, that is what it is there for, right , to be used? My ancient
>>> laptop can use an index that many times in less than 20 seconds,
>>> running flat out.
>>>
>>>
>> Yeah!
>> But I mean... over 70.000 times in 4 hours? that's a lot of usage!
>> ahhahaha
>>
>>
>>> >
>>> > Don't think the query is right.
>>> >
>>> > Can you please check ?
>>>
>>> The query seems right to me.
>>>
>>> Cheers,
>>>
>>> Jeff
>>>
>>
>> I think the query is ok.. just wanna understand if that value is correct
>> :O
>>
>> If it is.. I'm happy with that. Just shows the work of finding and
>> creating the index worthed it.
>>
>>
> I don't have the answer off hand but what is it counting? If it counts,
> say, each lookup into the index during a nested loop evaluation the
> difference in perception could be easily explained.
>
> David J.
>
>
--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.
From | Date | Subject | |
---|---|---|---|
Next Message | Guyren Howe | 2016-05-24 03:48:26 | FIRST_VALUE: need to group by argument? |
Previous Message | David G. Johnston | 2016-05-24 00:42:33 | Re: Unused indexes - PostgreSQL 9.2 |