Content-Length: 256589 | pFad | http://github.com/postgrespro/postgres/commit/2c6e6471af9f5b6e4d1b25814a86a1dbd2eb928a

22 Allow treating TABLESAMPLE scans as parallel-safe. · postgrespro/postgres@2c6e647 · GitHub
Skip to content

Commit 2c6e647

Browse files
committed
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.
1 parent 0e495c5 commit 2c6e647

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/optimizer/path/allpaths.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,6 @@ set_rel_consider_parallel(PlannerInfo *root, RelOptInfo *rel,
538538
if (has_parallel_hazard((Node *) rte->tablesample->args,
539539
false))
540540
return;
541-
return;
542541
}
543542

544543
/*

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2c6e6471af9f5b6e4d1b25814a86a1dbd2eb928a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy