Re: Feature Request: bzip2 support in pg_dump, pg_restore

Lists: pgsql-general
From: Daniel Migowski <dmigowski(at)ikoffice(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Feature Request: bzip2 support in pg_dump, pg_restore
Date: 2010-08-13 08:57:13
Message-ID: 4C6508E9.9050406@ikoffice.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Hi, dear postgres developers,

A small investigation showed to me that bzip2 compressed sql files take
only 60% of the space of gz compressed files. Since bzip2 is fairly
common today, could one add an option to pg_dump and pg_restore
supporting this compression type in their custom format? Or do the
PostgreSQL folks prefer no to do that regarding backwards compatibility?

Regards,
Daniel Migowski

--
*I**K*Office
*UNTERNEHMENSSOFTWARE*
IKOffice GmbH *Daniel Migowski*

Mail: dmigowski(at)ikoffice(dot)de <mailto:dmigowski(at)ikoffice(dot)de>
Nordstrasse 10 Tel.: +49 (0)441 21 98 89 52
26135 Oldenburg Fax.: +49 (0)441 21 98 89 55
http://www.ikoffice.de Mob.: +49 (0)176 22 31 20 76

Geschäftsführer: Ingo Kuhlmann, Daniel Migowski
Amtsgericht Oldenburg: HRB 201467
Steuernummer: 64/211/01864


From: Adrian von Bidder <avbidder(at)fortytwo(dot)ch>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Feature Request: bzip2 support in pg_dump, pg_restore
Date: 2010-08-13 09:31:32
Message-ID: 201008131131.33270@fortytwo.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Heyho!

On Friday 13 August 2010 10.57:13 Daniel Migowski wrote:
> A small investigation showed to me that bzip2 compressed sql files take
> only 60% of the space of gz compressed files.

But bzip2 is very slow. I think if there should be changes to the data
compression, xz is probably the future. xz is said to be similar to bzip2
in terms of compression ratio, but much faster.

cheers
-- vbi

--
And those meanies used what we said to you and they misconstrued it to
mean what we said, and that's so unfair.
-- SCO lawyers about IBM (paraphrased - groklaw)


From: Scott Ribe <scott_ribe(at)killerbytes(dot)com>
To: Daniel Migowski <dmigowski(at)ikoffice(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Feature Request: bzip2 support in pg_dump, pg_restore
Date: 2010-08-13 13:50:49
Message-ID: 7B187279-02AF-4BEA-88DA-210B1DE70F38@killerbytes.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

pg_dumpall | bzip2 > mydump.txt.bz2

bunzip2 -kc mydump.txt.bz2 | bin/psql template1

--
Scott Ribe
scott_ribe(at)elevated-dev(dot)com
http://www.elevated-dev.com/
(303) 722-0567 voice


From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Daniel Migowski <dmigowski(at)ikoffice(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Feature Request: bzip2 support in pg_dump, pg_restore
Date: 2010-08-13 13:57:35
Message-ID: 4C654F4F.7040503@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Daniel Migowski wrote:
> A small investigation showed to me that bzip2 compressed sql files
> take only 60% of the space of gz compressed files. Since bzip2 is
> fairly common today, could one add an option to pg_dump and pg_restore
> supporting this compression type in their custom format? Or do the
> PostgreSQL folks prefer no to do that regarding backwards compatibility?

http://wiki.postgresql.org/wiki/Developer_FAQ#Why_aren.27t_there_more_compression_options_when_dumping_tables.3F
now has a first round answer to this topic, one that addresses the
things that pop up every time this discussion is raised. There are
speed, code quality, code license, and patent issues all making this
much harder to change than is obvious at first.

--
Greg Smith 2ndQuadrant US Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.us


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Smith <greg(at)2ndquadrant(dot)com>
Cc: Daniel Migowski <dmigowski(at)ikoffice(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: Feature Request: bzip2 support in pg_dump, pg_restore
Date: 2010-08-13 14:47:30
Message-ID: 23875.1281710850@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Greg Smith <greg(at)2ndquadrant(dot)com> writes:
> Daniel Migowski wrote:
>> A small investigation showed to me that bzip2 compressed sql files
>> take only 60% of the space of gz compressed files. Since bzip2 is
>> fairly common today, could one add an option to pg_dump and pg_restore
>> supporting this compression type in their custom format? Or do the
>> PostgreSQL folks prefer no to do that regarding backwards compatibility?

> http://wiki.postgresql.org/wiki/Developer_FAQ#Why_aren.27t_there_more_compression_options_when_dumping_tables.3F
> now has a first round answer to this topic, one that addresses the
> things that pop up every time this discussion is raised. There are
> speed, code quality, code license, and patent issues all making this
> much harder to change than is obvious at first.

Looks good. I added the point that pg_dump output has to be readable
far into the future, so conservatism in what we support is a good thing.

regards, tom lane