Add some missing backslash commands to psql's tab-completion knowledge.
\if and related commands were overlooked here, as were \dRp and \dRs from the logical-replication patch, as was \?. While here, reformat the list to put each new first command letter on a separate line; perhaps that will limit the need to reflow the whole list when we add more commands in future. Masahiko Sawada (reformatting by me) Discussion: https://postgr.es/m/CAD21AoDW1QHtBsM33hV+Fg2mYEs+FWj4qtoCU72AwHAXQ3U6ZQ@mail.gmail.com
This commit is contained in:
parent
512c7356b6
commit
f1175556a1
@ -1421,19 +1421,33 @@ psql_completion(const char *text, int start, int end)
|
|||||||
|
|
||||||
/* psql's backslash commands. */
|
/* psql's backslash commands. */
|
||||||
static const char *const backslash_commands[] = {
|
static const char *const backslash_commands[] = {
|
||||||
"\\a", "\\connect", "\\conninfo", "\\C", "\\cd", "\\copy",
|
"\\a",
|
||||||
|
"\\connect", "\\conninfo", "\\C", "\\cd", "\\copy",
|
||||||
"\\copyright", "\\crosstabview",
|
"\\copyright", "\\crosstabview",
|
||||||
"\\d", "\\da", "\\dA", "\\db", "\\dc", "\\dC", "\\dd", "\\ddp", "\\dD",
|
"\\d", "\\da", "\\dA", "\\db", "\\dc", "\\dC", "\\dd", "\\ddp", "\\dD",
|
||||||
"\\des", "\\det", "\\deu", "\\dew", "\\dE", "\\df",
|
"\\des", "\\det", "\\deu", "\\dew", "\\dE", "\\df",
|
||||||
"\\dF", "\\dFd", "\\dFp", "\\dFt", "\\dg", "\\di", "\\dl", "\\dL",
|
"\\dF", "\\dFd", "\\dFp", "\\dFt", "\\dg", "\\di", "\\dl", "\\dL",
|
||||||
"\\dm", "\\dn", "\\do", "\\dO", "\\dp", "\\drds", "\\ds", "\\dS",
|
"\\dm", "\\dn", "\\do", "\\dO", "\\dp",
|
||||||
|
"\\drds", "\\dRs", "\\dRp", "\\ds", "\\dS",
|
||||||
"\\dt", "\\dT", "\\dv", "\\du", "\\dx", "\\dy",
|
"\\dt", "\\dT", "\\dv", "\\du", "\\dx", "\\dy",
|
||||||
"\\e", "\\echo", "\\ef", "\\encoding", "\\errverbose", "\\ev",
|
"\\e", "\\echo", "\\ef", "\\elif", "\\else", "\\encoding",
|
||||||
"\\f", "\\g", "\\gexec", "\\gset", "\\gx", "\\h", "\\help", "\\H",
|
"\\endif", "\\errverbose", "\\ev",
|
||||||
"\\i", "\\ir", "\\l", "\\lo_import", "\\lo_export", "\\lo_list",
|
"\\f",
|
||||||
"\\lo_unlink", "\\o", "\\p", "\\password", "\\prompt", "\\pset", "\\q",
|
"\\g", "\\gexec", "\\gset", "\\gx",
|
||||||
"\\qecho", "\\r", "\\s", "\\set", "\\setenv", "\\sf", "\\sv", "\\t",
|
"\\h", "\\help", "\\H",
|
||||||
"\\T", "\\timing", "\\unset", "\\x", "\\w", "\\watch", "\\z", "\\!",
|
"\\i", "\\if", "\\ir",
|
||||||
|
"\\l", "\\lo_import", "\\lo_export", "\\lo_list", "\\lo_unlink",
|
||||||
|
"\\o",
|
||||||
|
"\\p", "\\password", "\\prompt", "\\pset",
|
||||||
|
"\\q", "\\qecho",
|
||||||
|
"\\r",
|
||||||
|
"\\s", "\\set", "\\setenv", "\\sf", "\\sv",
|
||||||
|
"\\t", "\\T", "\\timing",
|
||||||
|
"\\unset",
|
||||||
|
"\\x",
|
||||||
|
"\\w", "\\watch",
|
||||||
|
"\\z",
|
||||||
|
"\\!", "\\?",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user