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 DE4383F68FC for ; Sun, 26 Dec 2004 17:34:07 +0000 (GMT) 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 81915-05 for ; Sun, 26 Dec 2004 17:34:01 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 532E53F68DE for ; Sun, 26 Dec 2004 17:34:00 +0000 (GMT) Received: (qmail 12523 invoked by uid 500); 26 Dec 2004 17:47:10 -0000 Date: Sun, 26 Dec 2004 11:47:10 -0600 From: Bruno Wolff III To: Gourish Singbal Cc: pgsql-admin@postgresql.org Subject: Re: Pg_dump Message-ID: <20041226174710.GB12115@wolff.to> Mail-Followup-To: Gourish Singbal , pgsql-admin@postgresql.org References: <674d1f8a04122602097b3fa678@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <674d1f8a04122602097b3fa678@mail.gmail.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/242 X-Sequence-Number: 15828 On Sun, Dec 26, 2004 at 15:39:48 +0530, Gourish Singbal wrote: > 1) I want to take a pg_dump of only few tables > > /usr/local/pgsql/bin/pg_dump -t [table_name] database_name > file.out > > allows me only to take dump of single table. Is there a way to take > dump of more than one specific tables. I think this is a new feature for 8.0. > 2) Does pg_dump allow me to take dump of a table so that only some > records are included in the dump (Some thing like specifying a QUERY > in the pg_dump) I suspect the best way to do this is to create a new table, select the desired records into that table and then dump it.