Re: renaming a db - Mailing list pgsql-novice

From Tom Lane
Subject Re: renaming a db
Date
Msg-id 6122.999547892@sss.pgh.pa.us
Whole thread Raw
In response to renaming a db  (jik@foxinternet.net)
List pgsql-novice
jik@foxinternet.net writes:
> I have a feeling I can't do it, but is there a way to rename a dB?

In 7.1 or later I think it would work to just UPDATE the db's row in
pg_database.  But don't blame me if this fails to work ... make a
backup before you try it.

            regards, tom lane

pgsql-novice by date:

Previous
From: Jochem van Dieten
Date:
Subject: Re: Insert rule and seqences
Next
From: jik@foxinternet.net
Date:
Subject: Re: renaming a db