From: | "tanghy(dot)fnst(at)fujitsu(dot)com" <tanghy(dot)fnst(at)fujitsu(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | [PATCH] Add tab-complete for backslash commands |
Date: | 2021-07-15 09:46:18 |
Message-ID: | OS0PR01MB61136018064660F095CB57A8FB129@OS0PR01MB6113.jpnprd01.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi
Attached a patch to improve the tab completion for backslash commands.
I think it’s common for some people(I'm one of them) to use full-name commands than abbreviation.
So it's more convenient if we can add the full-name backslash commands in the tab-complete.c.
When modify tab-complete.c, I found \dS was added in the backslash_commands[], but I think maybe it should be removed just like other \x[S].
So I removed it.
Besides, I also added a little change in help.c.
- exchange the positon of \des and \det according to alphabetical order
- rename PATRN1/PATRN2 to ROLEPTRN/DBPTRN to make expression more comprehensible
Any comment is welcome.
Regards,
Tang
Attachment | Content-Type | Size |
---|---|---|
0001-add-tab-complete-for-backslash-commands.patch | application/octet-stream | 3.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Ronan Dunklau | 2021-07-15 10:18:22 | Re: [PATCH] Use optimized single-datum tuplesort in ExecSort |
Previous Message | Etsuro Fujita | 2021-07-15 09:35:33 | Re: BUG #16583: merge join on tables with different DB collation behind postgres_fdw fails |