Re: Optimze usage of immutable functions as relation

Alexander Kuzmenkov <a.kuzmenkov@postgrespro.ru>

From: Alexander Kuzmenkov <a.kuzmenkov@postgrespro.ru>
To: David Steele <david@pgmasters.net>, Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Antonin Houska <ah@cybertec.at>, Aleksandr Parfenov <asp437@gmail.com>, a.bykov@postgrespro.ru, pgsql-hackers@lists.postgresql.org
Date: 2019-03-07T14:52:59Z
Lists: pgsql-hackers
On 3/5/19 20:22, David Steele wrote:
>
> I'll close this on March 8th if there is no new patch.


This is taking longer than expected. I'll move it to the next commitfest 
and continue working on the patch.

-- 
Alexander Kuzmenkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company



Commits

  1. Prevent bogus pullup of constant-valued functions returning composite.

  2. Allow functions-in-FROM to be pulled up if they reduce to constants.