forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb438e7e
committed
Restructure libpq code to remove some duplicity
There was some duplicate code to run SHOW transaction_read_only todetermine whether the server is read-write or read-only. Reduce it byadding another state to the state machine.Author: Hari Babu KommiReviewed-by: Takayuki Tsunakawa, Álvaro HerreraDiscussion:https://postgr.es/m/CAJrrPGe_qgdbbN+yBgEVpd+YLHXXjTruzk6RmTMhqrFig+32ag@mail.gmail.com1 parent55d015b commitb438e7e
2 files changed
+33
-55
lines changedLines changed: 31 additions & 54 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
173 |
| - | |
| 173 | + | |
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
| |||
3434 | 3434 |
| |
3435 | 3435 |
| |
3436 | 3436 |
| |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
| 3443 | + | |
3437 | 3444 |
| |
3438 | 3445 |
| |
3439 | 3446 |
| |
| |||
3476 | 3483 |
| |
3477 | 3484 |
| |
3478 | 3485 |
| |
3479 |
| - | |
3480 |
| - | |
3481 |
| - | |
3482 |
| - | |
3483 |
| - | |
3484 |
| - | |
3485 |
| - | |
3486 |
| - | |
3487 |
| - | |
3488 |
| - | |
3489 | 3486 |
| |
3490 |
| - | |
3491 |
| - | |
3492 |
| - | |
3493 |
| - | |
3494 |
| - | |
3495 |
| - | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
| 3493 | + | |
3496 | 3494 |
| |
3497 |
| - | |
3498 |
| - | |
3499 |
| - | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
3500 | 3499 |
| |
3501 |
| - | |
3502 |
| - | |
3503 |
| - | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
3504 | 3503 |
| |
3505 |
| - | |
3506 |
| - | |
3507 |
| - | |
3508 |
| - | |
3509 |
| - | |
3510 |
| - | |
3511 |
| - | |
3512 |
| - | |
3513 |
| - | |
3514 |
| - | |
3515 |
| - | |
3516 |
| - | |
3517 |
| - | |
3518 |
| - | |
3519 |
| - | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
3520 | 3507 |
| |
3521 |
| - | |
3522 |
| - | |
3523 |
| - | |
3524 |
| - | |
3525 |
| - | |
3526 |
| - | |
| 3508 | + | |
| 3509 | + | |
3527 | 3510 |
| |
3528 |
| - | |
3529 |
| - | |
3530 |
| - | |
3531 |
| - | |
3532 |
| - | |
3533 |
| - | |
3534 |
| - | |
3535 | 3511 |
| |
3536 |
| - | |
3537 |
| - | |
3538 |
| - | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
3539 | 3516 |
| |
3540 | 3517 |
| |
3541 | 3518 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
70 |
| - | |
| 70 | + | |
| 71 | + | |
71 | 72 |
| |
72 | 73 |
| |
73 | 74 |
| |
|
0 commit comments
Comments
(0)