Re: pgsql: Rewrite the code that applies scan/join targets to paths.

2018-03-29 Thread Andres Freund
On 2018-03-29 19:52:40 +, Robert Haas wrote: > Rewrite the code that applies scan/join targets to paths. > > If the toplevel scan/join target list is parallel-safe, postpone > generating Gather (or Gather Merge) paths until after the toplevel has > been adjusted to return it. This (correctly)

pgsql: Rewrite the code that applies scan/join targets to paths.

2018-03-29 Thread Robert Haas
Rewrite the code that applies scan/join targets to paths. If the toplevel scan/join target list is parallel-safe, postpone generating Gather (or Gather Merge) paths until after the toplevel has been adjusted to return it. This (correctly) makes queries with expensive functions in the target list