Re: [SPAM] Restore single table from pg_dumpall.

Поиск
Список
Период
Сортировка
От Duncan Garland
Тема Re: [SPAM] Restore single table from pg_dumpall.
Дата
Msg-id MBEPKEEDMKGCDODFKLPPGEHDDLAA.duncan.garland@ntlworld.com
обсуждение исходный текст
Ответ на Restore single table from pg_dumpall.  ("Jim Stalewski" <JStalewski@VisaLighting.com>)
Ответы Re: [SPAM] Restore single table from pg_dumpall.
Список pgsql-novice
Hi,
 
pg_restore can restore a single table provided that the appropriate switch was used when creating the dump with pg_dumpall.
 
If the dump is in plain text then you need to strip out the surplus data and feed the rest to psql. If the file is too big for vi, try a stream editor such as sed or a simple perl script.
 
Regards
 
Duncan
-----Original Message-----
From: pgsql-novice-owner@postgresql.org [mailto:pgsql-novice-owner@postgresql.org]On Behalf Of Jim Stalewski
Sent: 22 January 2007 23:06
To: pgsql-novice@postgresql.org
Subject: [SPAM] [NOVICE] Restore single table from pg_dumpall.

Greetings,

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.

Thanks in advance,

Jim.

 

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender and delete it. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. No employee or agent is authorized to conclude any binding agreement on behalf of Visa Lighting with another party by email without express written confirmation by an authorized representative of the Company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

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

Предыдущее
От: Alan Hodgson
Дата:
Сообщение: Re: Restore single table from pg_dumpall.
Следующее
От: brian stapel
Дата:
Сообщение: Problems w/ Temp Tables