Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 93B2F1337B82 for ; Sat, 20 Nov 2010 00:10:45 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 10610-02 for ; Sat, 20 Nov 2010 04:10:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id 2CA821337B77 for ; Sat, 20 Nov 2010 00:10:37 -0400 (AST) Received: by gyb11 with SMTP id 11so381617gyb.19 for ; Fri, 19 Nov 2010 20:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=sMo9wAaB5DzUjBMi3ZfaEOiJA7XO8lq0ui03rFP8uLM=; b=OcZ93sMWELqPZkqyHgwoxh8AEAdwWawyufN3QghoYMyKeSfFFc6tqa4+Gbt+NCiM3L 5fotnRCI8Ap0dSNAGhtY/BW0fvvRkwbCTh7dswNScqq1F0Yn7mKdWW5FKoNxbRRwSJtl bV9/GNBgWxzvYjz0HuzNsNxqBLx0CVIw87DUQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=ubTA+dDn3gnDFKm0YqhNI9ZlWAXNatnKxBbJb2B4AK2e9u1aCXAzTiumVL7JZLDUpW YMiQKsC/nhan1+lPcaioYCqeMNUvBkVl6bedUrJomHPtJBIYUpVhsKPRLLYPquGYVPi1 yAE2XGCGuRsrHr+EDE/7n6GkhU2+jo79zUcXI= MIME-Version: 1.0 Received: by 10.150.138.3 with SMTP id l3mr4877663ybd.122.1290226237264; Fri, 19 Nov 2010 20:10:37 -0800 (PST) Received: by 10.236.109.165 with HTTP; Fri, 19 Nov 2010 20:10:37 -0800 (PST) In-Reply-To: References: Date: Fri, 19 Nov 2010 23:10:37 -0500 X-Google-Sender-Auth: Djtc9yA6xN1-Hszfmgsss8dBJSI Message-ID: Subject: Re: directory archive format for pg_dump From: Joachim Wieland To: =?ISO-8859-1?Q?Jos=E9_Arthur_Benetasso_Villanova?= Cc: pgsql-hackers@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201011/1319 X-Sequence-Number: 174462 Hi Jose, 2010/11/19 Jos=E9 Arthur Benetasso Villanova : > The dir format generated in my database 60 files, with different > sizes, and it looks very confusing. Is it possible to use the same > trick as pigz and pbzip2, creating a concatenated file of streams? What pigz is parallelizing is the actual computation of the compressed data. The directory archive format however is a preparation for a parallel pg_dump, dumping several tables (especially large tables of course) in parallel via multiple database connections and multiple pg_dump frontends. The idea of multiplexing their output into one file has been rejected on the grounds that it would probably slow down the whole process. Nevertheless pigz could be implemented as an alternative compression algorithm and that way the custom and the directory archive format could use it, but here as well, license and patent questions might be in the way, even though it is based on libz. > The md5.c and kwlookup.c reuse using a link doesn't look nice either. > This way you need to compile twice, among others things, but I think > that its temporary, right? No, it isn't. md5.c is used in the same way by e.g. libpq and there are other examples for links in core, check out src/bin/psql for example. Joachim