Still not happy with psql's multiline history behavior

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sergey E(dot) Koposov" <math(at)sai(dot)msu(dot)ru>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Still not happy with psql's multiline history behavior
Date: 2006-05-31 14:13:45
Message-ID: 11971.1149084825@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

I'm getting grudgingly more used to CVS HEAD's behavior of stuffing a
multiline command into the history buffer as a single item, but there's
still something bothering me about it. I've finally put my finger on
what. I think it should not combine SQL text and backslash commands
into a single history entry. The example that seriously sucks is:

regression=# select foo ...
regression-# \r
Query buffer reset (cleared).
now control-P brings back:
regression=# select foo ...
\r

In the case where I type SQL and backslash on one line, of course it
can't break them apart, but I think there should be a general rule that
a line starting with a backslash is always a separate history entry.

Also, \e is seriously broken: after you edit the text and exit the
editor, the text is not reloaded into the visible display (although it
does seem to still be "behind the scenes" somewhere).

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-05-31 14:15:35 Re: [PATCHES] Magic block for modules
Previous Message Averbukh Stella 2006-05-31 13:53:38 Re: Problem building initdb on sparc10

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-05-31 14:15:35 Re: [PATCHES] Magic block for modules
Previous Message Bruce Momjian 2006-05-31 11:36:24 Re: psql strings and ''