patrick ~ wrote:
Hi John,

Thanks for your reply and analysis.


--- John Meinel <[EMAIL PROTECTED]> 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: signature.asc
Description: OpenPGP digital signature

Reply via email to