aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-08-05 14:27:20 +0900
committerMichael Paquier <michael@paquier.xyz>2019-08-05 14:27:20 +0900
commit05ba8370b8e4b5c8f3dd51986b9fdeb43fed5610 (patch)
treeb164578693fb2dfef5eff8a69b4bb27ecb470194
parent8548ddc61b5858b6466e69f66a6b1a7ea9daef06 (diff)
downloadpostgresql-05ba8370b8e4b5c8f3dd51986b9fdeb43fed5610.tar.gz
postgresql-05ba8370b8e4b5c8f3dd51986b9fdeb43fed5610.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 3f7001fb696..d40800709b0 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))