Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqmmw-0002Rz-C7 for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Apr 2016 19:18:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqmmv-0005kR-VF for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Apr 2016 19:18:50 +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_2) (envelope-from ) id 1aqmmv-0005kL-Md for pgsql-bugs@postgresql.org; Thu, 14 Apr 2016 19:18:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqmmt-0001bW-0G for pgsql-bugs@postgresql.org; Thu, 14 Apr 2016 19:18:49 +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 u3EJIax8015177; Thu, 14 Apr 2016 15:18:36 -0400 From: Tom Lane To: Andres Freund cc: Christoph Berg , PostgreSQL Bugs Subject: Re: Bus error in pg_logical_slot_get_changes (9.4.7, sparc) 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> Comments: In-reply-to Andres Freund message dated "Thu, 14 Apr 2016 11:55:52 -0700" Date: Thu, 14 Apr 2016 15:18:36 -0400 Message-ID: <15176.1460661516@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) 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 Andres Freund 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