Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cP86b-00068t-L9 for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jan 2017 13:29:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cP86a-0007tl-8Q for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jan 2017 13:29:20 +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 1cP86Z-0007te-Mt for pgsql-hackers@postgresql.org; Thu, 05 Jan 2017 13:29:19 +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 1cP86V-0007me-UX for pgsql-hackers@postgresql.org; Thu, 05 Jan 2017 13:29:19 +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 63A878124A; Thu, 5 Jan 2017 13:29:13 +0000 (UTC) Received: from localhost.localdomain (vpn-55-151.rdu2.redhat.com [10.10.55.151]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v05DTCEO000873 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 Jan 2017 08:29:12 -0500 Subject: Re: pageinspect: Hash index support To: Ashutosh Sharma References: <80a00b5c-56d3-dffb-8dba-edf5d2167b12@2ndquadrant.com> <16d89e7e-cb1a-cb5d-e944-6f10c324a312@redhat.com> <836487ee-8d4e-cd49-54ac-f4793ddba5ae@redhat.com> <8a751498-6ee9-b943-abf3-b5641851d7de@2ndquadrant.com> <62ee2eba-3a5b-06d3-e224-cfe00b395be7@redhat.com> <66afc31d-e97a-41c3-da4c-bfa02fa2d54e@redhat.com> <8921.1478109287@sss.pgh.pa.us> <7351c7bb-db87-be4a-0b86-7f7aad0bed41@2ndquadrant.com> <4938.1478215407@sss.pgh.pa.us> Cc: Tom Lane , Peter Eisentraut , Michael Paquier , Jeff Janes , Alvaro Herrera , PostgreSQL Hackers From: Jesper Pedersen Organization: JBoss, by Red Hat Message-ID: Date: Thu, 5 Jan 2017 08:29:10 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: 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.25]); Thu, 05 Jan 2017 13:29:13 +0000 (UTC) X-Pg-Spam-Score: -10.1 (----------) 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 Hi Ashutosh, On 01/05/2017 07:13 AM, Ashutosh Sharma wrote: >> * Readded pageinspect--1.6.sql >> >> In order to have the latest pageinspect interface in 1 file, as we need >> something to install from. > > I think there should be no problem even if we simply add > pageinspect--1.5--1.6.sql file instead of removing 1.5.sql as with the > latest changes to the create extension infrastructure in postgresql it > automatically finds a lower version script if unable to find the > default version script and then upgrade it to the latest version. > >> Removing --1.5.sql otherwise would give >> >> test=# CREATE EXTENSION "pageinspect"; >> ERROR: extension "pageinspect" has no installation script nor update path >> for version "1.6" > > I didn't get this. Do you mean to say that if you add 1.6.sql and do > not remove 1.5.sql you get this error when trying to add pageinspect > module. I didn't > get any such error. See below, > > postgres=# create extension pageinspect WITH VERSION '1.6'; > CREATE EXTENSION > The previous patch was using pageinspect--1.5.sql as a base, and then uses pageinspect--1.5-1.6.sql to upgrade to version 1.6. Removing pageinspect--1.5.sql, and adding pageinspect--1.6.sql with the current interface will use pageinspect--1.6.sql directly where as existing installations will use the upgrade scripts. Hence I don't see a reason why we should keep pageinspect--1.5.sql around when we can provide a clear interface description in a pageinspect--1.6.sql. > Peter has already written a test-case-[1] based on your earlier patch > for supporting hash index with pageinspect module. Once the latest > patch (v10) becomes stable i will share a separete patch having a > test-case for hash index. Infact I will try to modify an already > existing patch by Peter. > Ok, sounds good. 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