Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
824c6865
Commit
824c6865
authored
26 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Update lock manager README.
parent
1a2aee2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/storage/lmgr/README
+7
-19
7 additions, 19 deletions
src/backend/storage/lmgr/README
with
7 additions
and
19 deletions
src/backend/storage/lmgr/README
+
7
−
19
View file @
824c6865
$Header: /cvsroot/pgsql/src/backend/storage/lmgr/README,v 1.
2
1998/0
1/28 02:29:26
momjian Exp $
$Header: /cvsroot/pgsql/src/backend/storage/lmgr/README,v 1.
3
1998/0
7/06 18:16:07
momjian Exp $
This file is an attempt to save me (and future code maintainers) some
time and a lot of headaches. The existing lock manager code at the time
of this writing (June 16 1992) can best be described as confusing. The
complexity seems inherent in lock manager functionality, but variable
names chosen in the current implementation really confuse me everytime
I have to track down a bug. Also, what gets done where and by whom isn't
always clear....
There are two fundemental lock structures. Lock methods describe the
locking behavior. We currently only support multi-level locking. Lock
modes describe the mode of the lock(read/write or shared/exclusive).
See src/tools/backend/index.html and src/include/storage/lock.h for more
details.
Starting with the data structures the lock manager relies upon...
(NOTE - these will undoubtedly change over time and it is likely
that this file won't always be updated along with the structs.)
---------------------------------------------------------------------------
The lock manager's LOCK:
...
...
@@ -90,10 +85,3 @@ activeHolders -
---------------------------------------------------------------------------
Locks are accessed in two ways. Each PROC structure has a lockQueue,
that is a circular linked list of LOCK pointers that this process holds
or is waiting on.
Second, there is a hash table that can do a lookup by combined LOCK
address and transaction id(xid) which allows a process to see what
type of locks it holds on that table.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment