Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgCpn-0000q1-KE for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Sep 2016 15:26:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bgCpn-0007IK-6K for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Sep 2016 15:26:19 +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_2) (envelope-from ) id 1bgCpm-0007ID-Lz for pgsql-bugs@postgresql.org; Sat, 03 Sep 2016 15:26:18 +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_2) (envelope-from ) id 1bgCpk-0004Nc-FA for pgsql-bugs@postgresql.org; Sat, 03 Sep 2016 15:26:17 +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 u83FQFlt008021; Sat, 3 Sep 2016 11:26:15 -0400 From: Tom Lane To: Spencer Thomason cc: "pgsql-bugs@postgresql.org" Subject: Re: BUG #14295: Hot standby crash during tsvector rebuild In-reply-to: <921.1472859995@sss.pgh.pa.us> References: <20160826072658.15676.7628@wrigleys.postgresql.org> <21830.1472209531@sss.pgh.pa.us> <6FA6FDE7-5C60-4AB6-909D-7AB8039AEAD2@whiteskycommunications.com> <28809.1472740077@sss.pgh.pa.us> <7E7B1C18-719C-4BF8-8A60-D8F0857EA03F@whiteskycommunications.com> <921.1472859995@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 02 Sep 2016 19:46:35 -0400" Date: Sat, 03 Sep 2016 11:26:15 -0400 Message-ID: <8020.1472916375@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) 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 I wrote: > Spencer Thomason writes: >> Also, I should note that this is on a SPARC T2 at 1.4GHz so the single thread performance might be a factor as well. > Am I right in thinking that is a 32-bit machine? That might have > something to do with it (notably because of different maxalign). Awhile later it occurred to me that SPARCs are generally big-endian, which led me to try your example on an old HPPA box, and kaboom! I've now traced it to this bit in gindatapage.c: int nmodifieditems; ... memcpy(walbufend, &seginfo->nmodifieditems, sizeof(uint16)); which of course works fine on little-endian hardware and not at all on big-endian. There might be more bugs (takes a while to run your example on that old dinosaur :-() but this one is sufficient to explain the known symptoms. 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