pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: marko@joh.to
To: pgsql-bugs@postgresql.org
Subject: BUG #10794: psql sometimes ignores .psqlrc
Date: Sat, 28 Jun 2014 21:13:59 +0000
Message-ID: <20140628211359.15697.92594@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (9+ messages)  latest in thread

Message-ID: <20140628211359.15697.92594@wrigleys.postgresql.org>
Permalink:  ../20140628211359.15697.92594@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20140628211359.15697.92594@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: marko@joh.to
  Subject: Re: BUG #10794: psql sometimes ignores .psqlrc
  In-Reply-To: <20140628211359.15697.92594@wrigleys.postgresql.org>
  References: <20140628211359.15697.92594@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox