From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Wei Weng <wweng(at)kencast(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Rename database? |
Date: | 2003-01-27 18:41:11 |
Message-ID: | 200301271841.h0RIfBc16053@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Uh, we have ALTER DATABASE, but it doesn't rename. If no one is
connected, you can connect to template1 and modify pg_database table to
rename. That _should_ work.
---------------------------------------------------------------------------
Wei Weng wrote:
> Can I use a SQL statement to rename database?
>
> e.g Rename Database Bank to Database Bank_backup
>
> Thanks!
>
> Wei
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Marie G. Tuite | 2003-01-27 20:06:10 | sequence question |
Previous Message | Boris Klug | 2003-01-27 15:05:30 | Please include hier-patch in next PostgreSQL version |