Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZh30-0002SC-Qr for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Feb 2017 16:49:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cZh2z-0000VX-M2 for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Feb 2017 16:49:17 +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 1cZh2z-0000VR-71 for pgsql-hackers@postgresql.org; Fri, 03 Feb 2017 16:49:17 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cZh2w-0005ED-Ba for pgsql-hackers@postgresql.org; Fri, 03 Feb 2017 16:49:16 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 84F0F61E73; Fri, 3 Feb 2017 16:49:12 +0000 (UTC) Received: from localhost.localdomain (vpn-59-183.rdu2.redhat.com [10.10.59.183]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v13GnAgS012531 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Feb 2017 11:49:11 -0500 Subject: Re: pageinspect: Hash index support To: Robert Haas , Tom Lane References: <4f9c865b-0f79-83a7-a540-1533706c24ee@redhat.com> <408828d9-e1b1-16b0-63fe-f2aeea83bc5c@redhat.com> <17311.1486134714@sss.pgh.pa.us> <095699f0-22f2-49fe-672b-b746f3219120@redhat.com> Cc: Ashutosh Sharma , Mithun Cy , Amit Kapila , Peter Eisentraut , Michael Paquier , Jeff Janes , Alvaro Herrera , PostgreSQL Hackers From: Jesper Pedersen Organization: JBoss, by Red Hat Message-ID: <551edf28-6133-d714-aa07-e04b6848b7f5@redhat.com> Date: Fri, 3 Feb 2017 11:49:09 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <095699f0-22f2-49fe-672b-b746f3219120@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 03 Feb 2017 16:49:12 +0000 (UTC) X-Pg-Spam-Score: -6.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 On 02/03/2017 11:41 AM, Jesper Pedersen wrote: >>> 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.) >> >> No objections. >> > > Attached is v1 of this w/ verify_hash_page() using get_page_from_raw(). > > Sorry for all the problems. > Disregard, as Tom has committed a fix. Best regards, Jesper -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers