]> granicus.if.org Git - postgresql/commitdiff
Add autocompletion of locale keywords for CREATE DATABASE
authorMagnus Hagander <magnus@hagander.net>
Sat, 12 Jul 2014 12:17:43 +0000 (14:17 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sat, 12 Jul 2014 12:17:43 +0000 (14:17 +0200)
Adds support for autocomplete of LC_COLLATE and LC_CTYPE to
the CREATE DATABASE command in psql.

src/bin/psql/tab-complete.c

index 6c2d431842c28dcc202e74047d70f6f79372a12d..c3a54d458a1ac7df1f6a983c5b6fd68e45a31b32 100644 (file)
@@ -2114,7 +2114,8 @@ psql_completion(const char *text, int start, int end)
        {
                static const char *const list_DATABASE[] =
                {"OWNER", "TEMPLATE", "ENCODING", "TABLESPACE", "IS_TEMPLATE",
-               "ALLOW_CONNECTIONS", "CONNECTION LIMIT", NULL};
+               "ALLOW_CONNECTIONS", "CONNECTION LIMIT", "LC_COLLATE", "LC_CTYPE",
+               NULL};
 
                COMPLETE_WITH_LIST(list_DATABASE);
        }