Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zzwm5-0002U6-F1 for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Nov 2015 01:15:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zzwm4-0003qs-BG for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Nov 2015 01:15:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZzwlS-00035c-JR for pgsql-bugs@postgresql.org; Sat, 21 Nov 2015 01:14:54 +0000 Received: from d.mail.sonic.net ([64.142.111.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZzwlP-0003Yf-0k for pgsql-bugs@postgresql.org; Sat, 21 Nov 2015 01:14:53 +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 tAL1EiME030705 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA256 bits=128 verify=NOT) for ; Fri, 20 Nov 2015 17:14:45 -0800 Date: Fri, 20 Nov 2015 17:14:50 -0800 From: David Gould To: pgsql-bugs@postgresql.org Subject: Re: Confusing error message with too-large file in pg_basebackup Message-ID: <20151120171450.024d484d@engels> In-Reply-To: <6801.1448064683@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> <6801.1448064683@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: UmFuZG9tSVYBuPiTpWCLVXp0JFO2AQYmuKile7TkUdqHtTF9GEKs+Oe4RmOp0qQGhXarvItd5VhzeRLUMgmppbqmZB3rFadt X-Sonic-ID: C;mtAEQO2P5RGZ+uK7sH9FTg== M;bNA8QO2P5RGZ+uK7sH9FTg== 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 19:11:23 -0500 Tom Lane wrote: > I'm not sure whether we should treat this as a back-patchable bug fix > or a new feature for HEAD only. If we don't back-patch it, there are > in any case several bugs here that we must fix. In particular, the > existing coding in ReceiveTarFile: > > size_t filesz = 0; > ... > sscanf(&tarhdr[124], "%11o", (unsigned int *) &filesz); > > is utterly, absolutely, completely broken; it'll fail grossly on > any 64-bit big-endian hardware. There are other places with misplaced > faith that "unsigned long" is at least as wide as size_t. > > Comments? My vote would be that it should go in 9.5. If it gets back patched then some dumps produced by 9.4.x would not be readable by 9.4.x-1. But no 9.5.x dump is broken by changing it now. -dg -- David Gould 510 282 0869 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