mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
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
This commit is contained in:
parent
77cb4a1d67
commit
8d304072a2
@ -1056,7 +1056,7 @@ static const pgsql_thing_t words_after_create[] = {
|
|||||||
* INDEX ... */
|
* INDEX ... */
|
||||||
{"UNLOGGED", NULL, NULL, THING_NO_DROP | THING_NO_ALTER}, /* for CREATE UNLOGGED
|
{"UNLOGGED", NULL, NULL, THING_NO_DROP | THING_NO_ALTER}, /* for CREATE UNLOGGED
|
||||||
* TABLE ... */
|
* TABLE ... */
|
||||||
{"USER", Query_for_list_of_roles},
|
{"USER", Query_for_list_of_roles " UNION SELECT 'MAPPING FOR'"},
|
||||||
{"USER MAPPING FOR", NULL, NULL},
|
{"USER MAPPING FOR", NULL, NULL},
|
||||||
{"VIEW", NULL, &Query_for_list_of_views},
|
{"VIEW", NULL, &Query_for_list_of_views},
|
||||||
{NULL} /* end of list */
|
{NULL} /* end of list */
|
||||||
|
Loading…
Reference in New Issue
Block a user