Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8d30407

Browse files
committed
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
1 parent 77cb4a1 commit 8d30407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/tab-complete.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ static const pgsql_thing_t words_after_create[] = {
10561056
* INDEX ... */
10571057
{"UNLOGGED", NULL, NULL, THING_NO_DROP | THING_NO_ALTER}, /* for CREATE UNLOGGED
10581058
* TABLE ... */
1059-
{"USER", Query_for_list_of_roles},
1059+
{"USER", Query_for_list_of_roles " UNION SELECT 'MAPPING FOR'"},
10601060
{"USER MAPPING FOR", NULL, NULL},
10611061
{"VIEW", NULL, &Query_for_list_of_views},
10621062
{NULL} /* end of list */

0 commit comments

Comments
 (0)