On 12/19/2014 11:57 PM, Dave Page wrote:
> Right - we'd have to store the entries somewhere based on the target
> server and the SSH config, and dynamically rebuilt the pgpass file
> during the connection process. That seems a) ugly and b) very fragile.
Darn. I thought libpq had a callback for a password prompt, but it doesn't.
Guess we should add that. If libpq gets an auth request from the server
and has no password from the connection string, it should invoke a
callback (if supplied) that lets the client supply a password dynamically.
-- Craig Ringer http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services