]> granicus.if.org Git - postgresql/commit
Allow treating TABLESAMPLE scans as parallel-safe.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Jul 2016 20:55:27 +0000 (16:55 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Jul 2016 20:55:27 +0000 (16:55 -0400)
commit2c6e6471af9f5b6e4d1b25814a86a1dbd2eb928a
tree80b1f11f8aaf4ea724e82b2505433e168647d2fa
parent0e495c5e2f97aa7e2323705a6daed73cdd6c168c
Allow treating TABLESAMPLE scans as parallel-safe.

This was the intention all along, but an extraneous "return;" in
set_rel_consider_parallel() caused sampled rels to never be marked
consider_parallel.

Since we don't have any partial tablesample path/plan type yet, there's
no possibility of parallelizing the sample scan itself; but this fix
allows such a scan to appear below a parallel join, for example.
src/backend/optimizer/path/allpaths.c