Allow RTE_SUBQUERY rels to be considered parallel-safe.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 110a6dbdebebac9401b43a8fc223e6ec43cd4d10
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-07-03T22:24:49Z
Releases: 9.6.0
Allow RTE_SUBQUERY rels to be considered parallel-safe.

There isn't really any reason not to; the original comments here were
partly confused about subplans versus subquery-in-FROM, and partly
dependent on restrictions that no longer apply now that subqueries return
Paths not Plans.  Depending on what's inside the subquery, it might fail
to produce any parallel_safe Paths, but that's fine.

Tom Lane and Robert Haas

Files

PathChange+/−
src/backend/optimizer/path/allpaths.c modified +12 −8