Re: Restore single table from pg_dumpall.

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: Restore single table from pg_dumpall.
Дата
Msg-id 200701221553.08503@hal.medialogik.com
обсуждение исходный текст
Ответ на Re: Restore single table from pg_dumpall.  ("Andrej Ricnik-Bay" <andrej.groups@gmail.com>)
Список pgsql-novice
> On 1/23/07, Jim Stalewski <JStalewski@visalighting.com> wrote:
> > I have been asked by a programmer to restore a single table from a
> > PG_DUMPALL backup.
> >
> > Is this possible, and if so, would anyone be able to tell me please,
> > what PSQL options and switches are required?  Running PostgreSQL 8.1.3.

This is a lot simpler with a tar or custom format backup from pg_dump.
Using that, you could dump the ToC and modify it to select the table you
want to restore.

With a pg_dumpall backup you might just be better off restoring the whole
thing into an empty cluster, and then dump the one table only from there.
Unless it's small enough to load into a text editor, of course.

--
"A government that robs Peter to pay Paul can always depend upon the support
of Paul." - George Bernard Shaw


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

Предыдущее
От: "Andrej Ricnik-Bay"
Дата:
Сообщение: Re: Restore single table from pg_dumpall.
Следующее
От: "Duncan Garland"
Дата:
Сообщение: Re: [SPAM] Restore single table from pg_dumpall.