Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d6c8b34

Browse files
committed
Fix incorrect variable type in set_rel_consider_parallel().
func_parallel() returns char not Oid. Harmless, but still wrong. Amit Langote
1 parent b57c833 commit d6c8b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/optimizer/path/allpaths.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ set_rel_consider_parallel(PlannerInfo *root, RelOptInfo *rel,
537537
*/
538538
if (rte->tablesample != NULL)
539539
{
540-
Oid proparallel = func_parallel(rte->tablesample->tsmhandler);
540+
char proparallel = func_parallel(rte->tablesample->tsmhandler);
541541

542542
if (proparallel != PROPARALLEL_SAFE)
543543
return;

0 commit comments

Comments
 (0)