Added tab completion for the missing options in copy statement
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-06-27T01:22:56Z
Lists: pgsql-hackers
Attachments
- 0001-Tab-completion-for-copy-statement.patch (text/x-patch) patch 0001
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
Commits
-
Rework tab completion of COPY and \copy in psql
- c273d9d8ce41 14.0 landed
-
doc: Fix description of \copy for psql
- aee67299306e 12.4 landed
- 580d8ac9b1ef 13.0 landed
- b74d449a02b3 14.0 landed