Re: [BUGS] psql history and "-- lines" - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: [BUGS] psql history and "-- lines"
Date
Msg-id CAKFQuwZ8f9smjWr97qFW+scCg+bydiKHHpEO6gs6Pq=DQxWoaA@mail.gmail.com
Whole thread Raw
In response to [BUGS] psql history and "-- lines"  (Дилян Палаузов<dpa-postgres@aegee.org>)
Responses Re: [BUGS] psql history and "-- lines"  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Fri, May 5, 2017 at 1:52 PM, Дилян Палаузов <dpa-postgres@aegee.org> wrote:
Hello,


when I do
# psql
db=> -- whatever
db=> SELECT * FROM x;

I expect, that who lines enter the history: "-- whaever" and "SELECT * FROM x;". However, when I press the up-arrow, both lines appear.


--single-line does not change this (I wouldn't expect actually).

Could you plexe alter psql, so that it logs two lines in the history for the mentioned case?

It probably should only behave as you suggest in --single-line mode...

David J.

pgsql-bugs by date:

Previous
From: Дилян Палаузов
Date:
Subject: [BUGS] psql history and "-- lines"
Next
From: Дилян Палаузов
Date:
Subject: [BUGS] Postgresql and Clang Static Analyzer