mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
psql: Improve tab completion for ALTER FOREIGN TABLE.
Etsuro Fujita
This commit is contained in:
@ -1128,7 +1128,9 @@ psql_completion(const char *text, int start, int end)
|
|||||||
pg_strcasecmp(prev2_wd, "TABLE") == 0)
|
pg_strcasecmp(prev2_wd, "TABLE") == 0)
|
||||||
{
|
{
|
||||||
static const char *const list_ALTER_FOREIGN_TABLE[] =
|
static const char *const list_ALTER_FOREIGN_TABLE[] =
|
||||||
{"ALTER", "DROP", "RENAME", "OWNER TO", "SET SCHEMA", NULL};
|
{"ADD", "ALTER", "DISABLE TRIGGER", "DROP", "ENABLE", "INHERIT",
|
||||||
|
"NO INHERIT", "OPTIONS", "OWNER TO", "RENAME", "SET",
|
||||||
|
"VALIDATE CONSTRAINT", NULL};
|
||||||
|
|
||||||
COMPLETE_WITH_LIST(list_ALTER_FOREIGN_TABLE);
|
COMPLETE_WITH_LIST(list_ALTER_FOREIGN_TABLE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user