From e9c977da7d15a432997151ce696b623d1bf0435c Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Wed, 7 Jul 1999 09:36:45 +0000
Subject: [PATCH] Fix spelling of variable name.

---
 src/backend/commands/variable.c       | 10 +++++-----
 src/backend/optimizer/path/costsize.c |  6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/backend/commands/variable.c b/src/backend/commands/variable.c
index 9c34f252bf1..094bec33e83 100644
--- a/src/backend/commands/variable.c
+++ b/src/backend/commands/variable.c
@@ -2,7 +2,7 @@
  * Routines for handling of 'SET var TO',
  *	'SHOW var' and 'RESET var' statements.
  *
- * $Id: variable.c,v 1.22 1999/07/07 09:11:13 momjian Exp $
+ * $Id: variable.c,v 1.23 1999/07/07 09:36:45 momjian Exp $
  *
  */
 
@@ -43,7 +43,7 @@ static bool reset_XactIsoLevel(void);
 static bool parse_XactIsoLevel(const char *);
 
 extern Cost _cpu_page_weight_;
-extern Cost _cpu_index_page_wight_;
+extern Cost _cpu_index_page_weight_;
 extern bool _use_geqo_;
 extern int32 _use_geqo_rels_;
 extern bool _use_keyset_query_optimizer;
@@ -283,7 +283,7 @@ parse_cost_index(const char *value)
 	}
 
 	res = float4in((char *) value);
-	_cpu_index_page_wight_ = *res;
+	_cpu_index_page_weight_ = *res;
 
 	return TRUE;
 }
@@ -292,14 +292,14 @@ static bool
 show_cost_index()
 {
 
-	elog(NOTICE, "COST_INDEX is %f", _cpu_index_page_wight_);
+	elog(NOTICE, "COST_INDEX is %f", _cpu_index_page_weight_);
 	return TRUE;
 }
 
 static bool
 reset_cost_index()
 {
-	_cpu_index_page_wight_ = _CPU_INDEX_PAGE_WEIGHT_;
+	_cpu_index_page_weight_ = _CPU_INDEX_PAGE_WEIGHT_;
 	return TRUE;
 }
 
diff --git a/src/backend/optimizer/path/costsize.c b/src/backend/optimizer/path/costsize.c
index 05d12e39156..067cfffcc9f 100644
--- a/src/backend/optimizer/path/costsize.c
+++ b/src/backend/optimizer/path/costsize.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.40 1999/07/07 09:27:26 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.41 1999/07/07 09:36:45 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -52,7 +52,7 @@ bool		_enable_mergejoin_ = true;
 bool		_enable_hashjoin_ = true;
 
 Cost		 _cpu_page_weight_ = _CPU_PAGE_WEIGHT_;
-Cost		_cpu_index_page_wight_ = _CPU_INDEX_PAGE_WEIGHT_;
+Cost		_cpu_index_page_weight_ = _CPU_INDEX_PAGE_WEIGHT_;
 
 /*
  * cost_seqscan
@@ -156,7 +156,7 @@ cost_index(Oid indexid,
 	temp += ceil(((double) selec) * ((double) relpages));
 
 	/* per index tuples */
-	temp += _cpu_index_page_wight_ * selec * indextuples;
+	temp += _cpu_index_page_weight_ * selec * indextuples;
 
 	/* per heap tuples */
 	temp += _cpu_page_weight_ * selec * reltuples;
-- 
GitLab