Re: Renaming a DB

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Renaming a DB
Дата
Msg-id 200307210358.h6L3wem24028@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Renaming a DB  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Renaming a DB  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Tom Lane 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).

Tom, why was a VACUUM FULL required?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Nick Fankhauser"
Дата:
Сообщение: PG_dump fatal error (second post)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Renaming a DB