Add autocompletion of locale keywords for CREATE DATABASE
authorMagnus Hagander <magnus@hagander.net>
Sat, 12 Jul 2014 12:19:57 +0000 (14:19 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sat, 12 Jul 2014 12:20:20 +0000 (14:20 +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 7af26498c36c763b6a9c5806797e8e3e21dd21b0..50e0ffc4330283a3ee7cf9636f0e982bae41bdbd 100644 (file)
@@ -1975,7 +1975,7 @@ psql_completion(char *text, int start, int end)
    {
        static const char *const list_DATABASE[] =
        {"OWNER", "TEMPLATE", "ENCODING", "TABLESPACE", "CONNECTION LIMIT",
-       NULL};
+       "LC_COLLATE", "LC_CTYPE", NULL};
 
        COMPLETE_WITH_LIST(list_DATABASE);
    }