Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6OJj-0004ft-FQ for pgsql-hackers@arkaria.postgresql.org; Fri, 27 May 2016 20:25:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b6OJj-0003T9-0j for pgsql-hackers@arkaria.postgresql.org; Fri, 27 May 2016 20:25:11 +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 1b6OJi-0003SK-AW for pgsql-hackers@postgresql.org; Fri, 27 May 2016 20:25:10 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b6OJe-0004VA-12 for pgsql-hackers@postgresql.org; Fri, 27 May 2016 20:25:09 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [216.155.90.98]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 514504019E2; Fri, 27 May 2016 13:24:58 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 86102491; Fri, 27 May 2016 16:24:56 -0400 (CLT) Date: Fri, 27 May 2016 16:24:56 -0400 From: Alvaro Herrera To: Tom Lane 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 Message-ID: <20160527202456.GA717848@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20879.1464379984@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.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 Tom Lane wrote: > 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. Ah, clearly I misunderstood what he was saying. > 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. I can get behind that idea, but this also says I should get away from this thread until 10dev opens. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers