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
4ec8a148
Commit
4ec8a148
authored
Apr 24, 1997
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add innercost to result in cost_hashjoin.
parent
72b523d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
src/backend/optimizer/path/costsize.c
src/backend/optimizer/path/costsize.c
+13
-9
No files found.
src/backend/optimizer/path/costsize.c
View file @
4ec8a148
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.1
4 1997/04/09 02:13:41
vadim Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.1
5 1997/04/24 15:49:30
vadim Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -321,15 +321,19 @@ cost_hashjoin(Cost outercost,
...
@@ -321,15 +321,19 @@ cost_hashjoin(Cost outercost,
return
_disable_cost_
;
return
_disable_cost_
;
if
(
!
_enable_hashjoin_
)
if
(
!
_enable_hashjoin_
)
temp
+=
_disable_cost_
;
temp
+=
_disable_cost_
;
/* temp += outercost + (nrun + 1) * innercost; */
/*
/*
the innercost shouldn't be used it. Instead the
temp += outercost + (nrun + 1) * innercost;
cost of hashing the innerpath should be used
*
* the innercost shouldn't be used it. Instead the
ASSUME innercost is 1 for now -- a horrible hack
* cost of hashing the innerpath should be used
- jolly
*
*/
* ASSUME innercost is 1 for now -- a horrible hack
* - jolly
temp += outercost + (nrun + 1);
temp += outercost + (nrun + 1);
*
* But we must add innercost to result. - vadim 04/24/97
*/
temp
+=
outercost
+
innercost
+
(
nrun
+
1
);
temp
+=
_cpu_page_wight_
*
(
outersize
+
nrun
*
innersize
);
temp
+=
_cpu_page_wight_
*
(
outersize
+
nrun
*
innersize
);
Assert
(
temp
>=
0
);
Assert
(
temp
>=
0
);
...
...
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