|
3 | 3 | * |
4 | 4 | * Copyright 2000-2002 by PostgreSQL Global Development Group |
5 | 5 | * |
6 | | - * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.56 2002/08/10 03:56:24 tgl Exp $ |
| 6 | + * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.57 2002/08/15 02:49:04 momjian Exp $ |
7 | 7 | */ |
8 | 8 |
|
9 | 9 | /*---------------------------------------------------------------------- |
@@ -358,6 +358,14 @@ psql_completion(char *text, int start, int end) |
358 | 358 | &&strcasecmp(prev_wd,"USER")==0) |
359 | 359 | COMPLETE_WITH_QUERY(Query_for_list_of_users); |
360 | 360 |
|
| 361 | +/* ANALYZE */ |
| 362 | +/* If the previous word is ANALYZE, produce list of tables. */ |
| 363 | +elseif (strcasecmp(prev_wd,"ANALYZE")==0) |
| 364 | +COMPLETE_WITH_QUERY(Query_for_list_of_tables); |
| 365 | +/* If we have ANALYZE <table>, complete with semicolon. */ |
| 366 | +elseif (strcasecmp(prev2_wd,"ANALYZE")==0) |
| 367 | +COMPLETE_WITH_CONST(";"); |
| 368 | + |
361 | 369 | /* CLUSTER */ |
362 | 370 | /* If the previous word is CLUSTER, produce list of indexes. */ |
363 | 371 | elseif (strcasecmp(prev_wd,"CLUSTER")==0) |
|