Skip to content

Commit c6a6057

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

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

src/backend/commands/copy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.19 1996/12/19 04:58:24 scrappy Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.20 1997/01/10 09:57:14 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -619,7 +619,7 @@ CopyFrom(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
619619
index_nulls,
620620
finfoP[i]);
621621
indexRes = index_insert(index_rels[i], &idatum, index_nulls,
622-
&(tuple->t_ctid), false);
622+
&(tuple->t_ctid), rel);
623623
if (indexRes) pfree(indexRes);
624624
}
625625
}

src/backend/commands/vacuum.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/commands/vacuum.c,v 1.12 1997/01/05 10:58:15 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.13 1997/01/10 09:57:16 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1006,7 +1006,7 @@ failed to add item with len = %u to page %u (free space %u, nusd %u, noff %u)",
10061006
idatum,
10071007
inulls,
10081008
&(newtup->t_ctid),
1009-
true);
1009+
onerel);
10101010
if (iresult) pfree(iresult);
10111011
}
10121012
}

src/backend/executor/execUtils.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.6 1996/11/13 20:48:34 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.7 1997/01/10 09:58:53 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1103,10 +1103,10 @@ ExecInsertIndexTuples(TupleTableSlot *slot,
11031103

11041104

11051105
result = index_insert(relationDescs[i], /* index relation */
1106-
datum, /* array of heaptuple Datums */
1107-
nulls, /* info on nulls */
1108-
&(heapTuple->t_ctid),
1109-
is_update); /* oid of heap tuple */
1106+
datum, /* array of heaptuple Datums */
1107+
nulls, /* info on nulls */
1108+
&(heapTuple->t_ctid), /* oid of heap tuple */
1109+
heapRelation);
11101110

11111111
/* ----------------
11121112
* keep track of index inserts for debugging

src/backend/storage/large_object/inv_api.c

Lines changed: 3 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/storage/large_object/inv_api.c,v 1.7 1996/11/13 20:49:18 scrappy Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.8 1997/01/10 10:00:39 vadim Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1008,7 +1008,8 @@ inv_indextup(LargeObjectDesc *obj_desc, HeapTuple htup)
10081008

10091009
n[0] = ' ';
10101010
v[0] = Int32GetDatum(obj_desc->highbyte);
1011-
res = index_insert(obj_desc->index_r, &v[0], &n[0], &(htup->t_ctid), false);
1011+
res = index_insert(obj_desc->index_r, &v[0], &n[0],
1012+
&(htup->t_ctid), obj_desc->heap_r);
10121013

10131014
if (res)
10141015
pfree(res);

0 commit comments

Comments
 (0)