Fix postgresql_fdw to use estimated costs.
authorShigeru Hanada <[email protected]>
Tue, 9 Nov 2010 06:20:33 +0000 (15:20 +0900)
committerShigeru Hanada <[email protected]>
Tue, 9 Nov 2010 06:20:33 +0000 (15:20 +0900)
contrib/postgresql_fdw/postgresql_fdw.c

index e9716d47b22da7ea129d6a6400cece14b309a8ce..6dd8a3567852ae6c20e536e26f57641aab3ea797 100644 (file)
@@ -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);