From: | "Mag Gam" <magawake(at)gmail(dot)com> |
---|---|
To: | "Guillaume Lelarge" <guillaume(at)lelarge(dot)info> |
Cc: | "Nuwan Liyanage" <alnuwan2(at)yahoo(dot)com>, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: rename database |
Date: | 2008-02-07 03:52:51 |
Message-ID: | 1cbd6f830802061952h49210b36w21d66da6f33aa925@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
what's the right way to rename a database then?
On Feb 6, 2008 5:33 PM, Guillaume Lelarge <guillaume(at)lelarge(dot)info> wrote:
> Nuwan Liyanage wrote:
> > Ok I think I got it. I just went ahead and updated the pg_database table
> > and it works..
> >
>
> A better way is to connect to another database (template1 for exemple,
> but you would better use another one) and fire your statement there.
>
> Updating system table can be dangerous.
>
>
> --
> Guillaume.
> http://www.postgresqlfr.org
> http://dalibo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>
From | Date | Subject | |
---|---|---|---|
Next Message | Robins Tharakan | 2008-02-07 04:06:19 | Re: rename database |
Previous Message | Dean Gibson (DB Administrator) | 2008-02-07 02:29:02 | 8.3.0, locales, and encodings |