From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Kevin Wang <kevinpgcloud(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: A tiny improvement of psql |
Date: | 2023-12-26 16:36:41 |
Message-ID: | 2036813.1703608601@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Kevin Wang <kevinpgcloud(at)gmail(dot)com> writes:
> As you know, we can use the UP arrow key to get the previous command to
> avoid extra typing. This is a wonderful feature to save the lives of every
> DBA. However, if I type the commands like this sequence: A, B, B, B, B, B,
> B, as you can see, B is the last command I execute.
> But if I try to get command A, I have to press the UP key 7 times. I think
> the best way is: when you press the UP key, plsql should show the command
> that is different from the previous command, so the recall sequence should
> be B -> A, not B -> B -> ... -> A. Then I only press the UP key 2 times to
> get command A.
This is driven by libreadline, not anything we control. I have
seen the behavior you describe in some other programs, so I wonder
whether it's configurable.
> Another requirement is: could we use / to repeat executing the last command
> in plsql just like sqlplus in Oracle?
I'm pretty certain you can configure this for yourself with readline.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2023-12-26 16:48:25 | WIP Incremental JSON Parser |
Previous Message | Umair Shahid | 2023-12-26 15:29:50 | Update docs for default value of fdw_tuple_cost |