From: John Meinel <john@johnmeinel.com>
To: patrick ~ <sidsrr@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: vacuum analyze slows sql query
Date: Mon, 08 Nov 2004 18:31:33 -0600
Message-ID: <41900FE5.2090704@johnmeinel.com> (raw)
In-Reply-To: <20041108231951.23927.qmail@web52105.mail.yahoo.com>
References: <20041108231951.23927.qmail@web52105.mail.yahoo.com>
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
=:->
Attachments:
signature.asc (application/pgp-signature, 255B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: john@johnmeinel.com, sidsrr@yahoo.com
Subject: Re: vacuum analyze slows sql query
In-Reply-To: <41900FE5.2090704@johnmeinel.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox