Fix up the PQconnectionUsedPassword mess: create a separate

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 4f9bf7fc5a1fcc3b1beac9b2e1d2e693ae7bd796
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-12-09T19:01:40Z
Releases: 8.3.0
Fix up the PQconnectionUsedPassword mess: create a separate
PQconnectionNeedsPassword function that tells the right thing for whether to
prompt for a password, and improve PQconnectionUsedPassword so that it checks
whether the password used by the connection was actually supplied as a
connection argument, instead of coming from environment or a password file.
Per bug report from Mark Cave-Ayland and subsequent discussion.

Files