Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit675457d

Browse files
committed
index_insert has now HeapRelation as last param (for
unique index implementation).
1 parentc7990b3 commit675457d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

‎src/backend/access/gist/gist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ gistbuild(Relation heap,
292292
* It doesn't do any work; just locks the relation and passes the buck.
293293
*/
294294
InsertIndexResult
295-
gistinsert(Relationr,Datum*datum,char*nulls,ItemPointerht_ctid,boolis_update)
295+
gistinsert(Relationr,Datum*datum,char*nulls,ItemPointerht_ctid,RelationheapRel)
296296
{
297297
InsertIndexResultres;
298298
IndexTupleitup;

‎src/backend/access/hash/hash.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/hash/hash.c,v 1.11 1996/11/13 20:46:48 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/hash/hash.c,v 1.12 1997/01/10 09:46:13 vadim Exp $
1111
*
1212
* NOTES
1313
* This file contains only the public interface routines.
@@ -257,7 +257,7 @@ hashbuild(Relation heap,
257257
* to the caller.
258258
*/
259259
InsertIndexResult
260-
hashinsert(Relationrel,Datum*datum,char*nulls,ItemPointerht_ctid,boolis_update)
260+
hashinsert(Relationrel,Datum*datum,char*nulls,ItemPointerht_ctid,RelationheapRel)
261261
{
262262
HashItemhitem;
263263
IndexTupleitup;

‎src/backend/access/index/indexam.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.9 1996/12/26 17:44:46 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.10 1997/01/10 09:46:25 vadim Exp $
1111
*
1212
* INTERFACE ROUTINES
1313
*index_open - open an index relation by relationId
@@ -165,7 +165,7 @@ index_insert(Relation relation,
165165
Datum*datum,
166166
char*nulls,
167167
ItemPointerheap_t_ctid,
168-
boolis_update)
168+
RelationheapRel)
169169
{
170170
RegProcedureprocedure;
171171
InsertIndexResultspecificResult;
@@ -178,7 +178,7 @@ index_insert(Relation relation,
178178
* ----------------
179179
*/
180180
specificResult= (InsertIndexResult)
181-
fmgr(procedure,relation,datum,nulls,heap_t_ctid,is_update,NULL);
181+
fmgr(procedure,relation,datum,nulls,heap_t_ctid,heapRel,NULL);
182182

183183
/* ----------------
184184
*the insert proc is supposed to return a "specific result" and

‎src/backend/access/nbtree/nbtree.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.11 1996/11/15 18:36:59 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.12 1997/01/10 09:46:33 vadim Exp $
1212
*
1313
* NOTES
1414
* This file contains only the public interface routines.
@@ -222,7 +222,7 @@ btbuild(Relation heap,
222222
if (FastBuild) {
223223
_bt_spool(index,btitem,spool);
224224
}else {
225-
res=_bt_doinsert(index,btitem,isunique,false);
225+
res=_bt_doinsert(index,btitem,isunique,heap);
226226
}
227227

228228
pfree(btitem);
@@ -292,7 +292,7 @@ btbuild(Relation heap,
292292
*return an InsertIndexResult to the caller.
293293
*/
294294
InsertIndexResult
295-
btinsert(Relationrel,Datum*datum,char*nulls,ItemPointerht_ctid,boolis_update)
295+
btinsert(Relationrel,Datum*datum,char*nulls,ItemPointerht_ctid,RelationheapRel)
296296
{
297297
BTItembtitem;
298298
IndexTupleitup;
@@ -308,7 +308,7 @@ btinsert(Relation rel, Datum *datum, char *nulls, ItemPointer ht_ctid, bool is_u
308308
btitem=_bt_formitem(itup);
309309

310310
res=_bt_doinsert(rel,btitem,
311-
IndexIsUnique(RelationGetRelationId(rel)),is_update);
311+
IndexIsUnique(RelationGetRelationId(rel)),heapRel);
312312

313313
pfree(btitem);
314314
pfree(itup);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp