pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Spencer Thomason <spencer@whiteskycommunications.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14295: Hot standby crash during tsvector rebuild
Date: Sat, 03 Sep 2016 11:26:15 -0400
Message-ID: <8020.1472916375@sss.pgh.pa.us> (raw)
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>
	<E3ED4BBA-3F20-4624-AE01-F754954EBDB3@whiteskycommunications.com>
	<28809.1472740077@sss.pgh.pa.us>
	<7E7B1C18-719C-4BF8-8A60-D8F0857EA03F@whiteskycommunications.com>
	<921.1472859995@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

I wrote:
> Spencer Thomason <spencer@whiteskycommunications.com> 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



view thread (11+ messages)  latest in thread

Message-ID: <8020.1472916375@sss.pgh.pa.us>
Permalink:  ../8020.1472916375@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8020.1472916375@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, spencer@whiteskycommunications.com
  Subject: Re: BUG #14295: Hot standby crash during tsvector rebuild
  In-Reply-To: <8020.1472916375@sss.pgh.pa.us>
  References: <20160826072658.15676.7628@wrigleys.postgresql.org> <21830.1472209531@sss.pgh.pa.us> <6FA6FDE7-5C60-4AB6-909D-7AB8039AEAD2@whiteskycommunications.com> <E3ED4BBA-3F20-4624-AE01-F754954EBDB3@whiteskycommunications.com> <28809.1472740077@sss.pgh.pa.us> <7E7B1C18-719C-4BF8-8A60-D8F0857EA03F@whiteskycommunications.com> <921.1472859995@sss.pgh.pa.us> <8020.1472916375@sss.pgh.pa.us>

* 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