mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
REINDEX SCHEMA
Add new SCHEMA option to REINDEX and reindexdb. Sawada Masahiko Reviewed by Michael Paquier and Fabrízio de Royes Mello
This commit is contained in:
@ -3331,7 +3331,7 @@ psql_completion(const char *text, int start, int end)
|
||||
else if (pg_strcasecmp(prev_wd, "REINDEX") == 0)
|
||||
{
|
||||
static const char *const list_REINDEX[] =
|
||||
{"TABLE", "INDEX", "SYSTEM", "DATABASE", NULL};
|
||||
{"TABLE", "INDEX", "SYSTEM", "SCHEMA", "DATABASE", NULL};
|
||||
|
||||
COMPLETE_WITH_LIST(list_REINDEX);
|
||||
}
|
||||
@ -3341,6 +3341,8 @@ psql_completion(const char *text, int start, int end)
|
||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tm, NULL);
|
||||
else if (pg_strcasecmp(prev_wd, "INDEX") == 0)
|
||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_indexes, NULL);
|
||||
else if (pg_strcasecmp(prev_wd, "SCHEMA") == 0 )
|
||||
COMPLETE_WITH_QUERY(Query_for_list_of_schemas);
|
||||
else if (pg_strcasecmp(prev_wd, "SYSTEM") == 0 ||
|
||||
pg_strcasecmp(prev_wd, "DATABASE") == 0)
|
||||
COMPLETE_WITH_QUERY(Query_for_list_of_databases);
|
||||
|
Reference in New Issue
Block a user