From mentzelos@gmx.net Sun Sep 22 11:28:11 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5B0CD475C60 for ; Sun, 22 Sep 2002 07:28:11 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id E21E0475AA1 for ; Sun, 22 Sep 2002 07:27:56 -0400 (EDT) Received: (qmail 31211 invoked by uid 0); 22 Sep 2002 11:27:57 -0000 Received: from unknown (HELO fish) (212.205.169.207) by mail.gmx.net (mp001-rz3) with SMTP; 22 Sep 2002 11:27:57 -0000 From: "Kostis Mentzelos" To: Subject: exclude a table from pg_dump Date: Sun, 22 Sep 2002 14:27:52 +0300 Message-ID: <000201c2622b$1b180530$cfa9cdd4@fish> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0003_01C26244.40653D30" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/287 X-Sequence-Number: 5826 This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C26244.40653D30 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi all, is it possible to exclude a table from being pg_dumped? In my case I need to backup everything except one table that is very large and I want to pg_dump it later regards, kostis. ------=_NextPart_000_0003_01C26244.40653D30 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi all,=

is it possible to exclude a table from being pg_dump= ed?

 <= /font>

In my case I need to back= up everything except one table that is very large and I want to pg_dump it lat= er

 <= /font>

regard= s,

kostis= .

 <= /font>

------=_NextPart_000_0003_01C26244.40653D30-- From andrew@libertyrms.info Fri Sep 27 14:10:48 2002 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