Re: vacuum analyze slows sql query

From: John Meinel <john(at)johnmeinel(dot)com>
To: patrick ~ <sidsrr(at)yahoo(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: vacuum analyze slows sql query
Date: 2004-11-09 00:31:33
Message-ID: 41900FE5.2090704@johnmeinel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

patrick ~ wrote:
> Hi John,
>
> Thanks for your reply and analysis.
>
>
> --- John Meinel <john(at)johnmeinel(dot)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
=:->

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2004-11-09 00:56:04 Re: Slow performance with Group By
Previous Message Erik Norvelle 2004-11-09 00:09:58 Slow performance with Group By