Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id BACC19FB3B3 for ; Sun, 28 Oct 2007 20:55:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 79268-08 for ; Sun, 28 Oct 2007 20:55:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 9D49D9FA1AB for ; Sun, 28 Oct 2007 20:55:45 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l9SNtfpl010698; Sun, 28 Oct 2007 19:55:41 -0400 (EDT) To: Thomas Kellerer cc: pgsql-general@postgresql.org Subject: Re: pg_restore In-reply-to: References: <004401c81990$ef57e8c0$6401a8c0@owner> <200710281145.58716.aklaver@comcast.net> <005b01c819a7$65a7aea0$6401a8c0@owner> <7589.1193606901@sss.pgh.pa.us> <000c01c819ae$2a89ffb0$6401a8c0@owner> <8885.1193609937@sss.pgh.pa.us> Comments: In-reply-to Thomas Kellerer message dated "Mon, 29 Oct 2007 00:19:17 +0100" Date: Sun, 28 Oct 2007 19:55:40 -0400 Message-ID: <10697.1193615740@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/1510 X-Sequence-Number: 122802 Thomas Kellerer writes: > Why is it, that pg_dump can use a compressed output directly but pg_dumpall is > always using a SQL (i.e. "plain text") output? The custom and tar formats are not designed to support data from more than one database. At some point somebody should probably try to improve that situation, but it's not immediately obvious what the feature ought to look like. If all you need is compression it's certainly easy enough: pg_dumpall | gzip >mydump.gz zcat mydump.gz | psql So the argument for doing more hinges around the extra flexibility of pg_restore to do selective restores and suchlike, and extending those features to behave sanely for multi-database dumps is not trivial. regards, tom lane