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

From tanghy.fnst@fujitsu.com
Subject [PATCH] Add tab-complete for backslash commands
Date
Msg-id OS0PR01MB61136018064660F095CB57A8FB129@OS0PR01MB6113.jpnprd01.prod.outlook.com
Whole thread Raw
Responses RE: [PATCH] Add tab-complete for backslash commands
List 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
justlike 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

pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: BUG #16583: merge join on tables with different DB collation behind postgres_fdw fails
Next
From: Ronan Dunklau
Date:
Subject: Re: [PATCH] Use optimized single-datum tuplesort in ExecSort