RE: [PATCH] Add tab-complete for backslash commands - Mailing list pgsql-hackers

From tanghy.fnst@fujitsu.com
Subject RE: [PATCH] Add tab-complete for backslash commands
Date
Msg-id OS0PR01MB6113CDDA461942C11061463BFBD29@OS0PR01MB6113.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: [PATCH] Add tab-complete for backslash commands  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCH] Add tab-complete for backslash commands
List pgsql-hackers
On Sunday, September 5, 2021 1:42 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>I particularly question why we'd offer both
>single- and multiple-character versions, as the single-character
>version seems entirely useless from a completion standpoint.

I generally agreed with your opinion. But I'm not sure if there's someone
who'd like to see the list of backslash commands and choose one to use.
I mean, someone may type '\[tab][tab]' to check all supported backslash commands.
postgres=# \
Display all 105 possibilities? (y or n)
\!             \dc            \dL            \dx            \h             \r
...

In the above scenario, both single- and multiple-character versions could be helpful, thought?

Regards,
Tang

pgsql-hackers by date:

Previous
From: "tanghy.fnst@fujitsu.com"
Date:
Subject: RE: Added schema level support for publication.
Next
From: Michael Paquier
Date:
Subject: Re: Postgres perl module namespace