mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Allow tab completion for ALTER TABLE dbname <tab><tab> to show new
RENAME TO option.
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
|
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.92 2003/11/06 22:08:15 petere Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.93 2003/11/08 20:54:24 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
@ -645,7 +645,7 @@ psql_completion(char *text, int start, int end)
|
|||||||
strcasecmp(prev2_wd, "DATABASE") == 0)
|
strcasecmp(prev2_wd, "DATABASE") == 0)
|
||||||
{
|
{
|
||||||
static const char *const list_ALTERDATABASE[] =
|
static const char *const list_ALTERDATABASE[] =
|
||||||
{"RESET", "SET", NULL};
|
{"RESET", "SET", "RENAME TO", NULL};
|
||||||
|
|
||||||
COMPLETE_WITH_LIST(list_ALTERDATABASE);
|
COMPLETE_WITH_LIST(list_ALTERDATABASE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user