pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mag Gam <magawake@gmail.com>
To: Guillaume Lelarge <guillaume@lelarge.info>
Cc: Nuwan Liyanage <alnuwan2@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: rename database
Date: Wed, 6 Feb 2008 22:52:51 -0500
Message-ID: <1cbd6f830802061952h49210b36w21d66da6f33aa925@mail.gmail.com> (raw)
In-Reply-To: <47AA35C5.6080600@lelarge.info>
References: <465222.91055.qm@web46015.mail.sp1.yahoo.com>
	<47AA35C5.6080600@lelarge.info>

what's the right way to rename a database then?



On Feb 6, 2008 5:33 PM, Guillaume Lelarge <guillaume@lelarge.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
>

view thread (6+ messages)  latest in thread

Message-ID: <1cbd6f830802061952h49210b36w21d66da6f33aa925@mail.gmail.com>
Permalink:  ../1cbd6f830802061952h49210b36w21d66da6f33aa925@mail.gmail.com/
Also on:    postgresql.org/message-id/1cbd6f830802061952h49210b36w21d66da6f33aa925@mail.gmail.com

 · 

reply

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: magawake@gmail.com, guillaume@lelarge.info, alnuwan2@yahoo.com
  Subject: Re: rename database
  In-Reply-To: <1cbd6f830802061952h49210b36w21d66da6f33aa925@mail.gmail.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