]> granicus.if.org Git - postgresql/commitdiff
Improve SECURITY LABEL tab completion
authorFujii Masao <fujii@postgresql.org>
Fri, 25 Dec 2015 13:56:01 +0000 (22:56 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 25 Dec 2015 13:56:01 +0000 (22:56 +0900)
Add DATABASE, EVENT TRIGGER, FOREIGN TABLE, ROLE, and TABLESPACE to
tab completion for SECURITY LABEL.

Kyotaro Horiguchi

src/bin/psql/tab-complete.c

index df678d5ce3629b299a0fe965d56e0d70701a2648..4c93ae9f5365cbbf9be103e126685f82cab11e49 100644 (file)
@@ -2587,9 +2587,10 @@ psql_completion(const char *text, int start, int end)
                         TailMatches5("SECURITY", "LABEL", "FOR", MatchAny, "ON"))
        {
                static const char *const list_SECURITY_LABEL[] =
-               {"LANGUAGE", "SCHEMA", "SEQUENCE", "TABLE", "TYPE", "VIEW",
-                       "MATERIALIZED VIEW", "COLUMN", "AGGREGATE", "FUNCTION", "DOMAIN",
-               "LARGE OBJECT", NULL};
+               {"TABLE", "COLUMN", "AGGREGATE", "DATABASE", "DOMAIN",
+                        "EVENT TRIGGER", "FOREIGN TABLE", "FUNCTION", "LARGE OBJECT",
+                        "MATERIALIZED VIEW", "LANGUAGE", "ROLE", "SCHEMA",
+                "SEQUENCE", "TABLESPACE", "TYPE", "VIEW", NULL};
 
                COMPLETE_WITH_LIST(list_SECURITY_LABEL);
        }