Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZztXD-0002IK-8c for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Nov 2015 21:47:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZztXB-0006He-Gq for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Nov 2015 21:47:57 +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 1ZztX9-0006HL-K9 for pgsql-bugs@postgresql.org; Fri, 20 Nov 2015 21:47:55 +0000 Received: from d.mail.sonic.net ([64.142.111.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZztX2-0006Kb-K4 for pgsql-bugs@postgresql.org; Fri, 20 Nov 2015 21:47:54 +0000 Received: from engels (162-236-13-58.lightspeed.sntcca.sbcglobal.net [162.236.13.58]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id tAKLljLU005255 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA256 bits=128 verify=NOT) for ; Fri, 20 Nov 2015 13:47:45 -0800 Date: Fri, 20 Nov 2015 13:47:50 -0800 From: David Gould To: pgsql-bugs@postgresql.org Subject: Re: Confusing error message with too-large file in pg_basebackup Message-ID: <20151120134750.679213b0@engels> In-Reply-To: <27295.1448050812@sss.pgh.pa.us> References: <564E6B2F.0@agliodbs.com> <11737.1447994494@sss.pgh.pa.us> <20151120123359.GO614468@alvherre.pgsql> <27295.1448050812@sss.pgh.pa.us> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVbsLGwuXJo2BnNWEYDb/bQiE7LdK7gTQwL+ATo+tPihzMw3nfb4TW/VdmQOERW460uv2J0tfaB60cG06ffpWnw6 X-Sonic-ID: C;xK2CVdCP5RGn1OK7sH9FTg== M;zL26VdCP5RGn1OK7sH9FTg== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-Pg-Spam-Score: -3.2 (---) 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 Fri, 20 Nov 2015 15:20:12 -0500 Tom Lane wrote: > 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 +1 -dg -- David Gould daveg@sonic.net If simplicity worked, the world would be overrun with insects. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs