Added tab completion for the missing options in copy statement - Mailing list pgsql-hackers

From vignesh C
Subject Added tab completion for the missing options in copy statement
Date
Msg-id CALDaNm3zWr=OmxeNqOqfT=uZTSdam_j-gkX94CL8eTNfgUtf6A@mail.gmail.com
Whole thread Raw
Responses Re: Added tab completion for the missing options in copy statement  (ahsan hadi <ahsan.hadi@gmail.com>)
Re: Added tab completion for the missing options in copy statement  (vignesh C <vignesh21@gmail.com>)
List pgsql-hackers
Hi,

I found that tab completion for some parts of the copy statement was
missing. The Tab completion was missing for the following cases:
1) COPY [BINARY] <sth> FROM filename -> "BINARY", "DELIMITER", "NULL",
"CSV", "ENCODING", "WITH (", "WHERE" should be shown.
2) COPY [BINARY] <sth> TO filename -> "BINARY", "DELIMITER", "NULL",
"CSV", "ENCODING", "WITH (" should be shown.
3) COPY [BINARY] <sth> FROM filename WITH options -> "WHERE" should be shown.

I could not find any test cases for tab completion, hence no tests
were added. Attached a patch which has the fix for the same.
Thoughts?

Regards,
Vignesh
EnterpriseDB: http://www.enterprisedb.com

Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Review for GetWALAvailability()
Next
From: vignesh C
Date:
Subject: Re: [PATCH] Remove Extra palloc Of raw_buf For Binary Format In COPY FROM