Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJR5T-0003Df-NE for pgsql-committers@arkaria.postgresql.org; Tue, 20 Dec 2016 20:32:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cJR5T-00052b-AL for pgsql-committers@arkaria.postgresql.org; Tue, 20 Dec 2016 20:32:39 +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 1cJR5F-0004Vz-B0 for pgsql-committers@postgresql.org; Tue, 20 Dec 2016 20:32:25 +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 1cJR5C-0002SW-6k for pgsql-committers@postgresql.org; Tue, 20 Dec 2016 20:32:24 +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 uBKKWJKU024590; Tue, 20 Dec 2016 15:32:19 -0500 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add pg_sequence system catalog In-reply-to: <87e0c1ae-d909-ec17-289c-2064747343da@2ndquadrant.com> References: <76ce2ca3-40f2-d291-eae2-17b599f29ba0@2ndquadrant.com> <87e0c1ae-d909-ec17-289c-2064747343da@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Tue, 20 Dec 2016 12:51:32 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24588.1482265939.1@sss.pgh.pa.us> Date: Tue, 20 Dec 2016 15:32:19 -0500 Message-ID: <24589.1482265939@sss.pgh.pa.us> X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Peter Eisentraut writes: > It looks like the catalog data is written without padding (relid(4), > start(8), inc(8), max(8), min(8), ...) but read with padding (relid(4), > padding(4), start(8), inc(8), max(8), min(8), ...). The difference is > that the write goes through heap_form_tuple but the read uses the Form_ > struct. What is suspicious is this from the configure output: > checking alignment of short... 2 > checking alignment of int... 4 > checking alignment of long... 4 > checking alignment of long long int... 8 > checking alignment of double... 4 > We use DOUBLEALIGN to align int64 values, but on this platform, that is > not correct. Quickest solution might be to reorder the columns of pg_sequence to avoid wasting padding bytes, ie, put seqcycle after seqrelid. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers