"Alexander M. Pravking" <fduch(at)antar(dot)bryansk(dot)ru> writes:
> Docs say: Only the database owner or a superuser can rename a database;
> non-superuser owners must also have the CREATEDB privilege.
> Looks like a superuser must have CREATEDB too:
Yeah, the test in RenameDatabase is only looking at createdb and not at
superuserness. Seems like a bug to me --- or does anyone want to argue
that the code behavior is correct and the docs are wrong?
regards, tom lane
In response to
pgsql-bugs by date
|Next:||From: yingqun wang||Date: 2005-03-10 15:42:32|
|Subject: BUG #1534: 2^32-1 commands limitation in one transcation|
|Previous:||From: Alexander M. Pravking||Date: 2005-03-10 10:43:07|
|Subject: ALTER DATABASE ... RENAME: permission denied for superuser|