postgresql/src/bin
Alvaro Herrera 313f56ce2d Tweak libpq's PQhost, PQhostaddr, and psql's \connect
Fixes some problems introduced by 6e5f8d489a:

* When reusing conninfo data from the previous connection in \connect,
  the host address should only be reused if it was specified as
  hostaddr; if it wasn't, then 'host' is resolved afresh.  We were
  reusing the same IP address, which ignores a possible DNS change
  as well as any other addresses that the name resolves to than the
  one that was used in the original connection.

* PQhost, PQhostaddr: Don't present user-specified hostaddr when we have
  an inet_net_ntop-produced equivalent address.  The latter has been
  put in canonical format, which is cleaner (so it produces "127.0.0.1"
  when given "host=2130706433", for example).

* Document the hostaddr-reusing aspect of \connect.

* Fix some code comments

Author: Fabien Coelho
Reported-by: Noah Misch
Discussion: https://postgr.es/m/20190527203713.GA58392@gust.leadboat.com
2019-06-14 18:02:26 -04:00
..
initdb Initial pgperltidy run for v12. 2019-05-22 13:36:19 -04:00
pg_archivecleanup Initial pgindent run for v12. 2019-05-22 12:55:34 -04:00
pg_basebackup Update stale comments, and fix comment typos. 2019-06-08 10:12:26 -07:00
pg_checksums Improve some comments in pg_checksums about the needed clean shutdown 2019-06-07 20:48:39 +09:00
pg_config Translation updates 2019-05-20 16:00:53 +02:00
pg_controldata Translation updates 2019-05-20 16:00:53 +02:00
pg_ctl Initial pgperltidy run for v12. 2019-05-22 13:36:19 -04:00
pg_dump Fix double-word typos 2019-06-13 10:03:56 -04:00
pg_resetwal Translation updates 2019-05-20 16:00:53 +02:00
pg_rewind Update stale comments, and fix comment typos. 2019-06-08 10:12:26 -07:00
pg_test_fsync Translation updates 2019-05-20 16:00:53 +02:00
pg_test_timing Translation updates 2019-05-20 16:00:53 +02:00
pg_upgrade Update stale comments, and fix comment typos. 2019-06-08 10:12:26 -07:00
pg_waldump pg_waldump: Fix invalid option handling 2019-06-06 10:14:25 +02:00
pgbench Initial pgperltidy run for v12. 2019-05-22 13:36:19 -04:00
pgevent Update copyright for 2019 2019-01-02 12:44:25 -05:00
psql Tweak libpq's PQhost, PQhostaddr, and psql's \connect 2019-06-14 18:02:26 -04:00
scripts Initial pgperltidy run for v12. 2019-05-22 13:36:19 -04:00
Makefile Rename pg_verify_checksums to pg_checksums 2019-03-13 10:43:20 +09:00