diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-08-21 18:45:59 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-08-21 18:45:59 +0000 |
commit | 235caf4bb29de5cf6ed7a7ec30c42d3932d116ad (patch) | |
tree | 8674a409ad685065912c3dcbe2ac006ba5910902 /src | |
parent | bebbbde6aa26c17beef1895420c0521c961a22c4 (diff) | |
download | postgresql-235caf4bb29de5cf6ed7a7ec30c42d3932d116ad.tar.gz postgresql-235caf4bb29de5cf6ed7a7ec30c42d3932d116ad.zip |
Fix tab completion for ALTER INDEX.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/tab-complete.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 42d4949034a..81ec822f48f 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.111 2004/08/20 19:24:59 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.112 2004/08/21 18:45:59 momjian Exp $ */ /*---------------------------------------------------------------------- @@ -647,7 +647,7 @@ psql_completion(char *text, int start, int end) { static const char *const list_ALTER[] = {"AGGREGATE", "CONVERSATION", "DATABASE","DOMAIN", "FUNCTION", - "GROUP", "LANGUAGE", "OPERATOR", "SCHEMA", "SEQUENCE", "TABLE", + "GROUP", "INDEX", "LANGUAGE", "OPERATOR", "SCHEMA", "SEQUENCE", "TABLE", "TABLESPACE", "TRIGGER", "TYPE", "USER", NULL}; COMPLETE_WITH_LIST(list_ALTER); @@ -675,6 +675,7 @@ psql_completion(char *text, int start, int end) COMPLETE_WITH_LIST(list_ALTERDATABASE); } + /* ALTER INDEX <name> */ else if (pg_strcasecmp(prev3_wd, "ALTER") == 0 && pg_strcasecmp(prev2_wd, "INDEX") == 0) |