|
|
|
|
@ -7,7 +7,7 @@ |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* IDENTIFICATION |
|
|
|
|
* $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.25 1998/09/01 04:26:55 momjian Exp $ |
|
|
|
|
* $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.26 1998/09/02 23:05:21 momjian Exp $ |
|
|
|
|
* |
|
|
|
|
* INTERFACE ROUTINES |
|
|
|
|
* index_open - open an index relation by relationId |
|
|
|
|
@ -190,23 +190,7 @@ index_insert(Relation relation, |
|
|
|
|
specificResult = (InsertIndexResult) |
|
|
|
|
fmgr(procedure, relation, datum, nulls, heap_t_ctid, heapRel, NULL); |
|
|
|
|
|
|
|
|
|
/* ----------------
|
|
|
|
|
* the insert proc is supposed to return a "specific result" and |
|
|
|
|
* this routine has to return a "general result" so after we get |
|
|
|
|
* something back from the insert proc, we allocate a |
|
|
|
|
* "general result" and copy some crap between the two. |
|
|
|
|
* |
|
|
|
|
* As far as I'm concerned all this result shit is needlessly c |
|
|
|
|
* omplicated and should be eliminated. -cim 1/19/91 |
|
|
|
|
* |
|
|
|
|
* mao concurs. regardless of how we feel here, however, it is |
|
|
|
|
* important to free memory we don't intend to return to anyone. |
|
|
|
|
* 2/28/91 |
|
|
|
|
* |
|
|
|
|
* this "general result" crap is now gone. -ay 3/6/95 |
|
|
|
|
* ---------------- |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
/* must be pfree'ed */ |
|
|
|
|
return specificResult; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|