On Sat, Apr 11, 2020 at 3:57 PM James Coleman <jtc...@gmail.com> wrote: > .. > > It seems like this might be somewhat related to the currently-moribund > > patch to allow caching of the values of stable subexpressions from > > one execution to the next. If we had that infrastructure you could > > imagine extending it to allow caching the expanded not flat form of > > some datums. Again I'm not entirely sure what would drive the choice. > > I'll have to look into that patch to see if it sparks any ideas (or if > it's worth working on for its own merits).
Is this the patch [1] you're thinking of? James [1]: https://www.postgresql.org/message-id/flat/da87bb6a014e029176a04f6e50033cfb%40postgrespro.ru