Handle MergeAppend node correctly while determing param types.
authorPavan Deolasee <[email protected]>
Thu, 4 Feb 2016 13:55:08 +0000 (14:55 +0100)
committerPavan Deolasee <[email protected]>
Thu, 4 Feb 2016 13:55:08 +0000 (14:55 +0100)
Report by Krzysztof Nienartowicz, patch by me.

src/backend/pgxc/pool/execRemote.c

index 223eddd3253e8d95ff71c781a539625637110ab9..e52355f21120ba89d1c635cc7f6f7d28c4536294 100644 (file)
@@ -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;