Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 517279FB627 for ; Wed, 28 Feb 2007 19:05:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 03237-06 for ; Wed, 28 Feb 2007 19:05:11 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from presinet.com (mail.presinet.com [209.53.156.1]) by postgresql.org (Postfix) with ESMTP id F19089FBA7E for ; Wed, 28 Feb 2007 19:05:10 -0400 (AST) Received: from [10.10.1.151] ([10.10.1.151]) by presinet.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 Feb 2007 15:02:42 -0800 Message-ID: <45E60AA4.5090504@presinet.com> Date: Wed, 28 Feb 2007 15:05:08 -0800 From: Bricklen Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: Karthikeyan Sundaram CC: pgsql-admin@postgresql.org Subject: Re: pg_dump inquiry References: In-Reply-To: Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 Feb 2007 23:02:42.0109 (UTC) FILETIME=[8CEAB6D0:01C75B8C] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200702/355 X-Sequence-Number: 24820 Karthikeyan Sundaram wrote: > Hi, > > I have to dump only 10 tables out of 100 tables. In the pg_dump utility > given by postgres there is an option called -t followed by table name. > > In that option, if I give more than 1 table, it's not accepting. > > How can I get the dump in one stroke for all the 10 tables? Please > advise. > > Regards > skarthi If you are using postgresql 8.2, you can specify multiple tables http://www.postgresql.org/docs/8.2/interactive/app-pgdump.html Don't think that that was possible before 8.2, though.