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

Re: rename database

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

In response to

Responses

pgsql-admin by date

Next:From: Robins TharakanDate: 2008-02-07 04:06:19
Subject: Re: rename database
Previous:From: Dean Gibson (DB Administrator)Date: 2008-02-07 02:29:02
Subject: 8.3.0, locales, and encodings

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