Re: Dump all except some tables?

From: David Fetter <david(at)fetter(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: WireSpot <wirespot(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Dump all except some tables?
Date: 2005-10-06 19:32:26
Message-ID: 20051006193225.GB29826@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Oct 06, 2005 at 09:51:22AM -0400, Tom Lane wrote:
> 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 :-(.

There have been several patches against pg_dump to do both
multiple-table inclusion and multiple-table exclusion. These may get
into 8.2, as they missed 8.1.

Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778

Remember to vote!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message CSN 2005-10-06 19:35:38 Re: PostgreSQL 8.1 vs. MySQL 5.0?
Previous Message David Fetter 2005-10-06 19:29:51 Re: PostgreSQL Gotchas