From 6ecd7f501062eb5e38240b9eb02e86aed248bd34 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sun, 20 Dec 2015 18:29:51 -0500
Subject: [PATCH] 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.
---
 src/bin/psql/tab-complete.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 63424c502b4..3d6ed8da207 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -2096,7 +2096,7 @@ psql_completion(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);
 	}
-- 
GitLab