Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6O8A-0003tC-TU for pgsql-hackers@arkaria.postgresql.org; Fri, 27 May 2016 20:13:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b6O8A-0001VA-Ey for pgsql-hackers@arkaria.postgresql.org; Fri, 27 May 2016 20:13:14 +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 1b6O89-0001UE-1q for pgsql-hackers@postgresql.org; Fri, 27 May 2016 20:13:13 +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 1b6O85-00046B-OT for pgsql-hackers@postgresql.org; Fri, 27 May 2016 20:13:12 +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 u4RKD4ZQ020880; Fri, 27 May 2016 16:13:04 -0400 From: Tom Lane To: Alvaro Herrera cc: Nikolay Shaplov , pgsql-hackers@postgresql.org Subject: Re: [PROPOSAL] Move all am-related reloption code into src/backend/access/[am-name] and get rid of relopt_kind In-reply-to: <20160527190558.GA703687@alvherre.pgsql> References: <20160527190558.GA703687@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 27 May 2016 15:05:58 -0400" Date: Fri, 27 May 2016 16:13:04 -0400 Message-ID: <20879.1464379984@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 Alvaro Herrera writes: > Nikolay Shaplov wrote: >> Story start from the point that I found out that a.m. can not forbid changing >> some of it's reloptions with ALTER INDEX command. > Hmm, this sounds like a bug to me. In BRIN, if you change the > pages_per_range option for an existing index, the current index > continues to work because the value used during the last index build is > stored in the metapage. Only when you reindex after changing the option > the new value takes effect. > I think Bloom should do likewise. AFAICT, Bloom *does* do that. The reloptions are only consulted directly while initializing the metapage. I think Nikolay's complaint is essentially that there should be a way for an AM to forbid ALTER INDEX if it's not going to support on-the-fly changes of a given reloption. That might be a helpful usability improvement, but it's only a usability improvement not a bug fix. 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