diff options
| author | Simon Riggs <simon@2ndQuadrant.com> | 2014-12-09 00:28:00 +0900 | 
|---|---|---|
| committer | Simon Riggs <simon@2ndQuadrant.com> | 2014-12-09 00:28:00 +0900 | 
| commit | fe263d115a7dd16095b8b8f1e943aff2bb4574d2 (patch) | |
| tree | 2aad301f83277d605f7b87a0a2f91957fbe5771e /src/bin/psql/tab-complete.c | |
| parent | 8001fe67a3d66c95861ce1f7075ef03953670d13 (diff) | |
REINDEX SCHEMA
Add new SCHEMA option to REINDEX and reindexdb.
Sawada Masahiko
Reviewed by Michael Paquier and FabrÃzio de Royes Mello
Diffstat (limited to 'src/bin/psql/tab-complete.c')
| -rw-r--r-- | src/bin/psql/tab-complete.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 7a509c1e452..82c926de6fb 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -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); | 
