diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-05-30 04:25:00 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-05-30 04:25:00 +0000 |
commit | 0f1e39643de655f5103b09d5a82cadbf26a965c1 (patch) | |
tree | 32fa30338e5065afbc28df7dae4c2d2a0bce1569 /src/backend/optimizer/path/costsize.c | |
parent | a12a23f0d03cc8bf22c6c38bc2394753ec34fcdf (diff) |
Third round of fmgr updates: eliminate calls using fmgr() and
fmgr_faddr() in favor of new-style calls. Lots of cleanup of
sloppy casts to use XXXGetDatum and DatumGetXXX ...
Diffstat (limited to 'src/backend/optimizer/path/costsize.c')
-rw-r--r-- | src/backend/optimizer/path/costsize.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/backend/optimizer/path/costsize.c b/src/backend/optimizer/path/costsize.c index e1c66c105f8..dd710ca2f76 100644 --- a/src/backend/optimizer/path/costsize.c +++ b/src/backend/optimizer/path/costsize.c @@ -42,7 +42,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.59 2000/05/30 00:49:46 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.60 2000/05/30 04:24:47 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -240,8 +240,14 @@ cost_index(Path *path, Query *root, * index (ie, the fraction of main-table tuples we will have to * retrieve). */ - fmgr(index->amcostestimate, root, baserel, index, indexQuals, - &indexStartupCost, &indexTotalCost, &indexSelectivity); + OidFunctionCall7(index->amcostestimate, + PointerGetDatum(root), + PointerGetDatum(baserel), + PointerGetDatum(index), + PointerGetDatum(indexQuals), + PointerGetDatum(&indexStartupCost), + PointerGetDatum(&indexTotalCost), + PointerGetDatum(&indexSelectivity)); /* all costs for touching index itself included here */ startup_cost += indexStartupCost; |