Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZfX4-0005hF-1c for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Feb 2017 15:12:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cZfX3-0000bA-Cu for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Feb 2017 15:12:13 +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 1cZfWt-0000Rl-Nu for pgsql-hackers@postgresql.org; Fri, 03 Feb 2017 15:12:03 +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 1cZfWq-0006Ck-Jp for pgsql-hackers@postgresql.org; Fri, 03 Feb 2017 15:12:02 +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 v13FBsb8017312; Fri, 3 Feb 2017 10:11:55 -0500 From: Tom Lane To: Jesper Pedersen cc: Robert Haas , Ashutosh Sharma , Mithun Cy , Amit Kapila , Peter Eisentraut , Michael Paquier , Jeff Janes , Alvaro Herrera , PostgreSQL Hackers Subject: Re: pageinspect: Hash index support In-reply-to: References: <4f9c865b-0f79-83a7-a540-1533706c24ee@redhat.com> <408828d9-e1b1-16b0-63fe-f2aeea83bc5c@redhat.com> Comments: In-reply-to Jesper Pedersen message dated "Fri, 03 Feb 2017 07:45:56 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17310.1486134714.1@sss.pgh.pa.us> Date: Fri, 03 Feb 2017 10:11:54 -0500 Message-ID: <17311.1486134714@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org BTW, the buildfarm is still crashing on ia64 and sparc64 members. I believe this is the same problem addressed in 84ad68d64 for pageinspect's GIN functions, to wit, the payload of a "bytea" is not maxaligned, so machines that care about alignment won't be happy when trying to fetch 64-bit values out of a bytea page image. Clearly, the fix should be to start using the get_page_from_raw() function that Peter introduced in that patch. But it's static in ginfuncs.c, which I thought was a mistake at the time, and it's proven so now. contrib/pageinspect actually seems to lack *any* infrastructure for sharing functions across modules. It's time to remedy that. I propose inventing "pageinspect.h" to hold commonly visible declarations, and moving get_page_from_raw() into rawpage.c, which seems like a reasonably natural home for it. (Alternatively, we could invent a pageinspect.c file to hold utility functions, but that might be overkill.) regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers