Re: Dump only part of a DB

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "David F(dot) Skoll" <dfs(at)roaringpenguin(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Dump only part of a DB
Date: 2004-06-10 04:26:01
Message-ID: 200406100426.i5A4Q1B17161@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom Lane wrote:
> "David F. Skoll" <dfs(at)roaringpenguin(dot)com> writes:
> > pg_dump can be used to dump an entire database, or just a single
> > table. Is there a way to make a consistent dump of more than one
> > table, but less than all of the tables in the database?
>
> This has been discussed before, and I think we had agreed that the
> Right Thing is to make pg_dump accept more than one -t switch (also
> more than one -n switch, at the schema level), and dump anything
> that matches any -t or -n switch.
>
> No one's got round to making this happen, but it seems like it
> should not be a big job. Want to send in a patch?

Added to TODO:

* Allow pg_dump to use multiple -t and -n switches

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gavin Thompson 2004-06-10 07:58:47 pg_stat tables empty
Previous Message Tom Lane 2004-06-10 04:08:01 Re: Dump only part of a DB