Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite9c977d

Browse files
committed
Fix spelling of variable name.
1 parent9f7ac20 commite9c977d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

‎src/backend/commands/variable.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Routines for handling of 'SET var TO',
33
*'SHOW var' and 'RESET var' statements.
44
*
5-
* $Id: variable.c,v 1.22 1999/07/07 09:11:13 momjian Exp $
5+
* $Id: variable.c,v 1.23 1999/07/07 09:36:45 momjian Exp $
66
*
77
*/
88

@@ -43,7 +43,7 @@ static bool reset_XactIsoLevel(void);
4343
staticboolparse_XactIsoLevel(constchar*);
4444

4545
externCost_cpu_page_weight_;
46-
externCost_cpu_index_page_wight_;
46+
externCost_cpu_index_page_weight_;
4747
externbool_use_geqo_;
4848
externint32_use_geqo_rels_;
4949
externbool_use_keyset_query_optimizer;
@@ -283,7 +283,7 @@ parse_cost_index(const char *value)
283283
}
284284

285285
res=float4in((char*)value);
286-
_cpu_index_page_wight_=*res;
286+
_cpu_index_page_weight_=*res;
287287

288288
return TRUE;
289289
}
@@ -292,14 +292,14 @@ static bool
292292
show_cost_index()
293293
{
294294

295-
elog(NOTICE,"COST_INDEX is %f",_cpu_index_page_wight_);
295+
elog(NOTICE,"COST_INDEX is %f",_cpu_index_page_weight_);
296296
return TRUE;
297297
}
298298

299299
staticbool
300300
reset_cost_index()
301301
{
302-
_cpu_index_page_wight_=_CPU_INDEX_PAGE_WEIGHT_;
302+
_cpu_index_page_weight_=_CPU_INDEX_PAGE_WEIGHT_;
303303
return TRUE;
304304
}
305305

‎src/backend/optimizer/path/costsize.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.40 1999/07/07 09:27:26 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.41 1999/07/07 09:36:45 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -52,7 +52,7 @@ bool_enable_mergejoin_ = true;
5252
bool_enable_hashjoin_= true;
5353

5454
Cost_cpu_page_weight_=_CPU_PAGE_WEIGHT_;
55-
Cost_cpu_index_page_wight_=_CPU_INDEX_PAGE_WEIGHT_;
55+
Cost_cpu_index_page_weight_=_CPU_INDEX_PAGE_WEIGHT_;
5656

5757
/*
5858
* cost_seqscan
@@ -156,7 +156,7 @@ cost_index(Oid indexid,
156156
temp+=ceil(((double)selec)* ((double)relpages));
157157

158158
/* per index tuples */
159-
temp+=_cpu_index_page_wight_*selec*indextuples;
159+
temp+=_cpu_index_page_weight_*selec*indextuples;
160160

161161
/* per heap tuples */
162162
temp+=_cpu_page_weight_*selec*reltuples;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp