Skip to content

Commit c6e96a2

Browse files
committed
psql: Improve tab completion for ALTER FOREIGN TABLE.
Etsuro Fujita
1 parent 9b43d73 commit c6e96a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/psql/tab-complete.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,9 @@ psql_completion(const char *text, int start, int end)
11281128
pg_strcasecmp(prev2_wd, "TABLE") == 0)
11291129
{
11301130
static const char *const list_ALTER_FOREIGN_TABLE[] =
1131-
{"ALTER", "DROP", "RENAME", "OWNER TO", "SET SCHEMA", NULL};
1131+
{"ADD", "ALTER", "DISABLE TRIGGER", "DROP", "ENABLE", "INHERIT",
1132+
"NO INHERIT", "OPTIONS", "OWNER TO", "RENAME", "SET",
1133+
"VALIDATE CONSTRAINT", NULL};
11321134

11331135
COMPLETE_WITH_LIST(list_ALTER_FOREIGN_TABLE);
11341136
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy