Re: COPY (... tab completion - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: COPY (... tab completion
Date
Msg-id 5692FEED.2080802@gmx.net
Whole thread Raw
In response to Re: COPY (... tab completion  (Andreas Karlsson <andreas@proxel.se>)
Responses Re: COPY (... tab completion
Re: COPY (... tab completion
Re: COPY (... tab completion
List pgsql-hackers
I think this would be a useful addition.  A couple of problems:

This change in the comment doesn't make sense to me and doesn't seem to
match the code:

-    /* If we have COPY [BINARY] <sth>, complete it with "TO" or "FROM" */
+    /* If we have COPY|BINARY <sth>, complete it with "TO" or "FROM" */

The list of commands to allow as the "query" inside the parentheses is
documented to be: SELECT, VALUES, INSERT, UPDATE or DELETE; and actually
TABLE should also work.  Your list doesn't include all of those.  So
please adjust that.



pgsql-hackers by date:

Previous
From: "Dickson S. Guedes"
Date:
Subject: Apparently deprecated code in planner.c
Next
From: Peter Eisentraut
Date:
Subject: Re: Copy-pasto in logical decoding docs