Re: rename database

Поиск
Список
Период
Сортировка
От Mag Gam
Тема Re: rename database
Дата
Msg-id 1cbd6f830802061952h49210b36w21d66da6f33aa925@mail.gmail.com
обсуждение исходный текст
Ответ на Re: rename database  (Guillaume Lelarge <guillaume@lelarge.info>)
Ответы Re: rename database  ("Robins Tharakan" <tharakan@gmail.com>)
Список pgsql-admin
what's the right way to rename a database then?



On Feb 6, 2008 5:33 PM, Guillaume Lelarge <guillaume@lelarge.info> wrote:
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

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

              http://www.postgresql.org/docs/faq

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

Предыдущее
От: "Dean Gibson (DB Administrator)"
Дата:
Сообщение: 8.3.0, locales, and encodings
Следующее
От: "Robins Tharakan"
Дата:
Сообщение: Re: rename database