diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-08-05 14:30:27 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-08-05 14:30:27 +0900 |
commit | e733adc51fbb7788e8840c05322b5c2c110fcf9b (patch) | |
tree | 68b1b02ef2bb9f35021f7d24d985ccbef5856b75 | |
parent | 670f2a43c2b980fd6dd7495ace10190b9efed227 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index d4738429587..d4aa4d22abe 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -1676,7 +1676,7 @@ psql_completion(const char *text, int start, int end) /* ALTER LANGUAGE <name> */ else if (Matches3("ALTER", "LANGUAGE", MatchAny)) - COMPLETE_WITH_LIST2("OWNER_TO", "RENAME TO"); + COMPLETE_WITH_LIST2("OWNER TO", "RENAME TO"); /* ALTER LARGE OBJECT <oid> */ else if (Matches4("ALTER", "LARGE", "OBJECT", MatchAny)) |