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
34a84add
Commit
34a84add
authored
May 01, 1999
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use page-level ExtendLock lock instead of table-level -
should be faster.
parent
09916403
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/backend/access/heap/hio.c
src/backend/access/heap/hio.c
+10
-3
No files found.
src/backend/access/heap/hio.c
View file @
34a84add
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Id: hio.c,v 1.1
7 1999/02/13 23:14:24 momjian
Exp $
* $Id: hio.c,v 1.1
8 1999/05/01 15:04:46 vadim
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -110,8 +110,15 @@ RelationPutHeapTupleAtEnd(Relation relation, HeapTuple tuple)
ItemId
itemId
;
Item
item
;
/*
* Actually, we lock _relation_ here, not page, but I believe
* that locking page is faster... Obviously, we could get rid
* of ExtendLock mode at all and use ExclusiveLock mode on
* page 0, as long as we use page-level locking for indices only,
* but we are in 6.5-beta currently... - vadim 05/01/99
*/
if
(
!
relation
->
rd_myxactonly
)
Lock
Relation
(
relation
,
ExtendLock
);
Lock
Page
(
relation
,
0
,
ExtendLock
);
/*
* XXX This does an lseek - VERY expensive - but at the moment it is
...
...
@@ -159,7 +166,7 @@ RelationPutHeapTupleAtEnd(Relation relation, HeapTuple tuple)
}
if
(
!
relation
->
rd_myxactonly
)
Unlock
Relation
(
relation
,
ExtendLock
);
Unlock
Page
(
relation
,
0
,
ExtendLock
);
offnum
=
PageAddItem
((
Page
)
pageHeader
,
(
Item
)
tuple
->
t_data
,
tuple
->
t_len
,
InvalidOffsetNumber
,
LP_USED
);
...
...
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