forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit87d2801
committed
libpq: Fix error messages when server rejects SSL or GSS
These messages were lost in commit05fd30c. Put them back.This makes one change in the error message behavior compared to v16,in the case that the server responds to GSSRequest with an errorinstead of rejecting it with 'N'. Previously, libpq would hide theerror that the server sent, assuming that you got the error becausethe server is an old pre-v12 version that doesn't understand theGSSRequest message. A v11 server sends a "FATAL: unsupported frontendprotocol 1234.5680: server supports 2.0 to 3.0" error if you try toconnect to it with GSS. That was a reasonable assumption when thefeature was introduced, but v12 was released a long time ago and Idon't think it's the most probable cause anymore. The attached patchchanges things so that libpq prints the error message that the serversent in that case, making the "server responds with error toGSSRequest" case behave the same as the "server responds with error toSSLRequest" case.Reported-by: Peter EisentrautDiscussion:https://www.postgresql.org/message-id/bb3b94da-afc7-438d-8940-cb946e553d9d@eisentraut.org1 parent7e61e4c commit87d2801
1 file changed
+35
-14
lines changedLines changed: 35 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2861 | 2861 |
| |
2862 | 2862 |
| |
2863 | 2863 |
| |
2864 |
| - | |
2865 |
| - | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
2866 | 2870 |
| |
2867 | 2871 |
| |
2868 | 2872 |
| |
2869 | 2873 |
| |
| 2874 | + | |
2870 | 2875 |
| |
2871 | 2876 |
| |
2872 | 2877 |
| |
| |||
2877 | 2882 |
| |
2878 | 2883 |
| |
2879 | 2884 |
| |
2880 |
| - | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
2881 | 2890 |
| |
2882 | 2891 |
| |
2883 | 2892 |
| |
| |||
3483 | 3492 |
| |
3484 | 3493 |
| |
3485 | 3494 |
| |
3486 |
| - | |
3487 |
| - | |
3488 |
| - | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
3489 | 3502 |
| |
3490 | 3503 |
| |
3491 | 3504 |
| |
| |||
3583 | 3596 |
| |
3584 | 3597 |
| |
3585 | 3598 |
| |
3586 |
| - | |
3587 |
| - | |
3588 |
| - | |
3589 |
| - | |
3590 |
| - | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
| 3602 | + | |
| 3603 | + | |
| 3604 | + | |
| 3605 | + | |
| 3606 | + | |
3591 | 3607 |
| |
3592 |
| - | |
| 3608 | + | |
| 3609 | + | |
3593 | 3610 |
| |
3594 | 3611 |
| |
3595 | 3612 |
| |
3596 | 3613 |
| |
3597 | 3614 |
| |
3598 | 3615 |
| |
3599 | 3616 |
| |
3600 |
| - | |
3601 |
| - | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
3602 | 3623 |
| |
3603 | 3624 |
| |
3604 | 3625 |
| |
|
0 commit comments
Comments
(0)