Re: How to restore "postgres" database?

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: How to restore "postgres" database?
Дата
Msg-id 4CA5F9A3.8050100@postnewspapers.com.au
обсуждение исходный текст
Ответ на How to restore "postgres" database?  (Alexander Farber <alexander.farber@gmail.com>)
Список pgsql-general
On 10/01/2010 10:40 PM, Alexander Farber wrote:
> Ouch! I've loaded my backup while being connected
> to the wrong database - to the dafeult "postgres" database.
>
> Is there a way to restore it?

Sure. Just drop it and re-create it. The "postgres" database is just a
convenience, and is typically empty.

You'll need to connect to the template1 database; you can't drop the
postgres database while you're connected to it.

--
Craig Ringer

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

Предыдущее
От: Gurjeet Singh
Дата:
Сообщение: Re: Copying a column into a temp. table
Следующее
От: Alexander Farber
Дата:
Сообщение: Re: Copying a column into a temp. table