Re: Stable function Repeatedly Called - Mailing list pgsql-general

From CN LIOU
Subject Re: Stable function Repeatedly Called
Date
Msg-id 20030124025819.28902.qmail@graffiti.net
Whole thread Raw
In response to Stable function Repeatedly Called  ("CN LIOU" <cnliou@graffiti.net>)
List pgsql-general
Thank you! Robert,

>
> select * from tt1 where c1=(select f1('x'));
> update tt1 set c2='ABC' WHERE c1=(select f1('x'));
>
> I think there might be other benefits to this in regards to index usage
> as well.
>

Indeed this fix the problem.
However, when this is in rule, function f1 is called repeatedly again. Any idea?

Regards,

CN

--
_______________________________________________
Get your free email from http://www.graffiti.net

Powered by Outblaze

pgsql-general by date:

Previous
From: Oliver Vecernik
Date:
Subject: Re: standard schemas for addresses, others?
Next
From: Lamar Owen
Date:
Subject: Re: Compiling 7.2.3 on RH 8.0