Re: [HACKERS] Thinko in set_rel_consider_parallel()

2016-11-29 Thread Tom Lane
Amit Langote  writes:
> The following looks like a thinko, which fixed in attached:
> -Oid proparallel = func_parallel(...
> +charproparallel = func_parallel(...

Pushed, thanks.

regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


[HACKERS] Thinko in set_rel_consider_parallel()

2016-11-28 Thread Amit Langote
The following looks like a thinko, which fixed in attached:

-Oid proparallel = func_parallel(...
+charproparallel = func_parallel(...

Thanks,
Amit
diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c
index e42ef98..ec89b6a 100644
--- a/src/backend/optimizer/path/allpaths.c
+++ b/src/backend/optimizer/path/allpaths.c
@@ -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;

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers