Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6NOa-0000kr-FY for pgsql-hackers@arkaria.postgresql.org; Fri, 27 May 2016 19:26:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b6NOZ-0001jh-U3 for pgsql-hackers@arkaria.postgresql.org; Fri, 27 May 2016 19:26:07 +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 1b6NOY-0001ie-HS for pgsql-hackers@postgresql.org; Fri, 27 May 2016 19:26:06 +0000 Received: from enot.nataraj.su ([195.54.209.170]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6NOW-0002Xv-0M for pgsql-hackers@postgresql.org; Fri, 27 May 2016 19:26:06 +0000 Received: from home.localnet (ip-95-220-32-23.bb.netbynet.ru [95.220.32.23]) by enot.nataraj.su (Postfix) with ESMTPSA id 88CBA26C8D44; Fri, 27 May 2016 15:24:59 -0400 (EDT) From: Nikolay Shaplov To: Alvaro Herrera , 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 Date: Fri, 27 May 2016 22:24:50 +0300 Message-ID: <1972481.VQZ2401KyW@home> User-Agent: KMail/4.14.1 (Linux/3.16.0-4-686-pae; KDE/4.14.2; i686; ; ) In-Reply-To: <20160527190558.GA703687@alvherre.pgsql> References: <20160527190558.GA703687@alvherre.pgsql> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Pg-Spam-Score: -1.2 (-) 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 =D0=92 =D0=BF=D0=B8=D1=81=D1=8C=D0=BC=D0=B5 =D0=BE=D1=82 27 =D0=BC=D0=B0=D1= =8F 2016 15:05:58 =D0=92=D1=8B =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB= =D0=B8: > 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. That was not > > necessary before, because all reloptions at that existed at that time c= an > > be changed on fly. But now for bloom index it is unacceptable, because > > for changing bloom's reloptions for existing index will lead to index > > malfunction. >=20 > 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. >=20 > I think Bloom should do likewise. I do not think that it is the best behavior. Because if we came to this=20 situation, the current value of pages_per_range that index actually using i= s=20 not available for user, because he is not able to look into meta page. In this case it would be better either forbid changing the options, so it=20 would be consistent, or force index rebuild, then it would be consistent to= o.=20 I would vote for first behavior as this is less work to do for me, and can = be=20 changed later, if it is really needed for some case. PS sorry I did not add mail list to the CC, so I send it second time... --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers