aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-08-05 14:30:05 +0900
committerMichael Paquier <michael@paquier.xyz>2019-08-05 14:30:05 +0900
commit159e4bf7406f0cd46aae3f3873d28bdc63c110bf (patch)
treecd5c8220ca117320d1772e6f5e809eacbf97d002
parent2c133db2b42029a7df7d5d6cde48a898c6ca3ef0 (diff)
downloadpostgresql-159e4bf7406f0cd46aae3f3873d28bdc63c110bf.tar.gz
postgresql-159e4bf7406f0cd46aae3f3873d28bdc63c110bf.zip
Fix tab completion for ALTER LANGUAGE in psql
OWNER_TO was used for the completion, which is not a supported grammar, but OWNER TO is. This error has been introduced by d37b816, so backpatch down to 9.6. Author: Alexander Lakhin Discussion: https://postgr.es/m/7ab243e0-116d-3e44-d120-76b3df7abefd@gmail.com Backpatch-through: 9.6
-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 12355348c95..d6e938f115e 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -1686,7 +1686,7 @@ psql_completion(const char *text, int start, int end)
/* ALTER LANGUAGE <name> */
else if (Matches("ALTER", "LANGUAGE", MatchAny))
- COMPLETE_WITH("OWNER_TO", "RENAME TO");
+ COMPLETE_WITH("OWNER TO", "RENAME TO");
/* ALTER LARGE OBJECT <oid> */
else if (Matches("ALTER", "LARGE", "OBJECT", MatchAny))