Re: [PATCH] Add missing \ddp psql command - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: [PATCH] Add missing \ddp psql command
Date
Msg-id CAHGQGwEk_5aLTZb+5MdhHx2revhE+NOpGEmSfrWy2ogbd=wwBA@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Add missing \ddp psql command  (David Christensen <david@endpoint.com>)
Responses Re: [PATCH] Add missing \ddp psql command  (Fujii Masao <masao.fujii@gmail.com>)
Re: [PATCH] Add missing \ddp psql command  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On Tue, Jul 7, 2015 at 10:44 PM, David Christensen <david@endpoint.com> wrote:
>
>> On Jul 7, 2015, at 3:53 AM, Fujii Masao <masao.fujii@gmail.com> wrote:
>>
>> On Tue, Jul 7, 2015 at 2:11 AM, David Christensen <david@endpoint.com> wrote:
>>> Quickie patch for spotted missing psql \ddp tab-completion.
>>
>> Thanks for the report and patch!
>>
>> I found that tab-completion was not supported in not only \ddp
>> but also other psql meta commands like \dE, \dm, \dO, \dy, \s and
>> \setenv. Attached patch adds all those missing tab-completions.
>
> From a completeness standpoint makes sense to me to have all of them, but from a practical standpoint a
single-charactercompletion like \s isn’t going to do much. :) 

Sometimes I type TAB after \ to display all the psql meta commands.
Even single-character completion like \s may be useful for that case.
Yeah, I agree that's narrow use case, though.

Regards,

--
Fujii Masao



pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: Spurious full-stop in message
Next
From: Tom Lane
Date:
Subject: Re: Comfortably check BackendPID with psql