Commit 72e78d8
Amit Kapila
Add assert to ensure that page locks don't participate in deadlock cycle.
Assert that we don't acquire any other heavyweight lock while holding the
page lock except for relation extension. However, these locks are never
taken in reverse order which implies that page locks will never
participate in the deadlock cycle.
Similar to relation extension, page locks are also held for a short
duration, so imposing such a restriction won't hurt.
Author: Dilip Kumar, with few changes by Amit Kapila
Reviewed-by: Amit Kapila, Kuntal Ghosh and Sawada Masahiko
Discussion: https://postgr.es/m/CAD21AoCmT3cFQUN4aVvzy5chw7DuzXrJCbrjTU05B+Ss=Gn1LA@mail.gmail.com1 parent 6312c08 commit 72e78d8
1 file changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
188 | 200 | | |
189 | 201 | | |
190 | 202 | | |
| |||
862 | 874 | | |
863 | 875 | | |
864 | 876 | | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
865 | 884 | | |
866 | 885 | | |
867 | 886 | | |
| |||
1310 | 1329 | | |
1311 | 1330 | | |
1312 | 1331 | | |
1313 | | - | |
| 1332 | + | |
1314 | 1333 | | |
1315 | 1334 | | |
1316 | | - | |
| 1335 | + | |
1317 | 1336 | | |
1318 | 1337 | | |
1319 | 1338 | | |
| |||
1323 | 1342 | | |
1324 | 1343 | | |
1325 | 1344 | | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1326 | 1348 | | |
1327 | 1349 | | |
1328 | 1350 | | |
| |||
0 commit comments