forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf8e5f15
committed
Rearm statement_timeout after each executed query.
Previously statement_timeout, in the extended protocol, affected allmessages till a Sync message. For clients that pipeline/batch queryexecution that's problematic.Instead disable timeout after each Execute message, and enable, ifnecessary, the timer in start_xact_command(). As that's done only forExecute and not Parse / Bind, pipelining the latter two could stillcause undesirable timeouts. But a survey of protocol implementationsshows that all drivers issue Sync messages when preparing, and addingtimeout rearming to both is fairly expensive for the common parse /bind / execute sequence.Author: Tatsuo Ishii, editorialized by Andres FreundReviewed-By: Takayuki Tsunakawa, Andres FreundDiscussion:https://postgr.es/m/20170222.115044.1665674502985097185.t-ishii@sraoss.co.jp1 parent0fb9e4a commitf8e5f15
1 file changed
+65
-12
lines changedLines changed: 65 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
146 | 151 |
| |
147 | 152 |
| |
148 | 153 |
| |
| |||
182 | 187 |
| |
183 | 188 |
| |
184 | 189 |
| |
| 190 | + | |
| 191 | + | |
185 | 192 |
| |
186 | 193 |
| |
187 | 194 |
| |
| |||
1241 | 1248 |
| |
1242 | 1249 |
| |
1243 | 1250 |
| |
1244 |
| - | |
| 1251 | + | |
| 1252 | + | |
1245 | 1253 |
| |
1246 | 1254 |
| |
1247 | 1255 |
| |
| |||
1529 | 1537 |
| |
1530 | 1538 |
| |
1531 | 1539 |
| |
1532 |
| - | |
| 1540 | + | |
| 1541 | + | |
1533 | 1542 |
| |
1534 | 1543 |
| |
1535 | 1544 |
| |
| |||
2021 | 2030 |
| |
2022 | 2031 |
| |
2023 | 2032 |
| |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
2024 | 2036 |
| |
2025 | 2037 |
| |
2026 | 2038 |
| |
| |||
2450 | 2462 |
| |
2451 | 2463 |
| |
2452 | 2464 |
| |
2453 |
| - | |
2454 |
| - | |
2455 |
| - | |
2456 |
| - | |
2457 |
| - | |
2458 |
| - | |
2459 |
| - | |
2460 | 2465 |
| |
2461 | 2466 |
| |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
2462 | 2476 |
| |
2463 | 2477 |
| |
2464 | 2478 |
| |
2465 | 2479 |
| |
2466 | 2480 |
| |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
2467 | 2484 |
| |
2468 | 2485 |
| |
2469 |
| - | |
2470 |
| - | |
2471 |
| - | |
2472 | 2486 |
| |
2473 | 2487 |
| |
2474 | 2488 |
| |
| |||
4537 | 4551 |
| |
4538 | 4552 |
| |
4539 | 4553 |
| |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
| 4557 | + | |
| 4558 | + | |
| 4559 | + | |
| 4560 | + | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
| 4574 | + | |
| 4575 | + | |
| 4576 | + | |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
| 4582 | + | |
| 4583 | + | |
| 4584 | + | |
| 4585 | + | |
| 4586 | + | |
| 4587 | + | |
| 4588 | + | |
| 4589 | + | |
| 4590 | + | |
| 4591 | + | |
| 4592 | + |
0 commit comments
Comments
(0)