From: Shigeru Hanada Date: Tue, 9 Nov 2010 06:20:33 +0000 (+0900) Subject: Fix postgresql_fdw to use estimated costs. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=0c663725a077ec9947607445826b47b287c43849;p=users%2Fhanada%2Fpostgres.git Fix postgresql_fdw to use estimated costs. --- diff --git a/contrib/postgresql_fdw/postgresql_fdw.c b/contrib/postgresql_fdw/postgresql_fdw.c index e9716d47b2..6dd8a35678 100644 --- 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);