Index: tab-complete.c =================================================================== RCS file: /projects/cvsroot/pgsql-server/src/bin/psql/tab-complete.c,v retrieving revision 1.55 diff -c -r1.55 tab-complete.c *** tab-complete.c 2002/08/04 05:01:57 1.55 --- tab-complete.c 2002/08/09 00:42:43 *************** *** 357,362 **** --- 357,370 ---- && strcasecmp(prev_wd, "USER") == 0) COMPLETE_WITH_QUERY(Query_for_list_of_users); + /* ANALYZE */ + /* If the previous word is ANALYZE, produce list of tables. */ + else if (strcasecmp(prev_wd, "ANALYZE") == 0) + COMPLETE_WITH_QUERY(Query_for_list_of_tables); + /* If we have ANALYZE , complete with semicolon. */ + else if (strcasecmp(prev2_wd, "ANALYZE") == 0) + COMPLETE_WITH_CONST(";"); + /* CLUSTER */ /* If the previous word is CLUSTER, produce list of indexes. */ else if (strcasecmp(prev_wd, "CLUSTER") == 0)