- Notifications
You must be signed in to change notification settings - Fork28
Commit76b11e8
committed
Give a better error message on invalid hostaddr option.
If you accidentally pass a host name in the hostaddr option, e.g.hostaddr=localhost, you get an error like:psql: could not translate host name "localhost" to address: Name or service not knownThat's a bit confusing, because it implies that we tried to look up"localhost" in DNS, but it failed. To make it more clear that we tried toparse "localhost" as a numeric network address, change the message to:psql: could not parse network address "localhost": Name or service not knownDiscussion:https://www.postgresql.org/message-id/10badbc6-4d5a-a769-623a-f7ada43e14dd@iki.fi1 parent67d370e commit76b11e8
1 file changed
+26
-15
lines changedLines changed: 26 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1642 | 1642 |
| |
1643 | 1643 |
| |
1644 | 1644 |
| |
1645 |
| - | |
1646 | 1645 |
| |
1647 | 1646 |
| |
1648 | 1647 |
| |
| |||
1668 | 1667 |
| |
1669 | 1668 |
| |
1670 | 1669 |
| |
1671 |
| - | |
| 1670 | + | |
1672 | 1671 |
| |
1673 | 1672 |
| |
1674 | 1673 |
| |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
1675 | 1679 |
| |
| 1680 | + | |
1676 | 1681 |
| |
1677 | 1682 |
| |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
1678 | 1688 |
| |
| 1689 | + | |
1679 | 1690 |
| |
1680 | 1691 |
| |
1681 |
| - | |
1682 | 1692 |
| |
1683 | 1693 |
| |
1684 | 1694 |
| |
| |||
1690 | 1700 |
| |
1691 | 1701 |
| |
1692 | 1702 |
| |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
1693 | 1714 |
| |
1694 | 1715 |
| |
| 1716 | + | |
| 1717 | + | |
1695 | 1718 |
| |
1696 |
| - | |
1697 | 1719 |
| |
1698 |
| - | |
1699 |
| - | |
1700 |
| - | |
1701 | 1720 |
| |
1702 | 1721 |
| |
1703 |
| - | |
1704 |
| - | |
1705 |
| - | |
1706 |
| - | |
1707 |
| - | |
1708 |
| - | |
1709 |
| - | |
1710 |
| - | |
1711 | 1722 |
| |
1712 | 1723 |
| |
1713 | 1724 |
| |
|
0 commit comments
Comments
(0)