Content-Length: 258578 | pFad | http://github.com/postgrespro/postgres/commit/095d40123cedcdfa81c55f0de113067d95370d57

03 Tab complete second argument to \c with role names. · postgrespro/postgres@095d401 · GitHub
Skip to content

Commit 095d401

Browse files
committed
Tab complete second argument to \c with role names.
Ian Barwick
1 parent 67067f9 commit 095d401

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bin/psql/tab-complete.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3704,6 +3704,8 @@ psql_completion(const char *text, int start, int end)
37043704
}
37053705
else if (strcmp(prev_wd, "\\connect") == 0 || strcmp(prev_wd, "\\c") == 0)
37063706
COMPLETE_WITH_QUERY(Query_for_list_of_databases);
3707+
else if (strcmp(prev2_wd, "\\connect") == 0 || strcmp(prev2_wd, "\\c") == 0)
3708+
COMPLETE_WITH_QUERY(Query_for_list_of_roles);
37073709

37083710
else if (strncmp(prev_wd, "\\da", strlen("\\da")) == 0)
37093711
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_aggregates, NULL);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/095d40123cedcdfa81c55f0de113067d95370d57

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy