7
7
* Portions Copyright (c) 1994, Regents of the University of California
8
8
*
9
9
* IDENTIFICATION
10
- * $PostgreSQL: pgsql/src/backend/utils/cache/lsyscache.c,v 1.169 2010/04/23 22:23:39 sriggs Exp $
10
+ * $PostgreSQL: pgsql/src/backend/utils/cache/lsyscache.c,v 1.170 2010/04/24 16:20:32 sriggs Exp $
11
11
*
12
12
* NOTES
13
13
* Eventually, the index information should go through here, too.
38
38
/* Hook for plugins to get control in get_attavgwidth() */
39
39
get_attavgwidth_hook_type get_attavgwidth_hook = NULL ;
40
40
41
- /* Hook for plugins to get control in get_func_cost and get_func_rows */
42
- get_func_cost_hook_type get_func_cost_hook = NULL ;
43
- get_func_rows_hook_type get_func_rows_hook = NULL ;
44
41
45
42
/* ---------- AMOP CACHES ---------- */
46
43
@@ -1412,12 +1409,6 @@ get_func_cost(Oid funcid)
1412
1409
HeapTuple tp ;
1413
1410
float4 result ;
1414
1411
1415
- if (get_func_cost_hook )
1416
- {
1417
- result = (* get_func_cost_hook ) (funcid );
1418
- if (result > (float4 ) 0 )
1419
- return result ;
1420
- }
1421
1412
tp = SearchSysCache1 (PROCOID , ObjectIdGetDatum (funcid ));
1422
1413
if (!HeapTupleIsValid (tp ))
1423
1414
elog (ERROR , "cache lookup failed for function %u" , funcid );
@@ -1437,12 +1428,6 @@ get_func_rows(Oid funcid)
1437
1428
HeapTuple tp ;
1438
1429
float4 result ;
1439
1430
1440
- if (get_func_rows_hook )
1441
- {
1442
- result = (* get_func_rows_hook ) (funcid );
1443
- if (result > (float4 ) 0 )
1444
- return result ;
1445
- }
1446
1431
tp = SearchSysCache1 (PROCOID , ObjectIdGetDatum (funcid ));
1447
1432
if (!HeapTupleIsValid (tp ))
1448
1433
elog (ERROR , "cache lookup failed for function %u" , funcid );
0 commit comments