projects
/
users
/
hanada
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a63c5d
)
Fix postgresql_fdw to use estimated costs.
author
Shigeru Hanada
<
[email protected]
>
Tue, 9 Nov 2010 06:20:33 +0000
(15:20 +0900)
committer
Shigeru Hanada
<
[email protected]
>
Tue, 9 Nov 2010 06:20:33 +0000
(15:20 +0900)
contrib/postgresql_fdw/postgresql_fdw.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/postgresql_fdw/postgresql_fdw.c
b/contrib/postgresql_fdw/postgresql_fdw.c
index e9716d47b22da7ea129d6a6400cece14b309a8ce..6dd8a3567852ae6c20e536e26f57641aab3ea797 100644
(file)
--- a/
contrib/postgresql_fdw/postgresql_fdw.c
+++ b/
contrib/postgresql_fdw/postgresql_fdw.c
@@
-828,10
+828,6
@@
pgEstimateCosts(ForeignPath *path, PlannerInfo *root, RelOptInfo *baserel)
*/
cost_seqscan(&path->path, root, baserel);
- /* XXX override estimated cost */
- path->path.startup_cost = 1000;
- path->path.total_cost = 1000;
-
/* Get cost factor from catalog and correct costs with them. */
rte = planner_rt_fetch(baserel->relid, root);
get_server_costs(rte->relid, &connection_cost, &transfer_cost);