Re: psql history and "-- lines"

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Дилян Палаузов <dpa-postgres(at)aegee(dot)org>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: psql history and "-- lines"
Date: 2017-05-05 20:57:40
Message-ID: CAKFQuwZ8f9smjWr97qFW+scCg+bydiKHHpEO6gs6Pq=DQxWoaA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, May 5, 2017 at 1:52 PM, Дилян Палаузов <dpa-postgres(at)aegee(dot)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.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Дилян Палаузов 2017-05-05 21:36:13 Postgresql and Clang Static Analyzer
Previous Message Дилян Палаузов 2017-05-05 20:52:05 psql history and "-- lines"