Re: Renaming a DB

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mendola Gaetano" <mendola(at)bigfoot(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Renaming a DB
Date: 2003-07-06 01:36:47
Message-ID: 6927.1057455407@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Mendola Gaetano" <mendola(at)bigfoot(dot)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).

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Mendola Gaetano 2003-07-06 02:30:46 Re: Renaming a DB
Previous Message Tom Lane 2003-07-05 13:46:34 Re: vacuum warnings with pgsql 7.3.3