From: Pavan Deolasee Date: Thu, 4 Feb 2016 13:55:08 +0000 (+0100) Subject: Handle MergeAppend node correctly while determing param types. X-Git-Tag: XL9_5_R1BETA1~38 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=08fb6ed76ea9719255c3ce1284b254d479aeb202;p=postgres-xl.git Handle MergeAppend node correctly while determing param types. Report by Krzysztof Nienartowicz, patch by me. --- diff --git a/src/backend/pgxc/pool/execRemote.c b/src/backend/pgxc/pool/execRemote.c index 223eddd325..e52355f211 100644 --- a/src/backend/pgxc/pool/execRemote.c +++ b/src/backend/pgxc/pool/execRemote.c @@ -4952,6 +4952,18 @@ determine_param_types(Plan *plan, struct find_params_context *context) } break; + case T_MergeAppend: + { + ListCell *l; + + foreach(l, ((MergeAppend *) plan)->mergeplans) + { + if (determine_param_types((Plan *) lfirst(l), context)) + return true; + } + } + break; + case T_BitmapAnd: { ListCell *l;