Re: ALTER DATABASE ... RENAME: permission denied for superuser

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Alexander M(dot) Pravking" <fduch(at)antar(dot)bryansk(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: ALTER DATABASE ... RENAME: permission denied for superuser
Date: 2005-03-10 15:15:08
Message-ID: 15018.1110467708@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"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

Browse pgsql-bugs by date

  From Date Subject
Next Message yingqun wang 2005-03-10 15:42:32 BUG #1534: 2^32-1 commands limitation in one transcation
Previous Message Alexander M. Pravking 2005-03-10 10:43:07 ALTER DATABASE ... RENAME: permission denied for superuser