- Notifications
You must be signed in to change notification settings - Fork5
Commit521fd47
committed
Use weaker locks when updating pg_subscription_rel
The previously used ShareRowExclusiveLock, while technically probablymore correct, led to deadlocks during seemingly unrelated operations andthus a poor experience. Use RowExclusiveLock, like for most similarcatalog operations. In some care cases, the user might see an errorfrom DDL commands.Discussion:https://www.postgresql.org/message-id/flat/13592.1490851519%40sss.pgh.pa.usAuthor: Petr Jelinek <petr.jelinek@2ndquadrant.com>1 parentc45b1d2 commit521fd47
1 file changed
+7
-5
lines changedLines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
217 | 221 |
| |
218 | 222 |
| |
219 | 223 |
| |
| |||
225 | 229 |
| |
226 | 230 |
| |
227 | 231 |
| |
228 |
| - | |
229 |
| - | |
| 232 | + | |
230 | 233 |
| |
231 | 234 |
| |
232 | 235 |
| |
| |||
357 | 360 |
| |
358 | 361 |
| |
359 | 362 |
| |
360 |
| - | |
361 |
| - | |
| 363 | + | |
362 | 364 |
| |
363 | 365 |
| |
364 | 366 |
| |
| |||
386 | 388 |
| |
387 | 389 |
| |
388 | 390 |
| |
389 |
| - | |
| 391 | + | |
390 | 392 |
| |
391 | 393 |
| |
392 | 394 |
| |
|
0 commit comments
Comments
(0)