pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rotten@windfish.net
To: pgsql-bugs@postgresql.org
Subject: BUG #14287: psql_history gets wiped out
Date: Thu, 11 Aug 2016 17:18:29 +0000
Message-ID: <20160811171829.26420.71002@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:      14287
Logged by:          Rick Otten
Email address:      rotten@windfish.net
PostgreSQL version: 9.5.3
Operating system:   Ubuntu 14.04
Description:        

I believe this behavior is new to the 9.5.3 psql client.  It has been
bugging me ever since we patched to that release.

The psql_history file works fine unless you close your window without
exiting the psql shell.  If you just drop your window (and corresponding ssh
session), the entire psql_history file will get wiped out. (file size 0)

This took me quite a while to figure out.  My history would be there
sometimes when I came back, and other times it would be wiped out.  At first
I thought I had a hacker trying to hide their tracks.  After some research I
concluded that was not the case.

It was a colleague whom I observed closing their putty window without first
exiting the psql shell this morning that finally revealed how it was
happening.

It is reproducible in our environment.





-- 
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 (13+ messages)  latest in thread

Message-ID: <20160811171829.26420.71002@wrigleys.postgresql.org>
Permalink:  ../20160811171829.26420.71002@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160811171829.26420.71002@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: rotten@windfish.net
  Subject: Re: BUG #14287: psql_history gets wiped out
  In-Reply-To: <20160811171829.26420.71002@wrigleys.postgresql.org>
  References: <20160811171829.26420.71002@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