]> granicus.if.org Git - postgresql/commitdiff
psql: Add some missing tab completion
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 4 Apr 2017 12:58:21 +0000 (08:58 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 4 Apr 2017 12:59:13 +0000 (08:59 -0400)
Add tab completion for COMMENT/SECURITY LABEL ON
PUBLICATION/SUBSCRIPTION.

Reported-by: Stephen Frost <sfrost@snowman.net>
src/bin/psql/tab-complete.c

index dc2794d48a6998393ade02540f100485e0352186..813f719b9b7575728a8e35773e8bd18d7aebfaa7 100644 (file)
@@ -2115,7 +2115,7 @@ psql_completion(const char *text, int start, int end)
                {"ACCESS METHOD", "CAST", "COLLATION", "CONVERSION", "DATABASE",
                        "EVENT TRIGGER", "EXTENSION",
                        "FOREIGN DATA WRAPPER", "FOREIGN TABLE",
-                       "SERVER", "INDEX", "LANGUAGE", "POLICY", "RULE", "SCHEMA", "SEQUENCE",
+                       "SERVER", "INDEX", "LANGUAGE", "POLICY", "PUBLICATION", "RULE", "SCHEMA", "SEQUENCE", "SUBSCRIPTION",
                        "TABLE", "TYPE", "VIEW", "MATERIALIZED VIEW", "COLUMN", "AGGREGATE", "FUNCTION",
                        "OPERATOR", "TRIGGER", "CONSTRAINT", "DOMAIN", "LARGE OBJECT",
                "TABLESPACE", "TEXT SEARCH", "ROLE", NULL};
@@ -3059,8 +3059,8 @@ psql_completion(const char *text, int start, int end)
                static const char *const list_SECURITY_LABEL[] =
                {"TABLE", "COLUMN", "AGGREGATE", "DATABASE", "DOMAIN",
                        "EVENT TRIGGER", "FOREIGN TABLE", "FUNCTION", "LARGE OBJECT",
-                       "MATERIALIZED VIEW", "LANGUAGE", "ROLE", "SCHEMA",
-               "SEQUENCE", "TABLESPACE", "TYPE", "VIEW", NULL};
+                       "MATERIALIZED VIEW", "LANGUAGE", "PUBLICATION", "ROLE", "SCHEMA",
+               "SEQUENCE", "SUBSCRIPTION", "TABLESPACE", "TYPE", "VIEW", NULL};
 
                COMPLETE_WITH_LIST(list_SECURITY_LABEL);
        }