Re: Change the name of the database

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Change the name of the database
Дата
Msg-id 1913.1105976573@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Change the name of the database  (Chris Mair <list@1006.org>)
Список pgsql-novice
Chris Mair <list@1006.org> writes:
>> I'm trying to change the name of my psql database.
>> Does it exist any command to do this.

> just issue this command:
>   alter database old_db_name rename to new_db_name;

Note that this command exists only since PG 7.4.  In earlier releases,
you can fake it by executing a manual UPDATE on pg_database.  (Beware
that you need to do a CHECKPOINT afterware to be sure that newly
connecting backends will see the updated name.)

            regards, tom lane

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

Предыдущее
От: "Sean Davis"
Дата:
Сообщение: Re: Sql query as input variable in a PL/pgsql function?
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: Updating views : cannot figure out what goes wrong