pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jeff Frost <jeff@pgexperts.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: bogus psql "could not save history file[...]" message in 9.3.6
Date: Fri, 13 Mar 2015 23:46:19 -0300
Message-ID: <20150314024619.GJ3291@alvh.no-ip.org> (raw)
In-Reply-To: <31999.1426299748@sss.pgh.pa.us>
References: <CAKFQuwZx4E53BHBUFseoawEtwyrmDhY5ksvzhYtkHEoNd3kc1Q@mail.gmail.com>
	<31313.1426298202@sss.pgh.pa.us>
	<C62C1935-E674-4828-BA68-6C599263C600@pgexperts.com>
	<31999.1426299748@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Tom Lane wrote:
> Jeff Frost <jeff@pgexperts.com> writes:
> >> On Mar 13, 2015, at 9:56 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >> strace'ing psql while it exits might be informative.
> 
> > Here you go:
> 
> > ...
> > rename("/var/lib/postgresql/.psql_history", "/var/lib/postgresql/.psql_history-") = -1 ENOENT (No such file or directory)
> > open("/var/lib/postgresql/.psql_history", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3
> > write(3, "select 1;\n", 10)             = 10
> > close(3)                                = 0
> > unlink("/var/lib/postgresql/.psql_history-") = -1 ENOENT (No such file or directory)
> 
> ... WTF?  That rename() and that unlink() are certainly not coming from
> Postgres, and I do not see anything like that in the libedit sources
> either.  (I'm looking at the libedit-20141030-3.1 version that Fedora
> is currently shipping.)  That must be coming from some Ubuntu-specific
> patch?

You can use
  apt-get source libedit2
to obtain a copy of the tarball plus all the patches that were applied
to build the package.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
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: <20150314024619.GJ3291@alvh.no-ip.org>
Permalink:  ../20150314024619.GJ3291@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20150314024619.GJ3291@alvh.no-ip.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: alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, jeff@pgexperts.com, david.g.johnston@gmail.com
  Subject: Re: bogus psql "could not save history file[...]" message in 9.3.6
  In-Reply-To: <20150314024619.GJ3291@alvh.no-ip.org>
  References: <CAKFQuwZx4E53BHBUFseoawEtwyrmDhY5ksvzhYtkHEoNd3kc1Q@mail.gmail.com> <31313.1426298202@sss.pgh.pa.us> <C62C1935-E674-4828-BA68-6C599263C600@pgexperts.com> <31999.1426299748@sss.pgh.pa.us> <20150314024619.GJ3291@alvh.no-ip.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