Re: Changing Database Name

Поиск
Список
Период
Сортировка
От Manuel Sugawara
Тема Re: Changing Database Name
Дата
Msg-id m38z3tqk4m.fsf@conexa.fciencias.unam.mx
обсуждение исходный текст
Ответ на Changing Database Name  (James Kelty <jamesk@ashlandagency.com>)
Список pgsql-novice
James Kelty <jamesk@ashlandagency.com> writes:

> Hello,
>
> Through a slight SNAFU, a new database was loaded (takes about 30 hours)
> with an incorrect name. I would like to change the name of the database,
> NOT the tables. How can I do this? Can someone point me to
> documentation? I haven't found any yet.

Not sure about side effects, but you can connect to the template1 data
base and execute something like

update pg_database set datname = 'newName' where datname = 'oldName';

HTH,
Manuel.

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

Предыдущее
От: James Kelty
Дата:
Сообщение: Changing Database Name
Следующее
От: "Daniel L Banta"
Дата:
Сообщение: initdb initialization problem