From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Christoph Berg <myon@debian.org>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: Bus error in pg_logical_slot_get_changes (9.4.7, sparc)
Date: Thu, 14 Apr 2016 15:18:36 -0400
Message-ID: <15176.1460661516@sss.pgh.pa.us> (raw)
In-Reply-To: <20160414185552.szg5zzwf4q7afz2q@alap3.anarazel.de>
References: <20160413211152.GA21711@msg.credativ.de>
<20160413175827.dmlbtdf7c3mgmnex@alap3.anarazel.de>
<20160414092919.GA11804@msg.df7cb.de>
<20160414112518.GE11804@msg.df7cb.de>
<423.1460653903@sss.pgh.pa.us>
<20160414185552.szg5zzwf4q7afz2q@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Andres Freund <andres@anarazel.de> writes:
> On 2016-04-14 13:11:43 -0400, Tom Lane wrote:
>> But looking around a bit, I think that ReorderBufferRestoreChange is
>> almost completely broken on alignment-picky machines, if the expectation
>> is that the input data could be aligned arbitrarily.
> 'data' cannot be aligned arbitrarily. It's palloc aligned, and the
> buffer is used separately for everything is loaded from disk. I.e. the
> data pointer passed to ReorderBufferRestoreChange is aligned to a
> MAXALIGN boundary.
Right, I figured that out awhile later; it would have been better if it
was documented. See my second patch attempt.
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
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, andres@anarazel.de, myon@debian.org
Subject: Re: Bus error in pg_logical_slot_get_changes (9.4.7, sparc)
In-Reply-To: <15176.1460661516@sss.pgh.pa.us>
References: <20160413211152.GA21711@msg.credativ.de> <20160413175827.dmlbtdf7c3mgmnex@alap3.anarazel.de> <20160414092919.GA11804@msg.df7cb.de> <20160414112518.GE11804@msg.df7cb.de> <423.1460653903@sss.pgh.pa.us> <20160414185552.szg5zzwf4q7afz2q@alap3.anarazel.de> <15176.1460661516@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