aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-12-20 18:29:51 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-12-20 18:29:51 -0500
commit99ccb2309263183f0f3d838b79f3e07ad8cc6a63 (patch)
tree6acc664d61a3ca7113aa5da16e38eda5c337afa7
parentd854118c8df8c413d069f7e88bb01b9e18e4c8ed (diff)
downloadpostgresql-99ccb2309263183f0f3d838b79f3e07ad8cc6a63.tar.gz
postgresql-99ccb2309263183f0f3d838b79f3e07ad8cc6a63.zip
Remove silly completion for "DELETE FROM tabname ...".
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.
-rw-r--r--src/bin/psql/tab-complete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 1db56ee8fff..1a7d184af9f 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -2154,7 +2154,7 @@ psql_completion(const char *text, int start, int end)
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_updatables, NULL);
/* Complete DELETE FROM <table> */
else if (TailMatches3("DELETE", "FROM", MatchAny))
- COMPLETE_WITH_LIST3("USING", "WHERE", "SET");
+ COMPLETE_WITH_LIST2("USING", "WHERE");
/* XXX: implement tab completion for DELETE ... USING */
/* DISCARD */