Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X0zwn-0000Pj-8Y for pgsql-bugs@arkaria.postgresql.org; Sat, 28 Jun 2014 21:14:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X0zwl-0006QR-Rw for pgsql-bugs@arkaria.postgresql.org; Sat, 28 Jun 2014 21:14:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X0zwk-0006QK-Sv for pgsql-bugs@postgresql.org; Sat, 28 Jun 2014 21:14:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X0zwh-0005HS-Ik for pgsql-bugs@postgresql.org; Sat, 28 Jun 2014 21:14:05 +0000 MIME-Version: 1.0 Subject: BUG #10794: psql sometimes ignores .psqlrc To: pgsql-bugs@postgresql.org From: marko@joh.to Date: Sat, 28 Jun 2014 21:13:59 +0000 Message-ID: <20140628211359.15697.92594@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs