From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-general@postgresql.org
Subject: Re: pg_restore
Date: Sun, 28 Oct 2007 19:55:40 -0400
Message-ID: <10697.1193615740@sss.pgh.pa.us> (raw)
In-Reply-To: <fg35dl$u96$1@ger.gmane.org>
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>
<fg35dl$u96$1@ger.gmane.org>
Thomas Kellerer <spam_eater@gmx.net> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, spam_eater@gmx.net
Subject: Re: pg_restore
In-Reply-To: <10697.1193615740@sss.pgh.pa.us>
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> <fg35dl$u96$1@ger.gmane.org> <10697.1193615740@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox