Re: Optimize expresiions.

From: Alban Hertroys <alban(at)magproductions(dot)nl>
To: han(dot)holl(at)informationslogik(dot)nl
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Optimize expresiions.
Date: 2007-01-11 14:12:32
Message-ID: 45A645D0.50701@magproductions.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

han(dot)holl(at)informationslogik(dot)nl wrote:
> On Thursday 11 January 2007 12:34, Richard Huxton wrote:
>
>>> The query would run much faster with the filter reordered.
>>> Is there a way to tell the planner/optimizer that certain functions are
>>> more expensive than others, and should be postponed in lazy evaluation ?
>>> Or is there a hook in the system that would allow me too look at and
>>> maybe reorder expressions before they are executed ?
>> Not really. Perhaps look into using a functional/expressional index and
>> see if that does the job for you.
>>
> Oh well, pity. Thanks anyway.
> In my case, indexes don't help.

Maybe your functions can be marked STABLE or even IMMUTABLE? That should
help the planner evaluate them less often.

--
Alban Hertroys
alban(at)magproductions(dot)nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
7500 AK Enschede

// Integrate Your World //

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2007-01-11 14:36:34 Re: Problems With VIEWS
Previous Message Jeanna Geier 2007-01-11 14:11:57 Re: Problems With VIEWS