Re: Is renaming a database easy or dangerous

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: Is renaming a database easy or dangerous
Дата
Msg-id Pine.LNX.4.33.0302270858500.18487-100000@css120.ihs.com
обсуждение исходный текст
Ответ на Is renaming a database easy or dangerous  (Hadley Willan <hadley.willan@deeperdesign.co.nz>)
Ответы Re: Is renaming a database easy or dangerous
Список pgsql-general
On 27 Feb 2003, Hadley Willan wrote:

> Hello,
>    I'd like to rename one of my databases. Is it is simple as changing
> the datname field in the pg_databases table?
>
> If so, is it done through ALTER database or a SQL update?

The way I do it is:

# createdb newdb
# pg_dump olddb|psql -e newdb
... check to make sure it's all there working, then...
# dropdb olddb


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

Предыдущее
От: Christian Bucanac
Дата:
Сообщение: Prepared queries in 7.2.x? and stmt caching
Следующее
От: Herbert Liechti
Дата:
Сообщение: Re: pg_restore in debian postgresql 7.3.2-3