Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XwRjg-0001Fe-Sw for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Dec 2014 08:26:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XwRjg-0004QQ-8t for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Dec 2014 08:26:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XwRjf-0004QI-9w for pgsql-bugs@postgresql.org; Thu, 04 Dec 2014 08:26:03 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XwRjU-0003wr-2p for pgsql-bugs@postgresql.org; Thu, 04 Dec 2014 08:26:00 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 0AD3E28B73; Thu, 4 Dec 2014 00:25:44 -0800 (PST) Received: from EX13-CAS-001.vmware.com (EX13-CAS-001.vmware.com [10.113.191.51]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 056D2194BD; Thu, 4 Dec 2014 00:25:44 -0800 (PST) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-011.vmware.com (10.113.191.31) with Microsoft SMTP Server (TLS) id 15.0.913.22; Thu, 4 Dec 2014 00:25:21 -0800 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.913.22; Thu, 4 Dec 2014 00:25:20 -0800 Message-ID: <54801A5B.8040907@vmware.com> Date: Thu, 4 Dec 2014 10:24:59 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0 MIME-Version: 1.0 To: Hendrik Grewe , Subject: Re: BUG #11949: pg_basebackup creates defective tar file References: <20141112143632.2529.76272@wrigleys.postgresql.org> <547EEC2C.40202@vmware.com> <547EF22A.8090502@tu-dortmund.de> In-Reply-To: <547EF22A.8090502@tu-dortmund.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 12/03/2014 01:21 PM, Hendrik Grewe wrote: > Am 03.12.2014 um 11:55 schrieb Heikki Linnakangas: >> >> The conclusion on bug-tar list seems to be that this is a bug in >> GNU tar, and the file created by pg_basebackup is correct. >> >> I just wanted to add that you can work-around this by passing the >> "-b 1" option to tar. With that, it seems to work. > > So the structral defect within the tarfile: > https://lists.gnu.org/archive/html/bug-tar/2014-11/msg00007.html > > Is not caused by pg_basebackup? You're referring to this, from Jörg Schilling: > The only structural defect in the tarfile is that it contains too many bits in > the mode field. That shouldn't cause the --append problem. The --append problem happens because of GNU tar's bug in handling an archive with a "blocking factor" different from its default. The "too many bits in the mode field" problem seems to be that we store the file type bits that stat(2) returns in st_mode & ST_IFMT, in the archive's mode field, while the ustar file format only expects the permission bits to be there. Tar program will ignore the extra bits, which is why we haven't noticed, but I guess we should fix that anyway, for the sake of cleanliness. But that's not the root cause of the --append corruption. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs