Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id D43B9125F9C8 for ; Thu, 19 Apr 2012 07:02:49 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SKoCO-0004Yc-Un for pgsql-bugs@postgresql.org; Thu, 19 Apr 2012 10:02:49 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SKoCB-00084L-NU for pgsql-bugs@postgresql.org; Thu, 19 Apr 2012 10:02:36 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SKoCB-00068b-5S for pgsql-bugs@postgresql.org; Thu, 19 Apr 2012 10:02:35 +0000 Date: Thu, 19 Apr 2012 10:02:35 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6602: concurrent psql session clobbers history To: pgsql-bugs@postgresql.org From: i+pgbugs@avdd.tk X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/117 X-Sequence-Number: 32868 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=3D# \echo first session exits first first session exits first postgres=3D# \q $ cat .psql_history = \echo first session exits first \q $ psql -q postgres=3D# = $ cat .psql_history = \echo second session exits second \q $ psql -q postgres=3D# \echo first session exits second first session exits second postgres=3D# \q $ cat .psql_history = \echo second session exits second \q \echo first session exits second \q # session 2 $ psql -q postgres=3D# \echo second session exits second second session exits second postgres=3D# \q $ cat .psql_history = \echo second session exits second \q $ psql -q postgres=3D# \echo second session exits first second session exits first postgres=3D# \q $ cat .psql_history = \echo second session exits second \q \echo second session exits first \q =