Re: Stable function Repeatedly Called

From: "CN LIOU" <cnliou(at)graffiti(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Stable function Repeatedly Called
Date: 2003-01-24 02:58:19
Message-ID: 20030124025819.28902.qmail@graffiti.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message codeWarrior 2003-01-24 03:39:11 Re: ORDER BY 'criteria'
Previous Message codeWarrior 2003-01-24 02:41:53 Re: pg_dump automatic