Re: Caching for stable expressions with constant arguments v6 - Mailing list pgsql-hackers

From Marti Raudsepp
Subject Re: Caching for stable expressions with constant arguments v6
Date
Msg-id CABRT9RB+=5=5BQjxAfbz--1UVnv5j4z2iHSCvatx9yes4BJaAw@mail.gmail.com
Whole thread Raw
In response to Re: Caching for stable expressions with constant arguments v6  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
On Wed, Oct 31, 2012 at 2:21 AM, Josh Berkus <josh@agliodbs.com> wrote:
> Hey, are you going to work on this for 9.3?

Yes, I do plan to get back to it. Thanks for the push :)

> I really could use the feature ...

If you're not aware already, you can work around the limitation using
a subquery.

Instead of: WHERE foo_column > expensive_expression()
Write: WHERE foo_column > (SELECT expensive_expression())

Regards,
Marti



pgsql-hackers by date:

Previous
From: Palle Girgensohn
Date:
Subject: alter table tablename add column - breaks pl/pgsql function returns tablename
Next
From: Noah Misch
Date:
Subject: Re: foreign key locks