forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7095003
committed
Make deadlock_timeout PGC_SUSET rather than PGC_SIGHUP.
This allows deadlock_timeout to be reduced for transactions that areparticularly likely to be involved in a deadlock, thus detecting itmore quickly. It is also potentially useful as a poor-man's deadlockpriority mechanism: a transaction with a high deadlock_timeout is lesslikely to be chosen as the victim than one with a lowdeadlock_timeout. Since that could be used to game the system, wemake this PGC_SUSET rather than PGC_USERSET.At some point, it might be worth thinking about a more explicitpriority mechanism, since using this is far from fool-proof. Butlet's see whether there's enough use case to justify the additionalwork before we go down that route.Noah Misch, reviewed by Shigeru Hanada1 parent8f9fe6e commit7095003
2 files changed
+4
-3
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5266 | 5266 |
| |
5267 | 5267 |
| |
5268 | 5268 |
| |
5269 |
| - | |
| 5269 | + | |
| 5270 | + | |
5270 | 5271 |
| |
5271 | 5272 |
| |
5272 | 5273 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1532 | 1532 |
| |
1533 | 1533 |
| |
1534 | 1534 |
| |
1535 |
| - | |
1536 |
| - | |
| 1535 | + | |
| 1536 | + | |
1537 | 1537 |
| |
1538 | 1538 |
| |
1539 | 1539 |
| |
|
0 commit comments
Comments
(0)