]> granicus.if.org Git - postgresql/commitdiff
Fix incorrect variable type in set_rel_consider_parallel().
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Nov 2016 16:07:02 +0000 (11:07 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Nov 2016 16:07:02 +0000 (11:07 -0500)
func_parallel() returns char not Oid.  Harmless, but still wrong.

Amit Langote

src/backend/optimizer/path/allpaths.c

index e42ef98d8d75023dcf52a758c8b32c810621680d..9753a263febbf5a41ad126613586658fbb87e758 100644 (file)
@@ -537,7 +537,7 @@ set_rel_consider_parallel(PlannerInfo *root, RelOptInfo *rel,
                         */
                        if (rte->tablesample != NULL)
                        {
-                               Oid                     proparallel = func_parallel(rte->tablesample->tsmhandler);
+                               char            proparallel = func_parallel(rte->tablesample->tsmhandler);
 
                                if (proparallel != PROPARALLEL_SAFE)
                                        return;