Thinko in set_rel_consider_parallel()

Started by Amit Langoteabout 9 years ago2 messages
#1Amit Langote
Langote_Amit_f8@lab.ntt.co.jp
1 attachment(s)

The following looks like a thinko, which fixed in attached:

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

Thanks,
Amit

Attachments:

optimizer-allpaths-thinko.patchtext/x-diff; name=optimizer-allpaths-thinko.patchDownload
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;
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Amit Langote (#1)
Re: Thinko in set_rel_consider_parallel()

Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> writes:

The following looks like a thinko, which fixed in attached:
-                Oid         proparallel = func_parallel(...
+                char        proparallel = 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