This patch implement the TODO [ALTER DATABASE foo OWNER TO bar].
Bruce Momjian <bruce@momjian.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/alter_database.sgml | modified | +8 −1 |
| src/backend/commands/dbcommands.c | modified | +47 −1 |
| src/backend/nodes/copyfuncs.c | modified | +15 −1 |
| src/backend/nodes/equalfuncs.c | modified | +13 −1 |
| src/backend/parser/gram.y | modified | +13 −2 |
| src/backend/tcop/utility.c | modified | +13 −1 |
| src/bin/psql/tab-complete.c | modified | +2 −2 |
| src/include/commands/dbcommands.h | modified | +2 −1 |
| src/include/nodes/nodes.h | modified | +2 −1 |
| src/include/nodes/parsenodes.h | modified | +8 −1 |
| src/interfaces/ecpg/preproc/preproc.y | modified | +5 −2 |