Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
675457d6
Commit
675457d6
authored
Jan 10, 1997
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index_insert has now HeapRelation as last param (for
unique index implementation).
parent
c7990b35
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
src/backend/access/gist/gist.c
src/backend/access/gist/gist.c
+1
-1
src/backend/access/hash/hash.c
src/backend/access/hash/hash.c
+2
-2
src/backend/access/index/indexam.c
src/backend/access/index/indexam.c
+3
-3
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtree.c
+4
-4
No files found.
src/backend/access/gist/gist.c
View file @
675457d6
...
...
@@ -292,7 +292,7 @@ gistbuild(Relation heap,
* It doesn't do any work; just locks the relation and passes the buck.
*/
InsertIndexResult
gistinsert
(
Relation
r
,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
ht_ctid
,
bool
is_update
)
gistinsert
(
Relation
r
,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
ht_ctid
,
Relation
heapRel
)
{
InsertIndexResult
res
;
IndexTuple
itup
;
...
...
src/backend/access/hash/hash.c
View file @
675457d6
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/hash/hash.c,v 1.1
1 1996/11/13 20:46:48 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/hash/hash.c,v 1.1
2 1997/01/10 09:46:13 vadim
Exp $
*
* NOTES
* This file contains only the public interface routines.
...
...
@@ -257,7 +257,7 @@ hashbuild(Relation heap,
* to the caller.
*/
InsertIndexResult
hashinsert
(
Relation
rel
,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
ht_ctid
,
bool
is_update
)
hashinsert
(
Relation
rel
,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
ht_ctid
,
Relation
heapRel
)
{
HashItem
hitem
;
IndexTuple
itup
;
...
...
src/backend/access/index/indexam.c
View file @
675457d6
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.
9 1996/12/26 17:44:46 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.
10 1997/01/10 09:46:25 vadim
Exp $
*
* INTERFACE ROUTINES
* index_open - open an index relation by relationId
...
...
@@ -165,7 +165,7 @@ index_insert(Relation relation,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
heap_t_ctid
,
bool
is_update
)
Relation
heapRel
)
{
RegProcedure
procedure
;
InsertIndexResult
specificResult
;
...
...
@@ -178,7 +178,7 @@ index_insert(Relation relation,
* ----------------
*/
specificResult
=
(
InsertIndexResult
)
fmgr
(
procedure
,
relation
,
datum
,
nulls
,
heap_t_ctid
,
is_update
,
NULL
);
fmgr
(
procedure
,
relation
,
datum
,
nulls
,
heap_t_ctid
,
heapRel
,
NULL
);
/* ----------------
* the insert proc is supposed to return a "specific result" and
...
...
src/backend/access/nbtree/nbtree.c
View file @
675457d6
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.1
1 1996/11/15 18:36:59 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.1
2 1997/01/10 09:46:33 vadim
Exp $
*
* NOTES
* This file contains only the public interface routines.
...
...
@@ -222,7 +222,7 @@ btbuild(Relation heap,
if
(
FastBuild
)
{
_bt_spool
(
index
,
btitem
,
spool
);
}
else
{
res
=
_bt_doinsert
(
index
,
btitem
,
isunique
,
false
);
res
=
_bt_doinsert
(
index
,
btitem
,
isunique
,
heap
);
}
pfree
(
btitem
);
...
...
@@ -292,7 +292,7 @@ btbuild(Relation heap,
* return an InsertIndexResult to the caller.
*/
InsertIndexResult
btinsert
(
Relation
rel
,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
ht_ctid
,
bool
is_update
)
btinsert
(
Relation
rel
,
Datum
*
datum
,
char
*
nulls
,
ItemPointer
ht_ctid
,
Relation
heapRel
)
{
BTItem
btitem
;
IndexTuple
itup
;
...
...
@@ -308,7 +308,7 @@ btinsert(Relation rel, Datum *datum, char *nulls, ItemPointer ht_ctid, bool is_u
btitem
=
_bt_formitem
(
itup
);
res
=
_bt_doinsert
(
rel
,
btitem
,
IndexIsUnique
(
RelationGetRelationId
(
rel
)),
is_update
);
IndexIsUnique
(
RelationGetRelationId
(
rel
)),
heapRel
);
pfree
(
btitem
);
pfree
(
itup
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment