Skip to content

Commit 235caf4

Browse files
committed
Fix tab completion for ALTER INDEX.
1 parent bebbbde commit 235caf4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/psql/tab-complete.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.111 2004/08/20 19:24:59 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.112 2004/08/21 18:45:59 momjian Exp $
77
*/
88

99
/*----------------------------------------------------------------------
@@ -647,7 +647,7 @@ psql_completion(char *text, int start, int end)
647647
{
648648
static const char *const list_ALTER[] =
649649
{"AGGREGATE", "CONVERSATION", "DATABASE","DOMAIN", "FUNCTION",
650-
"GROUP", "LANGUAGE", "OPERATOR", "SCHEMA", "SEQUENCE", "TABLE",
650+
"GROUP", "INDEX", "LANGUAGE", "OPERATOR", "SCHEMA", "SEQUENCE", "TABLE",
651651
"TABLESPACE", "TRIGGER", "TYPE", "USER", NULL};
652652

653653
COMPLETE_WITH_LIST(list_ALTER);
@@ -675,6 +675,7 @@ psql_completion(char *text, int start, int end)
675675

676676
COMPLETE_WITH_LIST(list_ALTERDATABASE);
677677
}
678+
678679
/* ALTER INDEX <name> */
679680
else if (pg_strcasecmp(prev3_wd, "ALTER") == 0 &&
680681
pg_strcasecmp(prev2_wd, "INDEX") == 0)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy