Re: Errors recovering database

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Errors recovering database
Дата
Msg-id 22490.1316615746@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Errors recovering database  (Henrique Teófilo <henriquetft@gmail.com>)
Ответы Re: Errors recovering database  (Henrique Teófilo <henriquetft@gmail.com>)
Список pgsql-admin
=?ISO-8859-1?Q?Henrique_Te=F3filo?= <henriquetft@gmail.com> writes:
> Dumping:
> pg_dump -p -U'postgres' -C -f ./dumpbkp mydatabase
> tar -cvzf dumpbkp.tar.gz dumpbkp

> Restoring:
> cat dumpbkp.tar.gz | gunzip | psql -U'postgres'

AFAICS that ought not work at all, not even a little bit.  You've
wrapped the dump script into a tar archive, and then not unwrapped it.

The pg_dump argument list seems a bit less than kosher, as well ...
doesn't -p require an argument?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Unaccent contrib module for PostgreSQL 8
Следующее
От: Henrique Teófilo
Дата:
Сообщение: Re: Errors recovering database