Re:[GENERAL] restoring one table?

Поиск
Список
Период
Сортировка
От Tom Tom
Тема Re:[GENERAL] restoring one table?
Дата
Msg-id 91.109-19155-1577523425-1218188132@seznam.cz
обсуждение исходный текст
Ответ на restoring one table?  (Brian Maguire <bmaguire@vantage.com>)
Список pgsql-general
Brian Maguire wrote:
> We need to restore one table from a backup.  What is the proper way to do this?
>
> Our backup command looks like this:
>
> pg_dump -C -Fc -S postgresql mydatabase > today.backup.sqlc
>
> I am using PostgreSQL 8.1.
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
>
>

Use the switch --table=NAME of pg_restore, i.e. something like this:

pg_restore -C -F c S postgresql -d mydatabase --table=your_table -v today.backup.sqlc

Tomas

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

Предыдущее
От: Tom Tom
Дата:
Сообщение: Re: [GENERAL] pg_restore fails on Windows
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Initdb problem on debian mips cobalt: Bus error