Remove silly completion for "DELETE FROM tabname ...".
authorTom Lane
Sun, 20 Dec 2015 23:29:51 +0000 (18:29 -0500)
committerTom Lane
Sun, 20 Dec 2015 23:29:51 +0000 (18:29 -0500)
psql offered USING, WHERE, and SET in this context, but SET is not a valid
possibility here.  Seems to have been a thinko in commit f5ab0a14ea83eb6c
which added DELETE's USING option.

src/bin/psql/tab-complete.c

index b935810fe1ec6cdb9327ee881cb75d12dd2d12c6..44d7a4f05f46ea2821f62e719723cf256b7ca1e6 100644 (file)
@@ -2759,7 +2759,7 @@ psql_completion(const char *text, int start, int end)
             pg_strcasecmp(prev2_wd, "FROM") == 0)
    {
        static const char *const list_DELETE[] =
-       {"USING", "WHERE", "SET", NULL};
+       {"USING", "WHERE", NULL};
 
        COMPLETE_WITH_LIST(list_DELETE);
    }