RE: [PATCH] Add tab-complete for backslash commands

tanghy.fnst@fujitsu.com <tanghy.fnst@fujitsu.com>

From: "tanghy.fnst@fujitsu.com" <tanghy.fnst@fujitsu.com>
To: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-08-08T10:36:49Z
Lists: pgsql-hackers
On Sunday, August 8, 2021 8:13 AM, Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> wrote:
>> +		"\\r", "\\rset",
>
>There's a typo here, that should be "\\reset".  Also, I noticed that for
>\connect, the situation is the opposite: it has the full form but not
>the short form (\c).
>
>I've addressed both in the attached v2 patch.

Thanks for you comments and fix. Your modified patch LGTM.

Regards,
Tang

Commits

  1. In psql tab completion, offer spelled-out commands not abbreviations.

  2. Minor improvements for psql help output.