Re: Suppressing unused subquery output columns - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Suppressing unused subquery output columns
Date
Msg-id 1210.1402023256@sss.pgh.pa.us
Whole thread Raw
In response to Re: Suppressing unused subquery output columns  (Rod Taylor <rod.taylor@gmail.com>)
Responses Re: Suppressing unused subquery output columns  (Jim Nasby <jim@nasby.net>)
List pgsql-hackers
Rod Taylor <rod.taylor@gmail.com> writes:
> On Thu, Jun 5, 2014 at 10:27 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I'm not entirely convinced that it's worth the extra planning cycles,
>> though.  Given the small number of complaints to date, it might not
>> be worth doing this.  Thoughts?

> Would this avoid execution of expensive functions in views when their
> output is discarded?

Yes, as long as they're not marked volatile and don't return sets.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Rod Taylor
Date:
Subject: Re: Suppressing unused subquery output columns
Next
From: Peter Geoghegan
Date:
Subject: Re: B-Tree support function number 3 (strxfrm() optimization)