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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy