forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf2a69e9
committed
Further second thoughts about idle_session_timeout patch.
On reflection, the order of operations in PostgresMain() is wrong.These timeouts ought to be shut down before, not after, we do thepost-command-read CHECK_FOR_INTERRUPTS, to guarantee that anytimeout error will be detected there rather than at some ill-definedlater point (possibly after having wasted a lot of work).This is really an error in the original idle_in_transaction_timeoutpatch, so back-patch to 9.6 where that was introduced.1 parent820f882 commitf2a69e9
1 file changed
+12
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4201 | 4201 | | |
4202 | 4202 | | |
4203 | 4203 | | |
4204 | | - | |
| 4204 | + | |
| 4205 | + | |
| 4206 | + | |
| 4207 | + | |
| 4208 | + | |
| 4209 | + | |
| 4210 | + | |
| 4211 | + | |
| 4212 | + | |
| 4213 | + | |
| 4214 | + | |
| 4215 | + | |
4205 | 4216 | | |
4206 | 4217 | | |
4207 | 4218 | | |
| |||
4212 | 4223 | | |
4213 | 4224 | | |
4214 | 4225 | | |
4215 | | - | |
4216 | | - | |
4217 | | - | |
4218 | | - | |
4219 | | - | |
4220 | | - | |
4221 | | - | |
4222 | | - | |
4223 | | - | |
4224 | 4226 | | |
4225 | 4227 | | |
4226 | 4228 | | |
| |||
0 commit comments
Comments
(0)