diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-07-27 14:13:15 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-07-27 14:13:15 -0400 |
commit | a84a412398a41011dad79ec665bff0af1fc094e3 (patch) | |
tree | 1f48eed766f0ea0d7ebb203b33bd639195b7f70a | |
parent | a464d7765cb8bef9503044482a4bf503b247f555 (diff) | |
download | postgresql-a84a412398a41011dad79ec665bff0af1fc094e3.tar.gz postgresql-a84a412398a41011dad79ec665bff0af1fc094e3.zip |
Fix psql tab completion for CREATE USER MAPPING.
After typing CREATE USER M..., it would not fill in MAPPING FOR,
even though that was clearly intended behavior.
Jeff Janes
Discussion: https://postgr.es/m/CAMkU=1wo2iQ6jWnN=egqOb5NxEPn0PpANEtKHr3uPooQ+nYPtw@mail.gmail.com
-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 1150952b2e2..d6988f26546 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -780,7 +780,7 @@ static const pgsql_thing_t words_after_create[] = { {"UNIQUE", NULL, NULL, THING_NO_DROP}, /* for CREATE UNIQUE INDEX ... */ {"UNLOGGED", NULL, NULL, THING_NO_DROP}, /* for CREATE UNLOGGED TABLE * ... */ - {"USER", Query_for_list_of_roles}, + {"USER", Query_for_list_of_roles " UNION SELECT 'MAPPING FOR'"}, {"USER MAPPING FOR", NULL, NULL}, {"VIEW", NULL, &Query_for_list_of_views}, {NULL} /* end of list */ |