Re: problem with pg_restore

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem with pg_restore
Дата
Msg-id 18464.1097012998@sss.pgh.pa.us
обсуждение исходный текст
Ответ на problem with pg_restore  (Alexander Cohen <alex@toomuchspace.com>)
Список pgsql-general
Alexander Cohen <alex@toomuchspace.com> writes:
> pg_restore -d <dbname> -C -v -U <user> <src tar file>

> It keeps on telling me that the database <dbname> does not exist so it
> cant connect to it. I thought the -C flag creates the database, what am
> i missing here?

It does, but you have to connect somewhere first so you can issue the
CREATE DATABASE command.  I think the common approach is to use "-d template1"
in combination with -C.

            regards, tom lane

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

Предыдущее
От: Vivek Khera
Дата:
Сообщение: Re: Random not so random
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Verifying Referential Integrity