Commit d8b2beb
committed
Remove no-longer-appropriate special case in psql's \conninfo code.
\conninfo prints the results of PQhost() and some other libpq functions.
It used to override the PQhost() result with the hostaddr parameter if
that'd been given, but that's unhelpful when multiple hosts were listed
in the connection string. Furthermore, it seems unnecessary in the wake
of commit 1944cdc, since PQhost does any useful substitution itself.
So let's just remove the extra code and print PQhost()'s result without
any editorialization.
Back-patch to v10, as 1944cdc (just) was.
Discussion: https://postgr.es/m/23287.1533227021@sss.pgh.pa.us1 parent 6efc301 commit d8b2beb
1 file changed
+1
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
| 598 | + | |
617 | 599 | | |
618 | 600 | | |
619 | 601 | | |
| |||
623 | 605 | | |
624 | 606 | | |
625 | 607 | | |
626 | | - | |
627 | | - | |
628 | 608 | | |
629 | 609 | | |
630 | 610 | | |
| |||
0 commit comments