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
40ac5a69
Commit
40ac5a69
authored
Aug 27, 1997
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
heap_delete returns int now (for non-functional deletes).
parent
ceac1d5a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam.c
+9
-7
src/include/access/heapam.h
src/include/access/heapam.h
+2
-2
No files found.
src/backend/access/heap/heapam.c
View file @
40ac5a69
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.1
4 1997/08/19 21:29:17 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.1
5 1997/08/27 09:00:20 vadim
Exp $
*
*
* INTERFACE ROUTINES
...
...
@@ -1114,7 +1114,7 @@ heap_insert(Relation relation, HeapTuple tup)
* Must decide how to handle errors.
* ----------------
*/
void
int
heap_delete
(
Relation
relation
,
ItemPointer
tid
)
{
ItemId
lp
;
...
...
@@ -1163,7 +1163,7 @@ heap_delete(Relation relation, ItemPointer tid)
if
(
IsSystemRelationName
(
RelationGetRelationName
(
relation
)
->
data
)
)
RelationUnsetLockForWrite
(
relation
);
ReleaseBuffer
(
b
);
return
;
return
(
1
)
;
}
/* ----------------
* check that we're deleteing a valid item
...
...
@@ -1203,6 +1203,8 @@ heap_delete(Relation relation, ItemPointer tid)
WriteBuffer
(
b
);
if
(
IsSystemRelationName
(
RelationGetRelationName
(
relation
)
->
data
)
)
RelationUnsetLockForWrite
(
relation
);
return
(
0
);
}
/* ----------------
...
...
src/include/access/heapam.h
View file @
40ac5a69
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: heapam.h,v 1.
8 1997/08/26 23:31:53 momjian
Exp $
* $Id: heapam.h,v 1.
9 1997/08/27 09:03:47 vadim
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -124,7 +124,7 @@ extern HeapTuple heap_getnext(HeapScanDesc scandesc, int backw, Buffer *b);
extern
HeapTuple
heap_fetch
(
Relation
relation
,
TimeQual
timeQual
,
ItemPointer
tid
,
Buffer
*
b
);
extern
Oid
heap_insert
(
Relation
relation
,
HeapTuple
tup
);
extern
void
heap_delete
(
Relation
relation
,
ItemPointer
tid
);
extern
int
heap_delete
(
Relation
relation
,
ItemPointer
tid
);
extern
int
heap_replace
(
Relation
relation
,
ItemPointer
otid
,
HeapTuple
tup
);
extern
void
heap_markpos
(
HeapScanDesc
sdesc
);
...
...
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