Check for SQLValueFunction node in shippability walker
authorPavan Deolasee <[email protected]>
Thu, 15 Jun 2017 05:26:26 +0000 (10:56 +0530)
committerPavan Deolasee <[email protected]>
Thu, 15 Jun 2017 05:26:26 +0000 (10:56 +0530)
src/backend/optimizer/util/pgxcship.c

index d8fbaa591f2bbb373fe6898ffc9245b7d671f6eb..aee3197ac38efb012a6c1cb6f0ead1fe4f97a6e3 100644 (file)
@@ -807,6 +807,14 @@ pgxc_shippability_walker(Node *node, Shippability_context *sc_context)
                }
                break;
 
+               case T_SQLValueFunction:
+                       /*
+                        * XXX PG10MERGE: Do we really need to do any checks here?
+                        * Shouldn't all SQLValueFunctions be shippable?
+                        */
+                       pgxc_set_exprtype_shippability(exprType(node), sc_context);
+                       break;
+
                case T_Aggref:
                {
                        Aggref *aggref = (Aggref *)node;