forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9390959
committed
libpq: drop pending pipelined commands in pqDropConnection().
The original coding did this in pqDropServerData(), which seemsfairly backwards. Pending commands are more like already-queuedoutput data, which is dropped in pqDropConnection(). Moving theoperation means that we clear the command queue immediately upondetecting connection drop, which improves the sanity of subsequentbehavior. In particular this eliminates duplicated error messagetext as a consequence of code added inb15f254, which supposedthat a nonempty command queue must mean the prior operation isstill active.There might be an argument for backpatching this to v14; but as withb15f254, I'm unsure about interactions with618c167. For now,given the lack of complaints about v14's behavior, leave it alone.Per report from Peter Eisentraut.Discussion:https://postgr.es/m/de57761c-b99b-3435-b0a6-474c72b1149a@enterprisedb.com1 parentb5f4422 commit9390959
1 file changed
+7
-6
lines changedLines changed: 7 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
377 | 377 |
| |
378 | 378 |
| |
379 | 379 |
| |
| 380 | + | |
380 | 381 |
| |
381 | 382 |
| |
382 | 383 |
| |
| |||
462 | 463 |
| |
463 | 464 |
| |
464 | 465 |
| |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
465 | 472 |
| |
466 | 473 |
| |
467 | 474 |
| |
| |||
569 | 576 |
| |
570 | 577 |
| |
571 | 578 |
| |
572 |
| - | |
573 |
| - | |
574 |
| - | |
575 |
| - | |
576 |
| - | |
577 |
| - | |
578 | 579 |
| |
579 | 580 |
| |
580 | 581 |
| |
|
0 commit comments
Comments
(0)