From: Bruce Momjian Date: Wed, 8 Apr 2009 04:05:16 +0000 (+0000) Subject: Improve tab completion for \ef. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b493f708e0859774e290059115bb7fa3b403db5d;p=users%2Fsimon%2Fpostgres.git Improve tab completion for \ef. Andrew Gierth --- diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 5602007d56..f2bf6926a2 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -630,7 +630,7 @@ psql_completion(char *text, int start, int end) "\\d", "\\da", "\\db", "\\dc", "\\dC", "\\dd", "\\dD", "\\des", "\\deu", "\\dew", "\\df", "\\dF", "\\dFd", "\\dFp", "\\dFt", "\\dg", "\\di", "\\dl", "\\dn", "\\do", "\\dp", "\\ds", "\\dS", "\\dt", "\\dT", "\\dv", "\\du", - "\\e", "\\echo", "\\encoding", + "\\e", "\\echo", "\\ef", "\\encoding", "\\f", "\\g", "\\h", "\\help", "\\H", "\\i", "\\l", "\\lo_import", "\\lo_export", "\\lo_list", "\\lo_unlink", "\\o", "\\p", "\\password", "\\prompt", "\\pset", "\\q", "\\qecho", "\\r", @@ -2218,6 +2218,9 @@ psql_completion(char *text, int start, int end) else if (strncmp(prev_wd, "\\d", strlen("\\d")) == 0) COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tisv, NULL); + else if (strcmp(prev_wd, "\\ef") == 0) + COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_functions, NULL); + else if (strcmp(prev_wd, "\\encoding") == 0) COMPLETE_WITH_QUERY(Query_for_list_of_encodings); else if (strcmp(prev_wd, "\\h") == 0 || strcmp(prev_wd, "\\help") == 0)