X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 82BC6D1B17B for ; Thu, 10 Jun 2004 01:27:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99010-07 for ; Thu, 10 Jun 2004 04:26:58 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id AEAEED1B37E for ; Thu, 10 Jun 2004 01:26:56 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i5A4Q1B17161; Thu, 10 Jun 2004 00:26:01 -0400 (EDT) From: Bruce Momjian Message-Id: <200406100426.i5A4Q1B17161@candle.pha.pa.us> Subject: Re: Dump only part of a DB In-Reply-To: <19349.1086840481@sss.pgh.pa.us> To: Tom Lane Date: Thu, 10 Jun 2004 00:26:01 -0400 (EDT) Cc: "David F. Skoll" , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/126 X-Sequence-Number: 13786 Tom Lane wrote: > "David F. Skoll" 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@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073