forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd5d91ac
committed
Make error hint from bind() failure more accurate
The hint "Is another postmaster already running ..." should only beprinted for errors that are really about something else already usingthe address. In other cases it is misleading. So only show that hintif errno == EADDRINUSE.Also, since Unix-domain sockets in the file-system namespace neverreport EADDRINUSE for an existing file (they would just overwrite it),the part of the hint saying "If not, remove socket file \"%s\" andretry." can never happen, so remove it. Unix-domain sockets in theabstract namespace can report EADDRINUSE, but in that case there is nofile to remove, so the hint doesn't work there either.Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://www.postgresql.org/message-id/flat/6dee8574-b0ad-fc49-9c8c-2edc796f0033@2ndquadrant.com1 parentc9f0624 commitd5d91ac
1 file changed
+9
-7
lines changedLines changed: 9 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
530 | 530 |
| |
531 | 531 |
| |
532 | 532 |
| |
| 533 | + | |
| 534 | + | |
533 | 535 |
| |
534 | 536 |
| |
535 | 537 |
| |
536 | 538 |
| |
537 | 539 |
| |
538 |
| - | |
539 |
| - | |
540 |
| - | |
541 |
| - | |
542 |
| - | |
543 |
| - | |
544 |
| - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
545 | 547 |
| |
546 | 548 |
| |
547 | 549 |
| |
|
0 commit comments
Comments
(0)