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 EB70DD1B1A5 for ; Thu, 10 Jun 2004 01:08:05 -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 99531-04 for ; Thu, 10 Jun 2004 04:08:03 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 728DAD1B360 for ; Thu, 10 Jun 2004 01:08:02 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i5A482fH019350; Thu, 10 Jun 2004 00:08:02 -0400 (EDT) To: "David F. Skoll" Cc: pgsql-admin@postgresql.org Subject: Re: Dump only part of a DB In-reply-to: References: Comments: In-reply-to "David F. Skoll" message dated "Wed, 09 Jun 2004 10:09:27 -0400" Date: Thu, 10 Jun 2004 00:08:01 -0400 Message-ID: <19349.1086840481@sss.pgh.pa.us> From: Tom Lane 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/125 X-Sequence-Number: 13785 "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? regards, tom lane