Re: restore single table

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: <liz(at)plandepot(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: restore single table
Date: 2001-07-18 16:35:02
Message-ID: 003a01c10fa7$99593540$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

From: "Liz Pelletier" <liz(at)plandepot(dot)com>

> If I have a dump of myDB, and I want to restore only two tables from
> this dump, is there a way to do this? Or do I have to restore the entire
> db?
>
> (BTW, using 7.1 on a Debian box.)

Try pg_restore if you used pg_dump's new option (never tried it myself).

If you dumped your database as text (INSERTs/COPY) it's cut & paste time (or
a couple of greps and a short perl script).

- Richard Huxton

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pete Leonard 2001-07-18 16:36:38 Re: sick DB - ??
Previous Message Richard Huxton 2001-07-18 16:29:19 Re: THIS IS NOT RELATED TO THE RDBMS BUT PLEEEEEEEEEEEEEASE