Re: Renaming a DB - Mailing list pgsql-admin

From Mendola Gaetano
Subject Re: Renaming a DB
Date
Msg-id 000e01c34366$9bcacbf0$10d4a8c0@mm.eutelsat.org
Whole thread Raw
In response to Renaming a DB  ("Mendola Gaetano" <mendola@bigfoot.com>)
Responses Re: Renaming a DB
List pgsql-admin
"Tom Lane" <tgl@sss.pgh.pa.us> wrote:
> "Mendola Gaetano" <mendola@bigfoot.com> writes:
> > I'm running a Postgres 7.3.3 and I had the necessity to
> > rename a DB, I did this by updating the pg_database
> > table.
> > If I perform psql -l  I'm able to see that is reported the
> > correct name ( I guess because a select on pg_database
> > table is performed ) but if I try to connect to the DB
> > after the renaming I obtain the error:
> > psql: FATAL:  Database "new_name" does not exist in
> > the system catalog.
>
> Try vacuuming pg_database (you can do this from any database,
> it need not be the one that is having the problem).

A normal vacuum was not enough I did a vacuum full and seems
working.

Thank you
Gaetano Mendola


pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Renaming a DB
Next
From:
Date:
Subject: Re: Pls. help me to clarify my doubts.