Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZzsAP-0006Xf-QT for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Nov 2015 20:20:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZzsAP-0005ZU-6e for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Nov 2015 20:20:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZzsAO-0005ZD-KR for pgsql-bugs@postgresql.org; Fri, 20 Nov 2015 20:20:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZzsAM-0004Yn-5s for pgsql-bugs@postgresql.org; Fri, 20 Nov 2015 20:20:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id tAKKKCoF027296; Fri, 20 Nov 2015 15:20:12 -0500 From: Tom Lane To: Alvaro Herrera cc: Guillaume Lelarge , Michael Paquier , PostgreSQL Bugs List , Josh Berkus Subject: Re: Confusing error message with too-large file in pg_basebackup In-reply-to: <20151120123359.GO614468@alvherre.pgsql> References: <564E6B2F.0@agliodbs.com> <11737.1447994494@sss.pgh.pa.us> <20151120123359.GO614468@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 20 Nov 2015 10:33:59 -0200" Date: Fri, 20 Nov 2015 15:20:12 -0500 Message-ID: <27295.1448050812@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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 Alvaro Herrera writes: > Guillaume Lelarge wrote: >> Looking at the file's size is probably a better idea. As far as I know, >> PostgreSQL doesn't create files bigger than 1GB, except for log files. I'm >> not sure about this but I guess pg_basebackup doesn't ship log files. So, >> looking at the size would work. > Hmm, so we let configure --with-segsize to change the file size. The > configure help says that the limit should be "less than your OS' limit > on file size". We don't warn them that this could cause backup > problems later on. Should we add a blurb about that somewhere? Actually ... why don't we get rid of the limit? wikipedia's entry on tar format says ... only 11 octal digits can be stored. This gives a maximum file size of 8 gigabytes on archived files. To overcome this limitation, star in 2001 introduced a base-256 coding that is indicated by setting the high-order bit of the leftmost byte of a numeric field. GNU-tar and BSD-tar followed this idea. If that extension is as widespread as this suggests, then following it when we have a file > 8GB seems like a better answer than failing entirely. If you try to read the dump with an old tar program, old pg_restore, etc, it might fail ... but are you really worse off than if you couldn't make the dump at all? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs