Commit 8014c44e authored by Fujii Masao's avatar Fujii Masao

Improve SECURITY LABEL tab completion

Add DATABASE, EVENT TRIGGER, FOREIGN TABLE, ROLE, and TABLESPACE to
tab completion for SECURITY LABEL.

Kyotaro Horiguchi
parent 25bfa7ef
...@@ -2587,9 +2587,10 @@ psql_completion(const char *text, int start, int end) ...@@ -2587,9 +2587,10 @@ psql_completion(const char *text, int start, int end)
TailMatches5("SECURITY", "LABEL", "FOR", MatchAny, "ON")) TailMatches5("SECURITY", "LABEL", "FOR", MatchAny, "ON"))
{ {
static const char *const list_SECURITY_LABEL[] = static const char *const list_SECURITY_LABEL[] =
{"LANGUAGE", "SCHEMA", "SEQUENCE", "TABLE", "TYPE", "VIEW", {"TABLE", "COLUMN", "AGGREGATE", "DATABASE", "DOMAIN",
"MATERIALIZED VIEW", "COLUMN", "AGGREGATE", "FUNCTION", "DOMAIN", "EVENT TRIGGER", "FOREIGN TABLE", "FUNCTION", "LARGE OBJECT",
"LARGE OBJECT", NULL}; "MATERIALIZED VIEW", "LANGUAGE", "ROLE", "SCHEMA",
"SEQUENCE", "TABLESPACE", "TYPE", "VIEW", NULL};
COMPLETE_WITH_LIST(list_SECURITY_LABEL); COMPLETE_WITH_LIST(list_SECURITY_LABEL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment