Re: Dump all except some tables?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: WireSpot <wirespot(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Dump all except some tables?
Date: 2005-10-06 13:51:22
Message-ID: 16900.1128606682@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

WireSpot <wirespot(at)gmail(dot)com> writes:
> On 10/6/05, A. Kretschmer <akretschmer(at)despammed(dot)com> wrote:
>> You can use the -t more than once.
>>
>> pg_dump -U foobar database -t foo -t foo1

> Yes, pg_dump doesn't complain. But it only takes the first one into
> consideration. I only get one table in the dump.

Right. That's on the TODO list but not done yet :-(.

Berend gave you the right advice: dump the whole database using
pg_dump -Fc, then use pg_restore's features for selective restore.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tatsuo Ishii 2005-10-06 14:06:57 Re: PostgreSQL 8.1 vs. MySQL 5.0?
Previous Message Thomas F. O'Connell 2005-10-06 13:08:48 Re: How to uninstall Postgres