Add autocompletion of locale keywords for CREATE DATABASE
authorMagnus Hagander
Sat, 12 Jul 2014 12:19:57 +0000 (14:19 +0200)
committerMagnus Hagander
Sat, 12 Jul 2014 12:19:57 +0000 (14:19 +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 3bb727f05c92db12c495f22b25782c655949c6a1..96de7783e908d6b9dee281deb38744a1bf825efd 100644 (file)
@@ -2046,7 +2046,7 @@ psql_completion(const 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);
    }