Re: pg_dump'ed file contains "DROP DATABASE"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump'ed file contains "DROP DATABASE"
Дата
Msg-id 3630676.1676918157@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_dump'ed file contains "DROP DATABASE"  (pf@pfortin.com)
Список pgsql-general
pf@pfortin.com writes:
> The other day, I restored his first file with:
>   pg_restore --host "localhost" --port "5432" --username "postgres"
>   --no-password --dbname "myname" --create --clean --verbose "dumpfile"

> Was my 134 table[1] myname DB saved because it was open?

Yup.

> If the dump file
> contains the above statements, how can I be absolutely certain I won't
> lose the DB?

Reading the manual is advisable.  --create --clean specifies exactly
that the target database is to be dropped and recreated.

            regards, tom lane



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

Предыдущее
От: pf@pfortin.com
Дата:
Сообщение: pg_dump'ed file contains "DROP DATABASE"
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: pg_dump'ed file contains "DROP DATABASE"