Re: vacuum analyze slows sql query - Mailing list pgsql-performance

From John Meinel
Subject Re: vacuum analyze slows sql query
Date
Msg-id 41900FE5.2090704@johnmeinel.com
Whole thread Raw
In response to Re: vacuum analyze slows sql query  (patrick ~ <sidsrr@yahoo.com>)
List 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
=:->


Attachment

pgsql-performance by date:

Previous
From: Erik Norvelle
Date:
Subject: Slow performance with Group By
Next
From: Tom Lane
Date:
Subject: Re: Slow performance with Group By