From: | Devrim GUNDUZ <devrim(at)commandprompt(dot)com> |
---|---|
To: | Richard George <rcgeorge23(at)hotmail(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Changing a database owner on postgres 7.3 |
Date: | 2006-07-17 13:26:00 |
Message-ID: | 1153142760.2418.30.camel@laptop.gunduz.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi,
On Mon, 2006-07-17 at 12:33 +0000, Richard George wrote:
> I've run into trouble attempting to change the owner of a particular
> database. The offending line is -
>
> ALTER DATABASE test OWNER TO epg;
There is no way to change ownership of a database with ALTER DATABASE in
7.3.X .
> Can someone suggest an alternative way of changing the owner of a
> database for 7.3?
AFAIR there is no quick-and-easy way to do that for 7.3. I'd create a
new database with a new username, and I'd use the old database as the
template:
CREATE DATABASE newdb WITH OWNER newuser TEMPLATE olddb;
could work for you.
Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Richard George | 2006-07-17 13:43:42 | Re: Changing a database owner on postgres 7.3 |
Previous Message | Richard George | 2006-07-17 12:33:04 | Changing a database owner on postgres 7.3 |