Re: vacuum analyze slows sql query

Поиск
Список
Период
Сортировка
От John Meinel
Тема Re: vacuum analyze slows sql query
Дата
Msg-id 41900FE5.2090704@johnmeinel.com
обсуждение исходный текст
Ответ на Re: vacuum analyze slows sql query  (patrick ~ <sidsrr@yahoo.com>)
Список pgsql-performance
patrick ~ wrote:
> Hi John,
>
> Thanks for your reply and analysis.
>
>
> --- John Meinel <john@johnmeinel.com> wrote:
>
>
>>patrick ~ wrote:
>>[...]
>>
>>>pkk=# explain analyze execute pkk_01(    241 );
>>>      QUERY PLAN
>>>
>>

One other thing that I just thought of. I think it is actually possible
to add an index on a function of a column. So if you have the
"is_really_pending" function, you might be able to do:

CREATE INDEX pkk_is_really_pending ON pkk_purchase
    (is_really_pending(purchase_id));

But you need a better guru than I to make sure of that.

This *might* do what you need.

John
=:->


Вложения

В списке pgsql-performance по дате отправления:

Предыдущее
От: Erik Norvelle
Дата:
Сообщение: Slow performance with Group By
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Slow performance with Group By