Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e9c977da
Commit
e9c977da
authored
Jul 07, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spelling of variable name.
parent
9f7ac20e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/backend/commands/variable.c
src/backend/commands/variable.c
+5
-5
src/backend/optimizer/path/costsize.c
src/backend/optimizer/path/costsize.c
+3
-3
No files found.
src/backend/commands/variable.c
View file @
e9c977da
...
...
@@ -2,7 +2,7 @@
* Routines for handling of 'SET var TO',
* 'SHOW var' and 'RESET var' statements.
*
* $Id: variable.c,v 1.2
2 1999/07/07 09:11:13
momjian Exp $
* $Id: variable.c,v 1.2
3 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_w
e
ight_
;
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_w
e
ight_
=
*
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_w
e
ight_
);
return
TRUE
;
}
static
bool
reset_cost_index
()
{
_cpu_index_page_wight_
=
_CPU_INDEX_PAGE_WEIGHT_
;
_cpu_index_page_w
e
ight_
=
_CPU_INDEX_PAGE_WEIGHT_
;
return
TRUE
;
}
...
...
src/backend/optimizer/path/costsize.c
View file @
e9c977da
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.4
0 1999/07/07 09:27:26
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.4
1 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_w
e
ight_
=
_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_w
e
ight_
*
selec
*
indextuples
;
/* per heap tuples */
temp
+=
_cpu_page_weight_
*
selec
*
reltuples
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment