diff options
| author | Marc G. Fournier <scrappy@hub.org> | 1996-08-26 06:32:06 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@hub.org> | 1996-08-26 06:32:06 +0000 |
| commit | a2740a455f558a1b8b9cd1962f92980efa4a984a (patch) | |
| tree | 6f52d29248743f100fa40c32cef2cd48043c43f5 /src/backend/access/nbtree/nbtree.c | |
| parent | fe87dbb1403c557bee85115ebe12b69f9ee92ed3 (diff) | |
| download | postgresql-a2740a455f558a1b8b9cd1962f92980efa4a984a.tar.gz | |
There, now we support GiST...now what? :)
Diffstat (limited to 'src/backend/access/nbtree/nbtree.c')
| -rw-r--r-- | src/backend/access/nbtree/nbtree.c | 10 |
1 files changed, 8 insertions, 2 deletions
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); } |
