Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group