From: David Gould <daveg@sonic.net>
To: pgsql-bugs@postgresql.org
Subject: Re: Confusing error message with too-large file in pg_basebackup
Date: Fri, 20 Nov 2015 17:14:50 -0800
Message-ID: <20151120171450.024d484d@engels> (raw)
In-Reply-To: <6801.1448064683@sss.pgh.pa.us>
References: <564E6B2F.0@agliodbs.com>
<CAB7nPqQjk-KYXfJWYKnySM_k14-5JsU0dEJt+q9ch+X0qbg1SA@mail.gmail.com>
<11737.1447994494@sss.pgh.pa.us>
<CAB7nPqSzp1Z3vEzLyT=79xdiCf2mctSj8CpV1bRje+=ghmTQ0w@mail.gmail.com>
<CAECtzeWnJ3P9nN0US7aWTmBtEX1j+_OYSUMQRaChfgucNfqWQw@mail.gmail.com>
<20151120123359.GO614468@alvherre.pgsql>
<27295.1448050812@sss.pgh.pa.us>
<6801.1448064683@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Fri, 20 Nov 2015 19:11:23 -0500
Tom Lane <tgl@sss.pgh.pa.us> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: daveg@sonic.net
Subject: Re: Confusing error message with too-large file in pg_basebackup
In-Reply-To: <20151120171450.024d484d@engels>
References: <564E6B2F.0@agliodbs.com> <CAB7nPqQjk-KYXfJWYKnySM_k14-5JsU0dEJt+q9ch+X0qbg1SA@mail.gmail.com> <11737.1447994494@sss.pgh.pa.us> <CAB7nPqSzp1Z3vEzLyT=79xdiCf2mctSj8CpV1bRje+=ghmTQ0w@mail.gmail.com> <CAECtzeWnJ3P9nN0US7aWTmBtEX1j+_OYSUMQRaChfgucNfqWQw@mail.gmail.com> <20151120123359.GO614468@alvherre.pgsql> <27295.1448050812@sss.pgh.pa.us> <6801.1448064683@sss.pgh.pa.us> <20151120171450.024d484d@engels>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox