Skip to content

Commit f48936e

Browse files
committed
index_insert has now HeapRelation as last param (for unique index
implementation).
1 parent 675457d commit f48936e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/backend/access/rtree/rtree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.10 1996/11/13 20:47:35 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.11 1997/01/10 09:47:28 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -277,7 +277,7 @@ rtbuild(Relation heap,
277277
* It doesn't do any work; just locks the relation and passes the buck.
278278
*/
279279
InsertIndexResult
280-
rtinsert(Relation r, Datum *datum, char *nulls, ItemPointer ht_ctid, bool is_update)
280+
rtinsert(Relation r, Datum *datum, char *nulls, ItemPointer ht_ctid, Relation heapRel)
281281
{
282282
InsertIndexResult res;
283283
IndexTuple itup;

src/backend/catalog/index.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.10 1996/11/30 18:05:57 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.11 1997/01/10 09:51:38 vadim Exp $
1111
*
1212
*
1313
* INTERFACE ROUTINES
@@ -1597,7 +1597,7 @@ DefaultBuild(Relation heapRelation,
15971597
indexTuple->t_tid = heapTuple->t_ctid;
15981598

15991599
insertResult = index_insert(indexRelation, datum, nullv,
1600-
&(heapTuple->t_ctid), false);
1600+
&(heapTuple->t_ctid), heapRelation);
16011601

16021602
if (insertResult) pfree(insertResult);
16031603
pfree(indexTuple);

src/backend/catalog/indexing.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.7 1996/11/26 02:45:05 bryanh Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.8 1997/01/10 09:51:40 vadim Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -184,7 +184,7 @@ CatalogIndexInsert(Relation *idescs,
184184
finfoP);
185185

186186
indexRes = index_insert(idescs[i], &datum, nulls,
187-
&(heapTuple->t_ctid), false);
187+
&(heapTuple->t_ctid), heapRelation);
188188
if (indexRes) pfree(indexRes);
189189
}
190190
}

0 commit comments

Comments
 (0)