pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Lelarge <guillaume@lelarge.info>
To: Nuwan Liyanage <alnuwan2@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: rename database
Date: Wed, 06 Feb 2008 23:33:41 +0100
Message-ID: <47AA35C5.6080600@lelarge.info> (raw)
In-Reply-To: <465222.91055.qm@web46015.mail.sp1.yahoo.com>
References: <465222.91055.qm@web46015.mail.sp1.yahoo.com>

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



view thread (6+ messages)  latest in thread

Message-ID: <47AA35C5.6080600@lelarge.info>
Permalink:  ../47AA35C5.6080600@lelarge.info/
Also on:    postgresql.org/message-id/47AA35C5.6080600@lelarge.info

 · 

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: guillaume@lelarge.info, alnuwan2@yahoo.com
  Subject: Re: rename database
  In-Reply-To: <47AA35C5.6080600@lelarge.info>

* 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