Add enable_fast_query_shipping GUC to control whether to attempt Fast Query
authorPavan Deolasee <[email protected]>
Mon, 25 Jan 2016 09:31:20 +0000 (15:01 +0530)
committerPavan Deolasee <[email protected]>
Mon, 25 Jan 2016 09:35:48 +0000 (15:05 +0530)
Shipping to the remote node or not

Its primary use is for debugging purposes

src/backend/utils/misc/guc.c

index 984e66f2418547531706ee21ede30d67b339f558..dd5c0d6d04eaee5cc0ca22d189583607be246788 100644 (file)
@@ -949,6 +949,15 @@ static struct config_bool ConfigureNamesBool[] =
                NULL, NULL, NULL
        },
 #ifdef PGXC
+       {
+               {"enable_fast_query_shipping", PGC_USERSET, QUERY_TUNING_METHOD,
+                       gettext_noop("Enables the planner's use of fast query shipping to ship query directly to datanode."),
+                       NULL
+               },
+               &enable_fast_query_shipping,
+               true,
+               NULL, NULL, NULL
+       },
        {
                {"loose_constraints", PGC_USERSET, COORDINATORS,
                        gettext_noop("Relax enforcing of constraints"),