Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 19B5D476840 for ; Fri, 27 Sep 2002 10:10:48 -0400 (EDT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by postgresql.org (Postfix) with ESMTP id 6F8FA476786 for ; Fri, 27 Sep 2002 10:10:47 -0400 (EDT) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 17uvpT-00058R-00 for ; Fri, 27 Sep 2002 10:10:51 -0400 Date: Fri, 27 Sep 2002 10:10:51 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: exclude a table from pg_dump Message-ID: <20020927101051.B18633@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: <000201c2622b$1b180530$cfa9cdd4@fish> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000201c2622b$1b180530$cfa9cdd4@fish>; from mentzelos@gmx.net on Sun, Sep 22, 2002 at 02:27:52PM +0300 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/296 X-Sequence-Number: 5835 On Sun, Sep 22, 2002 at 02:27:52PM +0300, Kostis Mentzelos wrote: > Hi all, > is it possible to exclude a table from being pg_dumped? Not really. If you knew there were no connections (and therefore no-one changing data) you could do it in a shell script, passing the -t option to pg_dump for each table except the one you want. But that won't provide you with a truly guaranteed-consistent dump like a normal pg_dump does. I thought someone said something about adding a multiple-table feature to the 7.3 pg_dump, but I just tried it on the beta, and it didn't work differently than in 7.2. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110