diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-05-26 13:57:04 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-05-26 13:57:04 +0000 |
| commit | cfbfdc557d166ec559668d18d9769544f3c4fbbc (patch) | |
| tree | b487d06389fcb3a304524c2cf0adfc769348c0ae /src/bin/psql/tab-complete.c | |
| parent | d0b4399d81f39decccb23fa38f772b71b51bf96a (diff) | |
| download | postgresql-cfbfdc557d166ec559668d18d9769544f3c4fbbc.tar.gz | |
This patch implement the TODO [ALTER DATABASE foo OWNER TO bar].
It was necessary to touch in grammar and create a new node to make home
to the new syntax. The command is also supported in E
CPG. Doc updates are attached too. Only superusers can change the owner
of the database. New owners don't need any aditional
privileges.
Euler Taveira de Oliveira
Diffstat (limited to 'src/bin/psql/tab-complete.c')
| -rw-r--r-- | src/bin/psql/tab-complete.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 2eb2f19f09..f26c3e7533 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.106 2004/05/12 13:38:46 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.107 2004/05/26 13:56:55 momjian Exp $ */ /*---------------------------------------------------------------------- @@ -642,7 +642,7 @@ psql_completion(char *text, int start, int end) pg_strcasecmp(prev2_wd, "DATABASE") == 0) { static const char *const list_ALTERDATABASE[] = - {"RESET", "SET", "RENAME TO", NULL}; + {"RESET", "SET", "OWNER TO", "RENAME TO", NULL}; COMPLETE_WITH_LIST(list_ALTERDATABASE); } |
