- Notifications
You must be signed in to change notification settings - Fork5
Commit9f80f48
committed
Add libpq function PQhostaddr().
There was a bug in the psql's meta command \conninfo. When theIP address was specified in the hostaddr and psql used it to createa connection (i.e., psql -d "hostaddr=xxx"), \conninfo could notdisplay that address. This is because \conninfo got the connectioninformation only from PQhost() which could not return hostaddr.This patch adds PQhostaddr(), and changes \conninfo so that itcan display not only the host name that PQhost() returns but alsothe IP address which PQhostaddr() returns.The bug has existed since 9.1 where \conninfo was introduced.But it's too late to add new libpq function into the released versions,so no backpatch.1 parentd5bc6ce commit9f80f48
File tree
5 files changed
+29
-1
lines changed- doc/src/sgml
- src
- bin/psql
- interfaces/libpq
5 files changed
+29
-1
lines changedLines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1464 | 1464 |
| |
1465 | 1465 |
| |
1466 | 1466 |
| |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
1467 | 1485 |
| |
1468 | 1486 |
| |
1469 | 1487 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
300 | 300 |
| |
301 | 301 |
| |
302 | 302 |
| |
303 |
| - | |
| 303 | + | |
304 | 304 |
| |
305 | 305 |
| |
306 | 306 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
| 168 | + |
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5200 | 5200 |
| |
5201 | 5201 |
| |
5202 | 5202 |
| |
| 5203 | + | |
| 5204 | + | |
| 5205 | + | |
| 5206 | + | |
| 5207 | + | |
| 5208 | + | |
| 5209 | + | |
| 5210 | + | |
5203 | 5211 |
| |
5204 | 5212 |
| |
5205 | 5213 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
| 304 | + | |
304 | 305 |
| |
305 | 306 |
| |
306 | 307 |
| |
|
0 commit comments
Comments
(0)