From: Nuwan Liyanage <alnuwan2@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Re: rename database
Date: Wed, 6 Feb 2008 12:35:41 -0800 (PST)
Message-ID: <465222.91055.qm@web46015.mail.sp1.yahoo.com> (raw)
Ok I think I got it. I just went ahead and updated the pg_database table and it works..
Nuwan Liyanage <alnuwan2@yahoo.com> wrote: Hi,
I am trying to rename my database; I used the following command,
Alter database postgres rename to post_dev;
but I get a error saying that the "current database may not be renamed"
I look at the documentation, and it says that I need to connect to a different database in order do that?
can someone please help me how to do that..
Thanks
alnuwan
---------------------------------
Never miss a thing. Make Yahoo your homepage.
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: alnuwan2@yahoo.com
Subject: Re: rename database
In-Reply-To: <465222.91055.qm@web46015.mail.sp1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox