aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2014-07-12 14:17:43 +0200
committerMagnus Hagander <magnus@hagander.net>2014-07-12 14:17:43 +0200
commitdeee42ab015d54baa1b9e0165bf3635dab4f9f7a (patch)
tree75b1e4a63d5a7a0ac260354ecce1db6c7ef2d493
parentd68581483564ec0fbfdc255e493c4f5bd165e55e (diff)
downloadpostgresql-deee42ab015d54baa1b9e0165bf3635dab4f9f7a.tar.gz
postgresql-deee42ab015d54baa1b9e0165bf3635dab4f9f7a.zip
Add autocompletion of locale keywords for CREATE DATABASE
Adds support for autocomplete of LC_COLLATE and LC_CTYPE to the CREATE DATABASE command in psql.
-rw-r--r--src/bin/psql/tab-complete.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 6c2d431842c..c3a54d458a1 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -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);
}