From a2740a455f558a1b8b9cd1962f92980efa4a984a Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Mon, 26 Aug 1996 06:32:06 +0000 Subject: There, now we support GiST...now what? :) --- src/backend/access/nbtree/nbtree.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/backend/access/nbtree/nbtree.c') diff --git a/src/backend/access/nbtree/nbtree.c b/src/backend/access/nbtree/nbtree.c index 5829e8afe0..90afe6b363 100644 --- a/src/backend/access/nbtree/nbtree.c +++ b/src/backend/access/nbtree/nbtree.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.2 1996/07/30 07:56:00 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.3 1996/08/26 06:28:21 scrappy Exp $ * * NOTES * This file contains only the public interface routines. @@ -285,11 +285,16 @@ btbuild(Relation heap, * return an InsertIndexResult to the caller. */ InsertIndexResult -btinsert(Relation rel, IndexTuple itup) +btinsert(Relation rel, Datum *datum, char *nulls, ItemPointer ht_ctid) { BTItem btitem; + IndexTuple itup; InsertIndexResult res; + /* generate an index tuple */ + itup = index_formtuple(RelationGetTupleDescriptor(rel), datum, nulls); + itup->t_tid = *ht_ctid; + if (itup->t_info & INDEX_NULL_MASK) return ((InsertIndexResult) NULL); @@ -297,6 +302,7 @@ btinsert(Relation rel, IndexTuple itup) res = _bt_doinsert(rel, btitem); pfree(btitem); + pfree(itup); return (res); } -- cgit v1.2.1