BUG #10794: psql sometimes ignores .psqlrc - Mailing list pgsql-bugs

From marko@joh.to
Subject BUG #10794: psql sometimes ignores .psqlrc
Date
Msg-id 20140628211359.15697.92594@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #10794: psql sometimes ignores .psqlrc  (Marko Tiikkaja <marko@joh.to>)
List pgsql-bugs
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.

pgsql-bugs by date:

Previous
From: Matheus de Oliveira
Date:
Subject: Re: BUG #10793: Empty result set instead of column does not exist error using CTE.
Next
From: bashtanov@imap.cc
Date:
Subject: BUG #10816: explain analyze reports different rows counts before and after sort