When completing ALTER INDEX .. SET, add an equals sign also.
Jeff Janes
This commit is contained in:
parent
6e71dd7ce9
commit
af9773cf4c
|
@ -1216,8 +1216,7 @@ psql_completion(const char *text, int start, int end)
|
||||||
/* ALTER INDEX <foo> SET|RESET ( */
|
/* ALTER INDEX <foo> SET|RESET ( */
|
||||||
else if (pg_strcasecmp(prev5_wd, "ALTER") == 0 &&
|
else if (pg_strcasecmp(prev5_wd, "ALTER") == 0 &&
|
||||||
pg_strcasecmp(prev4_wd, "INDEX") == 0 &&
|
pg_strcasecmp(prev4_wd, "INDEX") == 0 &&
|
||||||
(pg_strcasecmp(prev2_wd, "SET") == 0 ||
|
pg_strcasecmp(prev2_wd, "RESET") == 0 &&
|
||||||
pg_strcasecmp(prev2_wd, "RESET") == 0) &&
|
|
||||||
pg_strcasecmp(prev_wd, "(") == 0)
|
pg_strcasecmp(prev_wd, "(") == 0)
|
||||||
{
|
{
|
||||||
static const char *const list_INDEXOPTIONS[] =
|
static const char *const list_INDEXOPTIONS[] =
|
||||||
|
@ -1225,6 +1224,16 @@ psql_completion(const char *text, int start, int end)
|
||||||
|
|
||||||
COMPLETE_WITH_LIST(list_INDEXOPTIONS);
|
COMPLETE_WITH_LIST(list_INDEXOPTIONS);
|
||||||
}
|
}
|
||||||
|
else if (pg_strcasecmp(prev5_wd, "ALTER") == 0 &&
|
||||||
|
pg_strcasecmp(prev4_wd, "INDEX") == 0 &&
|
||||||
|
pg_strcasecmp(prev2_wd, "SET") == 0 &&
|
||||||
|
pg_strcasecmp(prev_wd, "(") == 0)
|
||||||
|
{
|
||||||
|
static const char *const list_INDEXOPTIONS[] =
|
||||||
|
{"fillfactor =", "fastupdate =", "gin_pending_list_limit =", NULL};
|
||||||
|
|
||||||
|
COMPLETE_WITH_LIST(list_INDEXOPTIONS);
|
||||||
|
}
|
||||||
|
|
||||||
/* ALTER LANGUAGE <name> */
|
/* ALTER LANGUAGE <name> */
|
||||||
else if (pg_strcasecmp(prev3_wd, "ALTER") == 0 &&
|
else if (pg_strcasecmp(prev3_wd, "ALTER") == 0 &&
|
||||||
|
|
Loading…
Reference in New Issue