forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf676616
committed
Prevent idle in transaction session timeout from sometimes being ignored.
The previous coding in ProcessInterrupts() could lead toidle_in_transaction_session_timeout being ignored, whenstatement_timeout occurred earlier.The problem was that ProcessInterrupts() would return beforeprocessing the transaction timeout if QueryCancelPending was set whileQueryCancelHoldoffCount != 0 - which is the case when reading newcommands from the client. Ergo when the idle transaction timeout wouldhit.Fix that by removing the early return. Alternatively the transactiontimeout code could have been moved up, but that early return seemslike an issue that could hit other cases too.Author: Lukas FittlBug: #14821Discussion:https://www.postgresql.org/message-id/20170921010956.17345.61461%40wrigleys.postgresql.orghttps://www.postgresql.org/message-id/CAP53PkxQnv3OWJpyNPGJYT62uY=n1=2CF_Lpc6gVOFnc0-gazw@mail.gmail.comBackpatch: 9.6-, where idle_in_transaction_session_timeout was introduced.1 parent2860596 commitf676616
1 file changed
+15
-17
lines changedLines changed: 15 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2941 | 2941 |
| |
2942 | 2942 |
| |
2943 | 2943 |
| |
2944 |
| - | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
2945 | 2951 |
| |
2946 |
| - | |
2947 |
| - | |
2948 |
| - | |
2949 | 2952 |
| |
2950 |
| - | |
2951 |
| - | |
2952 |
| - | |
2953 |
| - | |
| 2953 | + | |
| 2954 | + | |
2954 | 2955 |
| |
2955 |
| - | |
2956 |
| - | |
2957 |
| - | |
2958 |
| - | |
2959 |
| - | |
2960 |
| - | |
2961 |
| - | |
2962 |
| - | |
2963 |
| - | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
2964 | 2962 |
| |
2965 | 2963 |
| |
2966 | 2964 |
| |
|
0 commit comments
Comments
(0)