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
9b9cd9c2
Commit
9b9cd9c2
authored
Feb 18, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update "Conflicting lock modes" to show as conflict, add
current/requested headings, add link to table from text.
parent
49451ae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
93 deletions
+93
-93
doc/src/sgml/mvcc.sgml
doc/src/sgml/mvcc.sgml
+93
-93
No files found.
doc/src/sgml/mvcc.sgml
View file @
9b9cd9c2
<
!-- $PostgreSQL: pgsql/doc/src/sgml/mvcc.sgml,v 2.6
8 2007/02/16 03:50:2
9 momjian Exp $ -->
<
!-- $PostgreSQL: pgsql/doc/src/sgml/mvcc.sgml,v 2.6
9 2007/02/18 01:21:4
9 momjian Exp $ -->
<
chapter
id
=
"mvcc"
>
<
title
>
Concurrency
Control
</
title
>
...
...
@@ -536,7 +536,8 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
To some extent the names reflect the typical usage of each lock
mode — but the semantics are all the same. The only real difference
between one lock mode and another is the set of lock modes with
which each conflicts. Two transactions cannot hold locks of conflicting
which each conflicts (see <xref linkend="table-lock-compatibility">).
. Two transactions cannot hold locks of conflicting
modes on the same table at the same time. (However, a transaction
never conflicts with itself. For example, it might acquire
<literal>ACCESS EXCLUSIVE</literal> lock and later acquire
...
...
@@ -741,119 +742,118 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
releases locks acquired within it.
</para>
<table tocentry="1" id="table-lock-compatibility">
<title> Co
mpatibility of
lock modes</title>
<title> Co
nflicting
lock modes</title>
<tgroup cols="9">
<colspec colnum="1" colwidth="1*">
<colspec colnum="2" colwidth="1*">
<colspec colnum="3" colwidth="1*">
<colspec colnum="4" colwidth="1*">
<colspec colnum="5" colwidth="1*">
<colspec colnum="6" colwidth="1*">
<colspec colnum="7" colwidth="1*">
<colspec colnum="8" colwidth="1*">
<colspec colnum="9" colwidth="1*">
<colspec colnum="2" colname="lockst">
<colspec colnum="9" colname="lockend">
<spanspec namest="lockst" nameend="lockend" spanname="lockreq">
<thead>
<row>
<entry>Modes</entry>
<entry>AS</entry>
<entry>RS</entry>
<entry>RE</entry>
<entry>SUE</entry>
<entry>S</entry>
<entry>SRE</entry>
<entry>E</entry>
<entry>AE</entry>
<entry morerows="1">Requested Lock Mode</entry>
<entry spanname="lockreq">Current Lock Mode</entry>
</row>
<row>
<entry>ACCESS SHARE</entry>
<entry>ROW SHARE</entry>
<entry>ROW EXCLUSIVE</entry>
<entry>SHARE UPDATE EXCLUSIVE</entry>
<entry>SHARE</entry>
<entry>SHARE ROW EXCLUSIVE</entry>
<entry>EXCLUSIVE</entry>
<entry>ACCESS EXCLUSIVE</entry>
</row>
</thead>
<tbody>
<row>
<entry>A
S
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
N
</entry>
<entry>A
CCESS SHARE
</entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center">
X
</entry>
</row>
<row>
<entry>R
S
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry>R
OW SHARE
</entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
</row>
<row>
<entry>RE</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry>R
OW EXCLUSIV
E</entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
</row>
<row>
<entry>S
U
E</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry>S
HARE UPDATE EXCLUSIV
E</entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
</row>
<row>
<entry>S</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry>S
HARE
</entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center"></entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
</row>
<row>
<entry>S
R
E</entry>
<entry align="center">
Y
</entry>
<entry align="center">
Y
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry>S
HARE ROW EXCLUSIV
E</entry>
<entry align="center"></entry>
<entry align="center"></entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
</row>
<row>
<entry>E</entry>
<entry align="center">
Y
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry>E
XCLUSIVE
</entry>
<entry align="center"></entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
</row>
<row>
<entry>AE</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry align="center">
N
</entry>
<entry>A
CCESS EXCLUSIV
E</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
<entry align="center">
X
</entry>
</row>
</tbody>
</tgroup>
...
...
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