From: i+pgbugs@avdd.tk
To: pgsql-bugs@postgresql.org
Subject: BUG #6602: concurrent psql session clobbers history
Date: Thu, 19 Apr 2012 10:02:35 +0000
Message-ID: <E1SKoCB-00068b-5S@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6602
Logged by: Adrian Dries
Email address: i+pgbugs@avdd.tk
PostgreSQL version: 9.1.3
Operating system: Ubuntu ppa:pitti/postgresql
Description:
A concurrent psql session will overwrite the history of the first. This
does not look good: a database tool causing me to lose my data!
# session 1
$ psql -q
postgres=# \echo first session exits first
first session exits first
postgres=# \q
$ cat .psql_history
\echo first session exits first
\q
$ psql -q
postgres=#
$ cat .psql_history
\echo second session exits second
\q
$ psql -q
postgres=# \echo first session exits second
first session exits second
postgres=# \q
$ cat .psql_history
\echo second session exits second
\q
\echo first session exits second
\q
# session 2
$ psql -q
postgres=# \echo second session exits second
second session exits second
postgres=# \q
$ cat .psql_history
\echo second session exits second
\q
$ psql -q
postgres=# \echo second session exits first
second session exits first
postgres=# \q
$ cat .psql_history
\echo second session exits second
\q
\echo second session exits first
\q
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: i+pgbugs@avdd.tk
Subject: Re: BUG #6602: concurrent psql session clobbers history
In-Reply-To: <E1SKoCB-00068b-5S@wrigleys.postgresql.org>
References: <E1SKoCB-00068b-5S@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