The following bug has been logged on the website:
Bug reference: 10794
Logged by: Marko Tiikkaja
Email address: marko@joh.to
PostgreSQL version: 9.3.4
Operating system: OS X, Linux at least
Description:
Hi,
If I press ctrl-C while psql is prompting for a password but then log in
(either because I used -W and the server isn't expecting a password or if I
subsequently typed in the correct password), .psqlrc isn't processed. This
seems quite dangerous if the user is e.g. assuming a specific value for
AUTOCOMMIT.
I hear the behaviour is gone in HEAD; might have been fixed by commit
9099e4afe0e4101bc79f078be3e15639a048e633, not sure. I think something
deserves to be back patched.