Reimplement 9f80f4835a55a1cbffcda5d23a617917f3286c14 with PQconninfo().

Noah Misch <noah@leadboat.com>

Commit: 64f86fb11e20b55fb742af72d55806f8bdd9cd2d
Author: Noah Misch <noah@leadboat.com>
Date: 2014-11-29T17:31:43Z
Releases: 9.5.0
Reimplement 9f80f4835a55a1cbffcda5d23a617917f3286c14 with PQconninfo().

Apart from ignoring "hostaddr" set to the empty string, this behaves
identically to its predecessor.  Back-patch to 9.4, where the original
commit first appeared.

Reviewed by Fujii Masao.

Files

PathChange+/−
src/bin/psql/command.c modified +22 −1