Add autocompletion of locale keywords for CREATE DATABASE
authorMagnus Hagander <[email protected]>
Sat, 12 Jul 2014 12:19:57 +0000 (14:19 +0200)
committerMagnus Hagander <[email protected]>
Sat, 12 Jul 2014 12:21:13 +0000 (14:21 +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 b2b30ef6a810904b5de8142042eeb48443f62c6c..feeb76f0655df4c09287f180fe9182db76de0dec 100644 (file)
@@ -1428,7 +1428,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);
    }