Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
4ec8a148
Commit
4ec8a148
authored
27 years ago
by
Vadim B. Mikheev
Browse files
Options
Downloads
Patches
Plain Diff
Add innercost to result in cost_hashjoin.
parent
72b523d0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/optimizer/path/costsize.c
+13
-9
13 additions, 9 deletions
src/backend/optimizer/path/costsize.c
with
13 additions
and
9 deletions
src/backend/optimizer/path/costsize.c
+
13
−
9
View file @
4ec8a148
...
...
@@ -7,7 +7,7 @@
*
*
* 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,
return
_disable_cost_
;
if
(
!
_enable_hashjoin_
)
temp
+=
_disable_cost_
;
/*
temp += outercost + (nrun + 1) * innercost; *
/
/*
the innercost shouldn't be used it. Instead the
cost of hashing
the inner
path
should be used
ASSUME innercost is 1 for now -- a horrible hack
- jolly
*/
/
*
temp += outercost + (nrun + 1) * innercost;
*
*
the inner
cost
should
n't
be used
it. Instead the
* cost of hashing the innerpath should be used
*
* ASSUME innercost is 1 for now -- a horrible hack
* - jolly
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
);
Assert
(
temp
>=
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment