Skip to content

Commit 57775e8

Browse files
committed
Doc: hack table 13.2 "Conflicting Lock Modes" till it fits in PDF.
I can't see any way to make this table fit in PDF column width without either a fundamental redesign or abbreviating EXCLUSIVE. So I did the latter. It'd be nicer if the abbreviating didn't leak into the HTML output as well; but the hackery required to make the output different seems like more trouble than it's really worth. Discussion: https://postgr.es/m/6916.1589146280@sss.pgh.pa.us
1 parent aa976d3 commit 57775e8

File tree

1 file changed

+27
-20
lines changed

1 file changed

+27
-20
lines changed

‎doc/src/sgml/mvcc.sgml

+27-20
Original file line numberDiff line numberDiff line change
@@ -1053,28 +1053,35 @@ ERROR: could not serialize access due to read/write dependencies among transact
10531053
<table tocentry="1" id="table-lock-compatibility">
10541054
<title> Conflicting Lock Modes</title>
10551055
<tgroup cols="9">
1056-
<colspec colnum="2" colname="lockst"/>
1057-
<colspec colnum="9" colname="lockend"/>
1058-
<spanspec namest="lockst" nameend="lockend" spanname="lockreq"/>
1056+
<colspec colnum="1" colwidth="1.25*"/>
1057+
<colspec colnum="2" colwidth="1*" colname="lockst"/>
1058+
<colspec colnum="3" colwidth="1*"/>
1059+
<colspec colnum="4" colwidth="1*"/>
1060+
<colspec colnum="5" colwidth="1*"/>
1061+
<colspec colnum="6" colwidth="1*"/>
1062+
<colspec colnum="7" colwidth="1*"/>
1063+
<colspec colnum="8" colwidth="1*"/>
1064+
<colspec colnum="9" colwidth="1*" colname="lockend"/>
1065+
<spanspec spanname="lockreq" namest="lockst" nameend="lockend" align="center"/>
10591066
<thead>
10601067
<row>
10611068
<entry morerows="1">Requested Lock Mode</entry>
1062-
<entry spanname="lockreq">Current Lock Mode</entry>
1069+
<entry spanname="lockreq">Existing Lock Mode</entry>
10631070
</row>
10641071
<row>
1065-
<entry>ACCESS SHARE</entry>
1066-
<entry>ROW SHARE</entry>
1067-
<entry>ROW EXCLUSIVE</entry>
1068-
<entry>SHARE UPDATE EXCLUSIVE</entry>
1069-
<entry>SHARE</entry>
1070-
<entry>SHARE ROW EXCLUSIVE</entry>
1071-
<entry>EXCLUSIVE</entry>
1072-
<entry>ACCESS EXCLUSIVE</entry>
1072+
<entry><literal>ACCESS SHARE</literal></entry>
1073+
<entry><literal>ROW SHARE</literal></entry>
1074+
<entry><literal>ROW EXCL.</literal></entry>
1075+
<entry><literal>SHARE UPDATE EXCL.</literal></entry>
1076+
<entry><literal>SHARE</literal></entry>
1077+
<entry><literal>SHARE ROW EXCL.</literal></entry>
1078+
<entry><literal>EXCL.</literal></entry>
1079+
<entry><literal>ACCESS EXCL.</literal></entry>
10731080
</row>
10741081
</thead>
10751082
<tbody>
10761083
<row>
1077-
<entry>ACCESS SHARE</entry>
1084+
<entry><literal>ACCESS SHARE</literal></entry>
10781085
<entry align="center"></entry>
10791086
<entry align="center"></entry>
10801087
<entry align="center"></entry>
@@ -1085,7 +1092,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
10851092
<entry align="center">X</entry>
10861093
</row>
10871094
<row>
1088-
<entry>ROW SHARE</entry>
1095+
<entry><literal>ROW SHARE</literal></entry>
10891096
<entry align="center"></entry>
10901097
<entry align="center"></entry>
10911098
<entry align="center"></entry>
@@ -1096,7 +1103,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
10961103
<entry align="center">X</entry>
10971104
</row>
10981105
<row>
1099-
<entry>ROW EXCLUSIVE</entry>
1106+
<entry><literal>ROW EXCL.</literal></entry>
11001107
<entry align="center"></entry>
11011108
<entry align="center"></entry>
11021109
<entry align="center"></entry>
@@ -1107,7 +1114,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
11071114
<entry align="center">X</entry>
11081115
</row>
11091116
<row>
1110-
<entry>SHARE UPDATE EXCLUSIVE</entry>
1117+
<entry><literal>SHARE UPDATE EXCL.</literal></entry>
11111118
<entry align="center"></entry>
11121119
<entry align="center"></entry>
11131120
<entry align="center"></entry>
@@ -1118,7 +1125,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
11181125
<entry align="center">X</entry>
11191126
</row>
11201127
<row>
1121-
<entry>SHARE</entry>
1128+
<entry><literal>SHARE</literal></entry>
11221129
<entry align="center"></entry>
11231130
<entry align="center"></entry>
11241131
<entry align="center">X</entry>
@@ -1129,7 +1136,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
11291136
<entry align="center">X</entry>
11301137
</row>
11311138
<row>
1132-
<entry>SHARE ROW EXCLUSIVE</entry>
1139+
<entry><literal>SHARE ROW EXCL.</literal></entry>
11331140
<entry align="center"></entry>
11341141
<entry align="center"></entry>
11351142
<entry align="center">X</entry>
@@ -1140,7 +1147,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
11401147
<entry align="center">X</entry>
11411148
</row>
11421149
<row>
1143-
<entry>EXCLUSIVE</entry>
1150+
<entry><literal>EXCL.</literal></entry>
11441151
<entry align="center"></entry>
11451152
<entry align="center">X</entry>
11461153
<entry align="center">X</entry>
@@ -1151,7 +1158,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
11511158
<entry align="center">X</entry>
11521159
</row>
11531160
<row>
1154-
<entry>ACCESS EXCLUSIVE</entry>
1161+
<entry><literal>ACCESS EXCL.</literal></entry>
11551162
<entry align="center">X</entry>
11561163
<entry align="center">X</entry>
11571164
<entry align="center">X</entry>

0 commit comments

Comments
 (0)