hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hubertzh...@apache.org
Subject incubator-hawq git commit: HAWQ-269. Change net_disk_ratio from int to double type.
Date Tue, 22 Dec 2015 01:49:17 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 1c51e77be -> 72c63be31


HAWQ-269. Change net_disk_ratio from int to double type.


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/72c63be3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/72c63be3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/72c63be3

Branch: refs/heads/master
Commit: 72c63be31415c72f9ac82faac55bc2bcb6d7ed75
Parents: 1c51e77
Author: hubertzhang <hzhang@pivotal.io>
Authored: Tue Dec 22 09:43:43 2015 +0800
Committer: hubertzhang <hzhang@pivotal.io>
Committed: Tue Dec 22 09:43:43 2015 +0800

----------------------------------------------------------------------
 src/backend/utils/misc/guc.c | 36 +++++++++++++++++-------------------
 src/include/utils/guc.h      |  2 +-
 2 files changed, 18 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/72c63be3/src/backend/utils/misc/guc.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 2880067..4897b93 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -715,12 +715,12 @@ bool		optimizer_enable_assert_maxonerow;
 bool		optimizer_enumerate_plans;
 bool		optimizer_sample_plans;
 int		optimizer_plan_id;
-int 		optimizer_samples_number;
-int			optimizer_log_failure;
-double		optimizer_cost_threshold;
-double		optimizer_nestloop_factor;
-double locality_upper_bound;
-int net_disk_ratio;
+int  optimizer_samples_number;
+int  optimizer_log_failure;
+double	  optimizer_cost_threshold;
+double  optimizer_nestloop_factor;
+double  locality_upper_bound;
+double  net_disk_ratio;
 bool		optimizer_cte_inlining;
 int		optimizer_cte_inlining_bound;
 double 	optimizer_damping_factor_filter;
@@ -6129,17 +6129,6 @@ static struct config_int ConfigureNamesInt[] =
 	},
 
 	{
-			{"net_disk_ratio", PGC_USERSET, DEVELOPER_OPTIONS,
-				gettext_noop("set the speed ratio of net against network"),
-	            NULL,
-				GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE
-				},
-			&net_disk_ratio,
-			3, 1, 100, NULL, NULL
-	},
-
-
-	{
 		{"server_ticket_renew_interval", PGC_USERSET, CONN_AUTH,
 			gettext_noop("Set the kerberos renew interval"),
 			NULL,
@@ -6840,7 +6829,7 @@ static struct config_real ConfigureNamesReal[] =
 
 	{
 		{"optimizer_nestloop_factor",PGC_USERSET, DEVELOPER_OPTIONS,
-			gettext_noop("set the nestloop join cost factor in the optimizer"),
+			gettext_noop("Sets the nestloop join cost factor in the optimizer"),
 			NULL,
 			GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE
 		},
@@ -6850,13 +6839,22 @@ static struct config_real ConfigureNamesReal[] =
 
 	{
 		{"locality_upper_bound", PGC_USERSET, DEVELOPER_OPTIONS,
-			gettext_noop("set the ratio of upper bound of local read."),
+			gettext_noop("Sets the ratio of upper bound of local read."),
 	        NULL,
 			GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE
 			},
 		&locality_upper_bound,
 		1.2, 1.0, 2.0, NULL, NULL
 	},
+	{
+		{"net_disk_ratio", PGC_USERSET, DEVELOPER_OPTIONS,
+			gettext_noop("Sets the scan volumn ratio of disk against network."),
+	        NULL,
+			GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE
+		},
+		&net_disk_ratio,
+		3.0, 1.0, 100.0, NULL, NULL
+	},
 
 /* End-of-list marker */
 	{

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/72c63be3/src/include/utils/guc.h
----------------------------------------------------------------------
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h
index 88b4d54..b460b3b 100644
--- a/src/include/utils/guc.h
+++ b/src/include/utils/guc.h
@@ -391,7 +391,7 @@ extern double optimizer_cost_threshold;
 extern double optimizer_nestloop_factor;
 extern double locality_upper_bound;
 extern bool optimizer_cte_inlining;
-extern int net_disk_ratio;
+extern double net_disk_ratio;
 extern int optimizer_cte_inlining_bound;
 extern double optimizer_damping_factor_filter;
 extern double optimizer_damping_factor_join;


Mime
View raw message