From c6e96a2f986e4dad72c14b14d4cc17d02b2a6aad Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 29 Apr 2015 12:49:10 -0400 Subject: [PATCH] psql: Improve tab completion for ALTER FOREIGN TABLE. Etsuro Fujita --- src/bin/psql/tab-complete.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 38fde39b30..750e29ddf3 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -1128,7 +1128,9 @@ psql_completion(const char *text, int start, int end) pg_strcasecmp(prev2_wd, "TABLE") == 0) { 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); } -- 2.40.0